public class AudienceMetadataHandler extends Object implements IirdsMetadataHandler
<audience>
element in DITA. It takes type as
role and experiencelevel as skill levelModifier and Type | Field and Description |
---|---|
(package private) static org.slf4j.Logger |
logger |
(package private) static String |
META_ROLE |
(package private) static String |
META_SKILL |
Constructor and Description |
---|
AudienceMetadataHandler() |
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 META_ROLE
static final String META_SKILL
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.