Package org.dspace.content
Class MetadataField
java.lang.Object
org.dspace.content.MetadataField
- All Implemented Interfaces:
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 Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor, create object using:MetadataFieldService.create(Context, MetadataSchema, String, String, String) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturntrueifotheris the same MetadataField as this object,falseotherwiseGet the element name.getID()Get the metadata field id.Get the schema .Get the qualifier.Get the scope note.inthashCode()voidsetElement(String element) Set the element name.voidsetMetadataSchema(MetadataSchema metadataSchema) Set the schema record key.voidsetQualifier(String qualifier) Set the qualifier.voidsetScopeNote(String scopeNote) Set the scope note.toString()toString(char separator)
-
Constructor Details
-
MetadataField
protected MetadataField()Protected constructor, create object using:MetadataFieldService.create(Context, MetadataSchema, String, String, String)
-
-
Method Details
-
getID
Get the metadata field id.- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- metadata field id
-
getElement
Get the element name.- Returns:
- element name
-
setElement
Set the element name.- Parameters:
element- new value for element
-
getQualifier
Get the qualifier.- Returns:
- qualifier
-
setQualifier
Set the qualifier.- Parameters:
qualifier- new value for qualifier
-
getScopeNote
Get the scope note.- Returns:
- scope note
-
setScopeNote
Set the scope note.- Parameters:
scopeNote- new value for scope note
-
getMetadataSchema
Get the schema .- Returns:
- schema record
-
setMetadataSchema
Set the schema record key.- Parameters:
metadataSchema- new value for key
-
equals
Returntrueifotheris the same MetadataField as this object,falseotherwise -
hashCode
public int hashCode() -
toString
-
toString
-