DLESE Tools
v1.6.0

org.dlese.dpc.xml.schema
Class XMLValidator

java.lang.Object
  extended by org.dlese.dpc.xml.schema.XMLValidator

public class XMLValidator
extends Object

Validate XML against a schema using a cached validator.

Author:
Jonathan Ostwald

Nested Class Summary
 class XMLValidator.MyErrorHandler
          Error Handler to store validation messages, and compile them into a string buffer as a report.
 
Constructor Summary
XMLValidator(URI uri)
          Constructor for the XMLValidator object
 
Method Summary
static void main(String[] args)
          The main program for the XMLValidator class
 String validateFile(File f)
          NOT YET DOCUMENTED
 String validateFile(File f, boolean showWarnings)
          NOT YET DOCUMENTED
 String validateString(String s)
          NOT YET DOCUMENTED
 String validateString(String s, boolean showWarnings)
          NOT YET DOCUMENTED
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLValidator

public XMLValidator(URI uri)
             throws Exception
Constructor for the XMLValidator object

Parameters:
uri - NOT YET DOCUMENTED
Throws:
Exception - NOT YET DOCUMENTED
Method Detail

validateString

public final String validateString(String s)
NOT YET DOCUMENTED

Parameters:
s - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

validateString

public final String validateString(String s,
                                   boolean showWarnings)
NOT YET DOCUMENTED

Parameters:
s - NOT YET DOCUMENTED
showWarnings - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

validateFile

public final String validateFile(File f)
NOT YET DOCUMENTED

Parameters:
f - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

validateFile

public final String validateFile(File f,
                                 boolean showWarnings)
NOT YET DOCUMENTED

Parameters:
f - NOT YET DOCUMENTED
showWarnings - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

main

public static void main(String[] args)
The main program for the XMLValidator class

Parameters:
args - The command line arguments

DLESE Tools
v1.6.0