public class ShortdescMetadataHandler extends Object implements IirdsMetadataHandler
<shortdesc>
element and creates
an iiRDS has-abstract
properties from it.Modifier and Type | Field and Description |
---|---|
(package private) static String |
META_SHORTDESC |
Constructor and Description |
---|
ShortdescMetadataHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addToModel(ToCNode node,
org.apache.jena.rdf.model.Model model)
Adds extracted metadata of a topic or map to the iiRDS RDF model.
|
void |
extractMetadata(ToCNode node,
Document document)
Extract metadata from an XML DOM of a topic or map.
|
String |
getName()
The name this metadata handler can be activated by from the
dita
command via parameters |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
completeModel
static final String META_SHORTDESC
public String getName()
IirdsMetadataHandler
dita
command via parametersgetName
in interface IirdsMetadataHandler
public void extractMetadata(ToCNode node, Document document)
IirdsMetadataHandler
ToCNode.setProperty(String, Object)
.
The key of the property should reflect the element / attribute where the
metadata come form in order to achieve unique keys for the properties.extractMetadata
in interface IirdsMetadataHandler
node
- the ToC node contextdocument
- the DOM to extract frompublic void addToModel(ToCNode node, org.apache.jena.rdf.model.Model model)
IirdsMetadataHandler
ToCNode.getProperty(String)
. The iiRDS InformationUnit
has
already been created when this method gets called and is accessible via
ToCNode.getInformationUnit()
addToModel
in interface IirdsMetadataHandler
node
- the ToC node contextmodel
- the RDF model (graph) to work with and updateCopyright © 2024. All rights reserved.