Class Value
- java.lang.Object
-
- org.dspace.pack.bagit.xml.metadata.Value
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedValue()Default constructor for JAXBValue(String body, String name)Construct a Value from aMetadataValueusing only a value for the body of the xml tag and a name of the MetadataValue (equivalent the the schema name on the MetadataValue)Value(org.dspace.content.MetadataValue metadataValue)Construct a full qualified Value from aMetadataValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBody()StringgetElement()StringgetLanguage()org.dspace.content.MetadataFieldNamegetMetadataField()Gets theMetadataFieldNamefor this value.StringgetName()StringgetQualifier()StringgetSchema()
-
-
-
Constructor Detail
-
Value
protected Value()
Default constructor for JAXB
-
Value
public Value(String body, String name)
Construct a Value from aMetadataValueusing only a value for the body of the xml tag and a name of the MetadataValue (equivalent the the schema name on the MetadataValue)- Parameters:
body- the body of the Valuename- the name of the MetadataValue
-
Value
public Value(org.dspace.content.MetadataValue metadataValue)
Construct a full qualified Value from aMetadataValue.- Parameters:
metadataValue- the MetadataValue to use as a source of information
-
-
Method Detail
-
getMetadataField
public org.dspace.content.MetadataFieldName getMetadataField()
Gets theMetadataFieldNamefor this value.- Returns:
- the appropriate MetadataFieldName for the given field.
- Throws:
IllegalStateException- if this value does not have a valid MetadataFieldName.
-
getName
public String getName()
-
getSchema
public String getSchema()
-
getElement
public String getElement()
-
getLanguage
public String getLanguage()
-
getQualifier
public String getQualifier()
-
getBody
public String getBody()
-
-