Class MetadataValue

  • All Implemented Interfaces:
    ReloadableEntity<Integer>
    Direct Known Subclasses:
    RelationshipMetadataValue

    @Entity
    public class MetadataValue
    extends Object
    implements ReloadableEntity<Integer>
    Database access class representing a Dublin Core metadata value. It represents a value of a given MetadataField on an Item. (The Item can have many values of the same field.) It contains element, qualifier, value and language. the field (which names the schema, element, and qualifier), language, and a value.
    Author:
    Martin Hald
    See Also:
    MetadataSchema, MetadataField
    • Method Detail

      • getDSpaceObject

        public DSpaceObject getDSpaceObject()
        Get the dspaceObject
        Returns:
        dspaceObject
      • setDSpaceObject

        public void setDSpaceObject​(DSpaceObject dso)
        Set the dspaceObject ID.
        Parameters:
        dso - new dspaceObject ID
      • getLanguage

        public String getLanguage()
        Get the language (e.g. "en").
        Returns:
        language
      • setLanguage

        public void setLanguage​(String language)
        Set the language (e.g. "en").
        Parameters:
        language - new language
      • getPlace

        public int getPlace()
        Get the place ordering.
        Returns:
        place ordering
      • setPlace

        public void setPlace​(int place)
        Set the place ordering.
        Parameters:
        place - new place (relative order in series of values)
      • setMetadataField

        public void setMetadataField​(MetadataField metadataField)
      • getValue

        public String getValue()
        Get the metadata value.
        Returns:
        metadata value
      • setValue

        public void setValue​(String value)
        Set the metadata value
        Parameters:
        value - new metadata value
      • getAuthority

        public String getAuthority()
        Get the metadata authority
        Returns:
        metadata authority
      • setAuthority

        public void setAuthority​(String value)
        Set the metadata authority
        Parameters:
        value - new metadata authority
      • getConfidence

        public int getConfidence()
        Get the metadata confidence
        Returns:
        metadata confidence
      • setConfidence

        public void setConfidence​(int value)
        Set the metadata confidence
        Parameters:
        value - new metadata confidence
      • equals

        public boolean equals​(Object obj)
        Return true if other is the same MetadataValue 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 MetadataValue as this object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object