org.exist.validation
Class ValidationContentHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.exist.validation.ValidationContentHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class ValidationContentHandler
extends DefaultHandler

Simple contenthandler to determine the NamespaceUri of the document root node.

Author:
Dannes Wessels

Constructor Summary
ValidationContentHandler()
           
 
Method Summary
 String getNamespaceUri()
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationContentHandler

public ValidationContentHandler()
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException
See Also:
DefaultHandler.startElement(String,String,String,Attributes)

getNamespaceUri

public String getNamespaceUri()


Copyright (C) Wolfgang Meier. All rights reserved.