public class ProductPropertyHandler extends Object implements IirdsMetadataHandler
product
attribute on the root element of
topics and and the root map. Groups names in the attribute value get ignored.
Only items outside of groups and group members are taken into account.Modifier and Type | Field and Description |
---|---|
(package private) static org.slf4j.Logger |
logger |
(package private) static String |
PROP_PRODUCT |
Constructor and Description |
---|
ProductPropertyHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addToModel(ToCNode root,
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 PROP_PRODUCT
static org.slf4j.Logger logger
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 root, 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
root
- the ToC node contextmodel
- the RDF model (graph) to work with and updateCopyright © 2024. All rights reserved.