org.openeai.xml
Class XmlValidator


java.lang.Object

  |

  +--org.openeai.OpenEaiObject

        |

        +--org.openeai.xml.XmlValidator


public class XmlValidator
extends OpenEaiObject

A convenience classed that can be used to validate an already created JDOM Document object.

Version:
3.0 beta2 - 28 January 2003
Author:
Tod Jackson (tod@openeai.org), Steve Wheat (steve@openeai.org)

Field Summary
 
Fields inherited from class org.openeai.OpenEaiObject
logger
 
Constructor Summary
XmlValidator()
          Constructor
 
Method Summary
 boolean isValid(org.jdom.Document inDoc)
          Uses the Xerces SAXParser to validate an existing JDOM Document object.
 
Methods inherited from class org.openeai.OpenEaiObject
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlValidator


public XmlValidator()
Constructor

Method Detail

isValid


public final boolean isValid(org.jdom.Document inDoc)
Uses the Xerces SAXParser to validate an existing JDOM Document object.

Returns:
boolean true if the document is valid, false if the document is not valid


Copyright © 2002, OpenEAI Software Foundation