public class DefaultMetaDataObject extends MetaDataObject
about, description, fragmentIdentifier
Constructor and Description |
---|
DefaultMetaDataObject(ArchiveEntry about,
org.jdom2.Element describingElement)
Instantiates a new default meta data object.
|
DefaultMetaDataObject(ArchiveEntry about,
String fragmentIdentifier,
org.jdom2.Element describingElement)
Instantiates a new default meta data object.
|
Modifier and Type | Method and Description |
---|---|
void |
injectDescription(org.jdom2.Element parent)
Inject the description into
parent . |
static DefaultMetaDataObject |
tryToRead(org.jdom2.Element element,
ArchiveEntry about,
String fragmentIdentifier)
Try to read a meta data object.
|
getAbout, getXmlDescription
public DefaultMetaDataObject(ArchiveEntry about, org.jdom2.Element describingElement)
about
- the entry described by this objectdescribingElement
- the element rooting the subtree that describes aboutpublic DefaultMetaDataObject(ArchiveEntry about, String fragmentIdentifier, org.jdom2.Element describingElement)
about
- the entry described by this objectfragmentIdentifier
- the fragment identifier pointing into about
describingElement
- the element rooting the subtree that describes aboutpublic void injectDescription(org.jdom2.Element parent)
MetaDataObject
parent
.injectDescription
in class MetaDataObject
parent
- the parent element that will host the descriptionpublic static DefaultMetaDataObject tryToRead(org.jdom2.Element element, ArchiveEntry about, String fragmentIdentifier)
element
- the element rooting the meta data subtreeabout
- the entry the is described by element
fragmentIdentifier
- the optional fragment identifier pointing into about
(leave null
if in doubt)Copyright © 2014. All rights reserved.