org.odftoolkit.odfdom.pkg.rdfa
Class DOMRDFaParser
java.lang.Object
net.rootdev.javardfa.Parser
org.odftoolkit.odfdom.pkg.rdfa.DOMRDFaParser
- All Implemented Interfaces:
- ContentHandler
public class DOMRDFaParser
- extends net.rootdev.javardfa.Parser
A RDFa parser for DOM
Methods inherited from class net.rootdev.javardfa.Parser |
characters, disable, emitTriples, emitTriplesDatatypeLiteral, emitTriplesPlainLiteral, enable, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eventFactory
protected XMLEventFactory eventFactory
sink
protected JenaSink sink
settings
protected Set<net.rootdev.javardfa.Setting> settings
literalCollector
protected net.rootdev.javardfa.literal.LiteralCollector literalCollector
extractor
protected URIExtractor extractor
locator
protected Locator locator
context
protected org.odftoolkit.odfdom.pkg.rdfa.EvalContext context
DOMRDFaParser
public DOMRDFaParser(JenaSink sink,
XMLOutputFactory outputFactory,
XMLEventFactory eventFactory,
URIExtractor extractor)
createInstance
public static DOMRDFaParser createInstance(JenaSink sink)
parse
public void parse(Node node)
- Parse the RDFa in-content metadata of the node.
- Parameters:
node
-
beginRDFaElement
protected void beginRDFaElement(String arg0,
String localname,
String qname,
Attributes arg3)
endRDFaElement
protected void endRDFaElement(String arg0,
String localname,
String qname)
writeCharacters
protected void writeCharacters(String value)
setBase
public void setBase(String base)
- Set the base uri of the DOM.
- Overrides:
setBase
in class net.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
Copyright © 2008-2017 The Apache Software Foundation. All Rights Reserved.