org.yawlfoundation.yawl.unmarshal
Class SchemaForSchemaValidator

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

public class SchemaForSchemaValidator
extends DefaultHandler

/**

Author:
Lachlan Aldred Date: 4/06/2004 Time: 12:23:45

Method Summary
 void error(SAXParseException ex)
           
 void fatalError(SAXParseException ex)
           
static SchemaForSchemaValidator getInstance()
           
static void main(String[] args)
           
 String validateSchema(String schema)
          If the string is of 0 length then you know it has passed the test.
 String validateSchemaChunk(String chunk)
          If the string is of 0 length then you know it has passed the test.
 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
 

Method Detail

getInstance

public static SchemaForSchemaValidator getInstance()

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

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException

validateSchemaChunk

public String validateSchemaChunk(String chunk)
If the string is of 0 length then you know it has passed the test.

Parameters:
chunk -
Returns:
the validation failures as a string.

validateSchema

public String validateSchema(String schema)
If the string is of 0 length then you know it has passed the test.

Returns:
the validation failures as a string.


Copyright © 2004-2012 The YAWL Foundation.