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
Fields Modifier and Type Field Description protected org.odftoolkit.odfdom.pkg.rdfa.EvalContext
context
protected XMLEventFactory
eventFactory
protected URIExtractor
extractor
protected net.rootdev.javardfa.literal.LiteralCollector
literalCollector
protected Locator
locator
protected Set<net.rootdev.javardfa.Setting>
settings
protected JenaSink
sink
-
Constructor Summary
Constructors Constructor Description DOMRDFaParser(JenaSink sink, XMLOutputFactory outputFactory, XMLEventFactory eventFactory, URIExtractor extractor)
DOMRDFaParser(JenaSink sink, URIExtractor extractor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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(Node node)
Parse the RDFa in-content metadata of the node.void
setBase(String base)
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
-
-
-
-
Field Detail
-
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
-
-
Constructor Detail
-
DOMRDFaParser
public DOMRDFaParser(JenaSink sink, XMLOutputFactory outputFactory, XMLEventFactory eventFactory, URIExtractor extractor)
-
DOMRDFaParser
public DOMRDFaParser(JenaSink sink, URIExtractor extractor)
-
-
Method Detail
-
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)
-
writeCharacters
protected void writeCharacters(String value)
-
setBase
public void setBase(String base)
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
-
-