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
FieldsModifier and TypeFieldDescriptionprotected org.odftoolkit.odfdom.pkg.rdfa.EvalContextprotected XMLEventFactoryprotected URIExtractorprotected net.rootdev.javardfa.literal.LiteralCollectorprotected Locatorprotected Set<net.rootdev.javardfa.Setting>protected JenaSink -
Constructor Summary
ConstructorsConstructorDescriptionDOMRDFaParser(JenaSink sink, XMLOutputFactory outputFactory, XMLEventFactory eventFactory, URIExtractor extractor) DOMRDFaParser(JenaSink sink, URIExtractor extractor) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeginRDFaElement(String arg0, String localname, String qname, Attributes arg3) static DOMRDFaParsercreateInstance(JenaSink sink) protected voidendRDFaElement(String arg0, String localname, String qname) protected org.odftoolkit.odfdom.pkg.rdfa.EvalContextparse(org.odftoolkit.odfdom.pkg.rdfa.EvalContext context, StartElement element) voidParse the RDFa in-content metadata of the node.voidSet the base uri of the DOM.protected voidwriteCharacters(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, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setBasein 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
-