railo.runtime.text.xml
Class XMLValidator

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by railo.runtime.text.xml.XMLEntityResolverDefaultHandler
          extended by railo.runtime.text.xml.XMLValidator
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class XMLValidator
extends XMLEntityResolverDefaultHandler


Constructor Summary
XMLValidator(InputSource validator, String strSchema)
           
 
Method Summary
 void error(SAXParseException spe)
           
 void fatalError(SAXParseException spe)
           
 InputSource resolveEntity(String publicID, String systemID)
           
 Struct validate(InputSource xml)
           
 void warning(SAXParseException spe)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLValidator

public XMLValidator(InputSource validator,
                    String strSchema)
Method Detail

resolveEntity

public InputSource resolveEntity(String publicID,
                                 String systemID)
                          throws SAXException
Specified by:
resolveEntity in interface EntityResolver
Overrides:
resolveEntity in class XMLEntityResolverDefaultHandler
Throws:
SAXException

warning

public void warning(SAXParseException spe)
Specified by:
warning in interface ErrorHandler
Overrides:
warning in class DefaultHandler

error

public void error(SAXParseException spe)
Specified by:
error in interface ErrorHandler
Overrides:
error in class DefaultHandler

fatalError

public void fatalError(SAXParseException spe)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Overrides:
fatalError in class DefaultHandler
Throws:
SAXException

validate

public Struct validate(InputSource xml)
                throws XMLException
Throws:
XMLException


Copyright © 2012 Railo