|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.listeners.config.XmlValidatorImpl
public class XmlValidatorImpl
A Helper classes used to validate xml files against supplied schemas.
| Constructor Summary | |
|---|---|
XmlValidatorImpl()
|
|
XmlValidatorImpl(org.xml.sax.InputSource xmlSource)
|
|
| Method Summary | |
|---|---|
java.util.Collection<java.lang.String> |
getValidationResults()
If the validation fails, more details can be obtained about the reasons why. |
org.w3c.dom.Document |
getXMLDocument()
After validation the parsed document can be obtained for further processing. |
void |
setXMLDocument(org.xml.sax.InputSource xmlSource)
|
boolean |
validate(org.xml.sax.InputSource xmlSource)
Validation method used to validate an xml file against a default xsd (jbossesb-1.0.xsd). |
boolean |
validate(org.xml.sax.InputSource xmlSource,
javax.xml.transform.stream.StreamSource validationSource)
Validation method used to validate an xml input source against an xsd input source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlValidatorImpl()
public XmlValidatorImpl(org.xml.sax.InputSource xmlSource)
| Method Detail |
|---|
public boolean validate(org.xml.sax.InputSource xmlSource)
throws XmlValidatorException
validate in interface XmlValidatorxmlSource - The xml input source to be validated.
XmlValidatorException - Failure during validation.
public boolean validate(org.xml.sax.InputSource xmlSource,
javax.xml.transform.stream.StreamSource validationSource)
throws XmlValidatorException
validate in interface XmlValidatorxmlSource - The xml input source to be validated.validationSource - The schema input source to validate against.
java.lang.Exception - Failure during validation.
XmlValidatorExceptionpublic java.util.Collection<java.lang.String> getValidationResults()
XmlValidator
getValidationResults in interface XmlValidatorpublic void setXMLDocument(org.xml.sax.InputSource xmlSource)
public org.w3c.dom.Document getXMLDocument()
XmlValidator
getXMLDocument in interface XmlValidator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||