org.yawlfoundation.yawl.unmarshal
Class XMLValidator

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.yawlfoundation.yawl.unmarshal.XMLValidator
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class XMLValidator
extends DefaultHandler

Author:
Lachlan Aldred

Constructor Summary
XMLValidator()
           
 
Method Summary
 String checkSchema(String schemaLocation, String XMLData)
           
 String checkSchema(URL schemaLocation, String XMLData)
           
 void error(SAXParseException ex)
           
 void fatalError(SAXParseException ex)
           
 void setSchemaLocation(String location)
           
 void warning(SAXParseException ex)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLValidator

public XMLValidator()
Method Detail

setSchemaLocation

public void setSchemaLocation(String location)
Parameters:
location - a location of the form "URI absolute_package_path_to_file" E.g. "http://www.yawlfoundation.org/yawlschema /org/yawlfoundation/yawl/cost/costmodel.xsd"

warning

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

error

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

fatalError

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

checkSchema

public String checkSchema(URL schemaLocation,
                          String XMLData)

checkSchema

public String checkSchema(String schemaLocation,
                          String XMLData)


Copyright © 2004-2012 The YAWL Foundation.