Package org.iirds.dita.ot.plugin
Class CompositeIRIHandler
java.lang.Object
org.iirds.dita.ot.plugin.CompositeIRIHandler
- All Implemented Interfaces:
IRIHandler
A composite IRI handler. It consists of other IRI handlers added by
addIRIHandler(IRIHandler). The interface methods delegate to all member
handlers.- Author:
- Martin Kreutzer, Empolis Information Management GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeIRIHandler(String name, IRIHandler... handlers) Create a composite metadata handler and provide the handlers -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIRIHandler(IRIHandler handler) Add an metadata handlervoidaddIRIHandlers(Collection<IRIHandler> handlers) Adds metadata handlersgetDocumentOrTopicIRI(ToCNode node) Generate IRI for a an iiRDS Topic or Document.getInfoObjectIRI(ToCNode node) Generate IRI for a an iiRDS InformationObject.getMetadataIRI(ToCNode node, String classURI, String label, String context) Generate IRI for a a metadata string property.getName()The unique name of this IRI providergetPackageIRI(ToCNode node) Generate IRI for a an iiRDS Package.voidtoString()
-
Constructor Details
-
CompositeIRIHandler
public CompositeIRIHandler() -
CompositeIRIHandler
Create a composite metadata handler and provide the handlers- Parameters:
name- the name of the this composite IRI handlerhandlers- the handlers making up this composite metadata handler
-
-
Method Details
-
getName
Description copied from interface:IRIHandlerThe unique name of this IRI provider- Specified by:
getNamein interfaceIRIHandler- Returns:
- the name of this handler
-
setName
-
toString
-
getIRIHandlers
- Returns:
- unmodifiable list of metadata handlers composing this metadata handler
-
addIRIHandlers
Adds metadata handlers- Parameters:
handlers- the metadata handlers to add
-
addIRIHandler
Add an metadata handler- Parameters:
handler- the metadata handler to add
-
getInfoObjectIRI
Description copied from interface:IRIHandlerGenerate IRI for a an iiRDS InformationObject. Implementation may use external services to lookup IRIs or use properties of the node- Specified by:
getInfoObjectIRIin interfaceIRIHandler- Parameters:
node- the node for which to generated- Returns:
- the generated IRI as String or null
-
getDocumentOrTopicIRI
Description copied from interface:IRIHandlerGenerate IRI for a an iiRDS Topic or Document. Implementation may use external services to lookup IRIs or use properties of the node- Specified by:
getDocumentOrTopicIRIin interfaceIRIHandler- Parameters:
node- the node for which to generated- Returns:
- the generated IRI as String or null
-
getPackageIRI
Description copied from interface:IRIHandlerGenerate IRI for a an iiRDS Package. Implementation may use external services to lookup IRIs or use properties of the node- Specified by:
getPackageIRIin interfaceIRIHandler- Parameters:
node- the node for which to generated (usually the root node)- Returns:
- the generated IRI as String
-
getMetadataIRI
Description copied from interface:IRIHandlerGenerate IRI for a a metadata string property. Implementation may use external services to lookup IRIs or use properties of the node- Specified by:
getMetadataIRIin interfaceIRIHandler- Parameters:
node- the node the metadata belongs toclassURI- the URI of the RDF metadata classlabel- something like a label of metadata valuecontext- an additional context, usually the property name at the node hinting the source of the metadata value- Returns:
- the generated IRI as String
-