Package org.dspace.content
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.- Version:
- $Revision$
- Author:
- Martin Hald
- See Also:
MetadataValue,MetadataSchema
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMetadataField()Protected constructor, create object using:MetadataFieldService.create(Context, MetadataSchema, String, String, String)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Returntrueifotheris the same MetadataField as this object,falseotherwiseStringgetElement()Get the element name.IntegergetID()Get the metadata field id.MetadataSchemagetMetadataSchema()Get the schema .StringgetQualifier()Get the qualifier.StringgetScopeNote()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.StringtoString()StringtoString(char separator)
-
-
-
Constructor Detail
-
MetadataField
protected MetadataField()
Protected constructor, create object using:MetadataFieldService.create(Context, MetadataSchema, String, String, String)
-
-
Method Detail
-
getID
public Integer getID()
Get the metadata field id.- Specified by:
getIDin interfaceReloadableEntity<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)
Returntrueifotheris the same MetadataField as this object,falseotherwise
-
toString
public String toString(char separator)
-
-