Class MetadataField

java.lang.Object
org.dspace.content.MetadataField
All Implemented Interfaces:
ReloadableEntity<Integer>

@Entity public class MetadataField extends Object implements ReloadableEntity<Integer>
DSpace object that represents a metadata field, which is defined by a combination of schema, element, and qualifier. Every metadata element belongs in a field.
Author:
Martin Hald
See Also:
  • Constructor Details

  • Method Details

    • getID

      public Integer getID()
      Get the metadata field id.
      Specified by:
      getID in interface ReloadableEntity<Integer>
      Returns:
      metadata field id
    • getElement

      public String getElement()
      Get the element name.
      Returns:
      element name
    • setElement

      public void setElement(String element)
      Set the element name.
      Parameters:
      element - new value for element
    • getQualifier

      public String getQualifier()
      Get the qualifier.
      Returns:
      qualifier
    • setQualifier

      public void setQualifier(String qualifier)
      Set the qualifier.
      Parameters:
      qualifier - new value for qualifier
    • getScopeNote

      public String getScopeNote()
      Get the scope note.
      Returns:
      scope note
    • setScopeNote

      public void setScopeNote(String scopeNote)
      Set the scope note.
      Parameters:
      scopeNote - new value for scope note
    • getMetadataSchema

      public MetadataSchema getMetadataSchema()
      Get the schema .
      Returns:
      schema record
    • setMetadataSchema

      public void setMetadataSchema(MetadataSchema metadataSchema)
      Set the schema record key.
      Parameters:
      metadataSchema - new value for key
    • equals

      public boolean equals(Object obj)
      Return true if other is the same MetadataField as this object, false otherwise
      Overrides:
      equals in class Object
      Parameters:
      obj - object to compare to
      Returns:
      true if object passed in represents the same MetadataField as this object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString(char separator)
    • toString

      public String toString()
      Overrides:
      toString in class Object