public class OmexMetaDataObject extends MetaDataObject
Modifier and Type | Field and Description |
---|---|
protected OmexDescription |
description
The description.
|
about, fragmentIdentifier
Constructor and Description |
---|
OmexMetaDataObject(ArchiveEntry about,
OmexDescription description)
Instantiates a new OMEX meta data object.
|
OmexMetaDataObject(ArchiveEntry about,
OmexDescription description,
org.jdom2.Element describingElement)
Instantiates a new OMEX meta data object.
|
OmexMetaDataObject(ArchiveEntry about,
String fragmentIdentifier,
OmexDescription description)
Instantiates a new OMEX meta data object.
|
OmexMetaDataObject(ArchiveEntry about,
String fragmentIdentifier,
OmexDescription description,
org.jdom2.Element describingElement)
Instantiates a new OMEX meta data object.
|
Modifier and Type | Method and Description |
---|---|
OmexDescription |
getOmexDescription()
Gets the omex description.
|
void |
injectDescription(org.jdom2.Element parent)
Inject the description into
parent . |
static OmexMetaDataObject |
tryToRead(org.jdom2.Element element,
ArchiveEntry about,
String fragmentIdentifier)
Try to read a meta data object.
|
getAbout, getXmlDescription
protected OmexDescription description
public OmexMetaDataObject(ArchiveEntry about, OmexDescription description)
about
- the entry described by this objectdescription
- the descriptionpublic OmexMetaDataObject(ArchiveEntry about, String fragmentIdentifier, OmexDescription description)
about
- the entry described by this objectfragmentIdentifier
- the fragment identifier pointing into about
description
- the descriptionpublic OmexMetaDataObject(ArchiveEntry about, OmexDescription description, org.jdom2.Element describingElement)
about
- the entry described by this objectdescription
- the descriptiondescribingElement
- the element rooting the subtree that describes aboutpublic OmexMetaDataObject(ArchiveEntry about, String fragmentIdentifier, OmexDescription description, org.jdom2.Element describingElement)
about
- the entry described by this objectfragmentIdentifier
- the fragment identifier pointing into about
description
- the descriptiondescribingElement
- 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 OmexDescription getOmexDescription()
public static OmexMetaDataObject tryToRead(org.jdom2.Element element, ArchiveEntry about, String fragmentIdentifier)
element
cannot be understood as an OMEX description.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.