com.mkdoc.sax
Class XhtmlTripleWriter

java.lang.Object
  |
  +--com.mkdoc.sax.AbstractContentHandler
        |
        +--com.mkdoc.sax.AbstractRdfContentHandler
              |
              +--com.mkdoc.sax.AbstractTripleWriter
                    |
                    +--com.mkdoc.sax.XhtmlTripleWriter
All Implemented Interfaces:
org.xml.sax.ContentHandler, RdfContentHandler

public class XhtmlTripleWriter
extends AbstractTripleWriter
implements org.xml.sax.ContentHandler

A composite XHTML metadata triple writer.

Version:
0.4 2005-05-31
Author:
Philip Shaw

Field Summary
 
Fields inherited from class com.mkdoc.sax.AbstractTripleWriter
manager, out
 
Fields inherited from class com.mkdoc.sax.AbstractRdfContentHandler
DC_PREFIX, DCTERMS_URI, NODE_PREFIX, NODE_SUFFIX, NS_XHTML1, profile, RDF_TYPE, RDF_VALUE, subject, URI_SCHEMES
 
Fields inherited from class com.mkdoc.sax.AbstractContentHandler
locator
 
Constructor Summary
XhtmlTripleWriter(FileStoreManager manager, java.net.URL url)
          Construct with a subject manager and initial URI.
 
Method Summary
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
          Extract metadata from meta and link elements.
 
Methods inherited from class com.mkdoc.sax.AbstractTripleWriter
endDocument, startDocument
 
Methods inherited from class com.mkdoc.sax.AbstractRdfContentHandler
escape, expandPredicate, expandPredicates, expandScheme, getBNode, getBNodeId, getSubject, isUri, setApplicationProfile, setSubject
 
Methods inherited from class com.mkdoc.sax.AbstractContentHandler
characters, endElement, endPrefixMapping, getAttributeValue, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping
 
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
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
 

Constructor Detail

XhtmlTripleWriter

public XhtmlTripleWriter(FileStoreManager manager,
                         java.net.URL url)
Construct with a subject manager and initial URI.

Parameters:
manager - A subject manager interface to write the triples to.
url - An initial URI subject.
Since:
Version 0.1 2005-02-15
Method Detail

startElement

public final void startElement(java.lang.String uri,
                               java.lang.String localName,
                               java.lang.String qName,
                               org.xml.sax.Attributes attributes)
                        throws org.xml.sax.SAXException
Extract metadata from meta and link elements.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class AbstractContentHandler
Parameters:
uri - The namespace URI for the element.
localName - The local element name.
qName - The qualified element name.
attributes - A set of attributes.
Throws:
org.xml.sax.SAXException - If the element is not a meta element.
Since:
Version 0.1 2005-02-14