Class DefaultMetaDataObject
- java.lang.Object
-
- de.unirostock.sems.cbarchive.meta.MetaDataObject
-
- de.unirostock.sems.cbarchive.meta.DefaultMetaDataObject
-
public class DefaultMetaDataObject extends MetaDataObject
The Class DefaultMetaDataObject, a fall back if we do not understand the meta data that is encoded in the XML.- Author:
- Martin Scharm
-
-
Field Summary
-
Fields inherited from class de.unirostock.sems.cbarchive.meta.MetaDataObject
about, description, fragmentIdentifier
-
-
Constructor Summary
Constructors Constructor Description DefaultMetaDataObject(org.jdom2.Element describingElement)
Instantiates a new default meta data object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaDataObject
clone()
void
injectDescription(org.jdom2.Element parent)
Inject the description intoparent
.static DefaultMetaDataObject
tryToRead(org.jdom2.Element element)
Try to read a meta data object.-
Methods inherited from class de.unirostock.sems.cbarchive.meta.MetaDataObject
equals, equalsPathNoMatter, getAbout, getXmlDescription, setAbout, setAbout
-
-
-
-
Method Detail
-
injectDescription
public void injectDescription(org.jdom2.Element parent)
Description copied from class:MetaDataObject
Inject the description intoparent
.- Specified by:
injectDescription
in classMetaDataObject
- Parameters:
parent
- the parent element that will host the description
-
tryToRead
public static DefaultMetaDataObject tryToRead(org.jdom2.Element element)
Try to read a meta data object.- Parameters:
element
- the element rooting the meta data subtree- Returns:
- the default meta data object
-
clone
public MetaDataObject clone()
- Specified by:
clone
in classMetaDataObject
-
-