Package org.dspace.content
Class MetadataValue
java.lang.Object
org.dspace.content.MetadataValue
- All Implemented Interfaces:
ReloadableEntity<Integer>
- Direct Known Subclasses:
RelationshipMetadataValue
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor, create object using:MetadataValueService.create(Context, DSpaceObject, MetadataField) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturntrueifotheris the same MetadataValue as this object,falseotherwiseGet the metadata authorityintGet the metadata confidenceGet the dspaceObjectgetID()Get the field ID the metadata value represents.Get the language (e.g.protected IntegerintgetPlace()Get the place ordering.getValue()Get the metadata value.inthashCode()voidsetAuthority(String value) Set the metadata authorityvoidsetConfidence(int value) Set the metadata confidencevoidSet the dspaceObject ID.voidsetLanguage(String language) Set the language (e.g.voidsetMetadataField(MetadataField metadataField) voidsetPlace(int place) Set the place ordering.voidSet the metadata value
-
Field Details
-
dSpaceObject
-
-
Constructor Details
-
MetadataValue
protected MetadataValue()Protected constructor, create object using:MetadataValueService.create(Context, DSpaceObject, MetadataField)
-
-
Method Details
-
getID
Get the field ID the metadata value represents.- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- metadata value ID
-
getDSpaceObject
Get the dspaceObject- Returns:
- dspaceObject
-
setDSpaceObject
Set the dspaceObject ID.- Parameters:
dso- new dspaceObject ID
-
getLanguage
Get the language (e.g. "en").- Returns:
- language
-
setLanguage
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)
-
getMetadataField
-
setMetadataField
-
getMetadataFieldId
- Returns:
MetadataField#getID()
-
getValue
Get the metadata value.- Returns:
- metadata value
-
setValue
Set the metadata value- Parameters:
value- new metadata value
-
getAuthority
Get the metadata authority- Returns:
- metadata authority
-
setAuthority
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
Returntrueifotheris the same MetadataValue as this object,falseotherwise -
hashCode
public int hashCode()
-