public abstract class MetaDataObject extends Object
Modifier and Type | Field and Description |
---|---|
protected ArchiveEntry |
about
The entry this is all about.
|
protected org.jdom2.Element |
description
The description.
|
protected String |
fragmentIdentifier
The fragment identifier.
|
Constructor and Description |
---|
MetaDataObject(ArchiveEntry about,
org.jdom2.Element describingElement)
Instantiates a new meta data object.
|
MetaDataObject(ArchiveEntry about,
String fragmentIdentifier,
org.jdom2.Element describingElement)
Instantiates a new meta data object.
|
Modifier and Type | Method and Description |
---|---|
String |
getAbout()
Gets the about.
|
org.jdom2.Element |
getXmlDescription()
Get the XML description of
getAbout() . |
abstract void |
injectDescription(org.jdom2.Element parent)
Inject the description into
parent . |
static MetaDataObject |
tryToRead(org.jdom2.Element element,
ArchiveEntry about,
String fragmentIdentifier)
Dummy method.
|
protected ArchiveEntry about
protected String fragmentIdentifier
protected org.jdom2.Element description
public MetaDataObject(ArchiveEntry about, org.jdom2.Element describingElement)
about
- the entry to describedescribingElement
- the element rooting the subtree that describes aboutpublic MetaDataObject(ArchiveEntry about, String fragmentIdentifier, org.jdom2.Element describingElement)
about
- the entry to describefragmentIdentifier
- the fragment identifier pointing into about
describingElement
- the element rooting the subtree that describes aboutpublic String getAbout()
public abstract void injectDescription(org.jdom2.Element parent)
parent
.parent
- the parent element that will host the descriptionpublic static MetaDataObject tryToRead(org.jdom2.Element element, ArchiveEntry about, String fragmentIdentifier)
element
- the describing elementabout
- the entry to be describedfragmentIdentifier
- the optional fragment identifier pointing into about
(leave null
if in doubt)null
, since this is abstract and we cannot read
anything here.public org.jdom2.Element getXmlDescription()
getAbout()
.Copyright © 2014. All rights reserved.