org.odftoolkit.odfdom.pkg.rdfa
Class DOMRDFaParser

java.lang.Object
  extended by net.rootdev.javardfa.Parser
      extended by org.odftoolkit.odfdom.pkg.rdfa.DOMRDFaParser
All Implemented Interfaces:
ContentHandler

public class DOMRDFaParser
extends net.rootdev.javardfa.Parser

A RDFa parser for DOM


Field Summary
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
DOMRDFaParser(JenaSink sink, XMLOutputFactory outputFactory, XMLEventFactory eventFactory, URIExtractor extractor)
           
 
Method Summary
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, 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
 

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)
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)

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.