Package org.odftoolkit.odfdom.pkg.rdfa
Class DOMRDFaParser
java.lang.Object
net.rootdev.javardfa.Parser
org.odftoolkit.odfdom.pkg.rdfa.DOMRDFaParser
- All Implemented Interfaces:
ContentHandler
,ErrorHandler
public class DOMRDFaParser
extends net.rootdev.javardfa.Parser
A RDFa parser for DOM
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.odftoolkit.odfdom.pkg.rdfa.EvalContext
protected XMLEventFactory
protected URIExtractor
protected net.rootdev.javardfa.literal.LiteralCollector
protected Locator
protected Set<net.rootdev.javardfa.Setting>
protected JenaSink
-
Constructor Summary
ConstructorDescriptionDOMRDFaParser
(JenaSink sink, XMLOutputFactory outputFactory, XMLEventFactory eventFactory, URIExtractor extractor) DOMRDFaParser
(JenaSink sink, URIExtractor extractor) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
beginRDFaElement
(String arg0, String localname, String qname, Attributes arg3) static DOMRDFaParser
createInstance
(JenaSink sink) protected void
endRDFaElement
(String arg0, String localname, String qname) protected org.odftoolkit.odfdom.pkg.rdfa.EvalContext
parse
(org.odftoolkit.odfdom.pkg.rdfa.EvalContext context, StartElement element) void
Parse the RDFa in-content metadata of the node.void
Set the base uri of the DOM.protected void
writeCharacters
(String value) Methods inherited from class net.rootdev.javardfa.Parser
characters, disable, emitTriples, emitTriplesDatatypeLiteral, emitTriplesPlainLiteral, enable, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, isEnabled, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
eventFactory
-
sink
-
settings
-
literalCollector
protected net.rootdev.javardfa.literal.LiteralCollector literalCollector -
extractor
-
locator
-
context
protected org.odftoolkit.odfdom.pkg.rdfa.EvalContext context
-
-
Constructor Details
-
DOMRDFaParser
public DOMRDFaParser(JenaSink sink, XMLOutputFactory outputFactory, XMLEventFactory eventFactory, URIExtractor extractor) -
DOMRDFaParser
-
-
Method Details
-
createInstance
-
parse
Parse the RDFa in-content metadata of the node.- Parameters:
node
-
-
beginRDFaElement
-
endRDFaElement
-
writeCharacters
-
setBase
Set the base uri of the DOM.- Overrides:
setBase
in classnet.rootdev.javardfa.Parser
-
parse
protected org.odftoolkit.odfdom.pkg.rdfa.EvalContext parse(org.odftoolkit.odfdom.pkg.rdfa.EvalContext context, StartElement element) throws XMLStreamException - Throws:
XMLStreamException
-