public class CompositeIRIHandler extends Object implements IRIHandler
addIRIHandler(IRIHandler)
. The interface methods delegate to all member
handlers.Constructor and Description |
---|
CompositeIRIHandler() |
CompositeIRIHandler(String name,
IRIHandler... handlers)
Create a composite metadata handler and provide the handlers
|
Modifier and Type | Method and Description |
---|---|
void |
addIRIHandler(IRIHandler handler)
Add an metadata handler
|
void |
addIRIHandlers(Collection<IRIHandler> handlers)
Adds metadata handlers
|
String |
getDocumentOrTopicIRI(ToCNode node)
Generate IRI for a an iiRDS Topic or Document.
|
String |
getInfoObjectIRI(ToCNode node)
Generate IRI for a an iiRDS InformationObject.
|
List<IRIHandler> |
getIRIHandlers() |
String |
getMetadataIRI(ToCNode node,
String classURI,
String label,
String context)
Generate IRI for a a metadata string property.
|
String |
getName()
The unique name of this IRI provider
|
String |
getPackageIRI(ToCNode node)
Generate IRI for a an iiRDS Package.
|
void |
setName(String name) |
String |
toString() |
public CompositeIRIHandler()
public CompositeIRIHandler(String name, IRIHandler... handlers)
name
- the name of the this composite IRI handlerhandlers
- the handlers making up this composite metadata handlerpublic String getName()
IRIHandler
getName
in interface IRIHandler
public void setName(String name)
public List<IRIHandler> getIRIHandlers()
public void addIRIHandlers(Collection<IRIHandler> handlers)
handlers
- the metadata handlers to addpublic void addIRIHandler(IRIHandler handler)
handler
- the metadata handler to addpublic String getInfoObjectIRI(ToCNode node)
IRIHandler
getInfoObjectIRI
in interface IRIHandler
node
- the node for which to generatedpublic String getDocumentOrTopicIRI(ToCNode node)
IRIHandler
getDocumentOrTopicIRI
in interface IRIHandler
node
- the node for which to generatedpublic String getPackageIRI(ToCNode node)
IRIHandler
getPackageIRI
in interface IRIHandler
node
- the node for which to generated (usually the root node)public String getMetadataIRI(ToCNode node, String classURI, String label, String context)
IRIHandler
getMetadataIRI
in interface IRIHandler
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 valueCopyright © 2024. All rights reserved.