Class MetadataFieldConfig
java.lang.Object
org.dspace.importer.external.metadatamapping.MetadataFieldConfig
A generalised configuration for metadata fields.
This is used to make the link between values and the actual MetadatumDTO object.
- Author:
- Roeland Dillen (roeland at atmire dot com)
-
Constructor Summary
ConstructorsConstructorDescriptionAn empty initialization of MetadataFieldConfigMetadataFieldConfig(String full) Create a MetadataFieldConfig using a single value.MetadataFieldConfig(String schema, String element) Create a MetadataFieldConfig using a schema and element qualifier will be set tonullMetadataFieldConfig(String schema, String element, String qualifier) Create a MetadataFieldConfig using a schema,element and qualifierMetadataFieldConfig(MetadatumDTO value) Create a MetadataFieldConfig based on a given MetadatumDTO This MetadatumDTO object contains the schema, element and qualifier needed to initialize the MetadataFieldConfig -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Return the qualifier set to this object.getField()Return a string representing the field of this objectReturn the qualifier set to this object.Return the schema set to this object.inthashCode()Returns a hash code value for the object.voidsetElement(String element) Set the element to this MetadataFieldConfigvoidsetQualifier(String qualifier) Set the qualifier to this MetadataFieldConfigvoidSet the schema to this MetadataFieldConfigtoString()Create the String representation of the MetadataFieldConfig
-
Constructor Details
-
MetadataFieldConfig
Create a MetadataFieldConfig based on a given MetadatumDTO This MetadatumDTO object contains the schema, element and qualifier needed to initialize the MetadataFieldConfig- Parameters:
value- the DTO.
-
MetadataFieldConfig
public MetadataFieldConfig()An empty initialization of MetadataFieldConfig -
MetadataFieldConfig
Create a MetadataFieldConfig using a schema,element and qualifier- Parameters:
schema- The schema to set to this objectelement- The element to set to this objectqualifier- The qualifier to set to this object
-
MetadataFieldConfig
Create a MetadataFieldConfig using a single value. This value is split up into schema, element and qualifier, based on a dot(.)- Parameters:
full- A string representing the schema.element.qualifier triplet
-
MetadataFieldConfig
Create a MetadataFieldConfig using a schema and element qualifier will be set tonull- Parameters:
schema- The schema to set to this objectelement- The element to set to this object
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
toString
Create the String representation of the MetadataFieldConfig -
hashCode
public int hashCode()Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided byHashMap. -
setSchema
Set the schema to this MetadataFieldConfig- Parameters:
schema- The schema to set to this object
-
getSchema
Return the schema set to this object.nullif nothing is set- Returns:
- The schema of this object
-
getField
Return a string representing the field of this object- Returns:
- The field that is set to this object, in the form of schema.element.qualifier
-
getElement
Return the qualifier set to this object.nullif nothing is set- Returns:
- The qualifier of this object
-
setElement
Set the element to this MetadataFieldConfig- Parameters:
element- The element to set to this object
-
getQualifier
Return the qualifier set to this object.nullif nothing is set- Returns:
- The qualifier of this object
-
setQualifier
Set the qualifier to this MetadataFieldConfig- Parameters:
qualifier- The qualifier to set to this object
-