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(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 . |
void |
setAbout(ArchiveEntry about)
Sets the about.
|
void |
setAbout(ArchiveEntry about,
String fragmentIdentifier)
Sets the about.
|
protected ArchiveEntry about
protected String fragmentIdentifier
protected org.jdom2.Element description
public MetaDataObject(org.jdom2.Element describingElement)
describingElement
- the element rooting the subtree that describes an entitypublic void setAbout(ArchiveEntry about)
about
- the path to the entity described by this objectpublic void setAbout(ArchiveEntry about, String fragmentIdentifier)
about
- the path to the entity described by this objectfragmentIdentifier
- the fragment identifier pointing into about
public String getAbout()
public abstract void injectDescription(org.jdom2.Element parent)
parent
.parent
- the parent element that will host the descriptionpublic org.jdom2.Element getXmlDescription()
getAbout()
.Copyright © 2014. All rights reserved.