|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.codehaus.spice.configkit.ConfigValidator
The ConfigValidator is responsible for validating an XML configuration source according to a specified Schema. The schema is defined when the validator is created. Note that the user should get a reference to the validator via the ConfigValidatorFactory.
Method Summary | |
ValidationResult |
validate(org.xml.sax.InputSource source)
Validate InputSource according to shcema. |
ValidationResult |
validate(org.xml.sax.InputSource source,
org.xml.sax.ContentHandler contentHandler)
Validate InputSource according to shcema. |
void |
validate(org.xml.sax.InputSource source,
org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ErrorHandler errorHandler)
Validate InputSource according to shcema. |
void |
validate(org.xml.sax.InputSource source,
org.xml.sax.ErrorHandler errorHandler)
Validate InputSource according to shcema. |
ValidationResult |
validate(InputStream inputStream)
Validate InputStream according to shcema. |
ValidationResult |
validate(InputStream inputStream,
org.xml.sax.ContentHandler contentHandler)
Validate InputStream according to shcema. |
void |
validate(InputStream inputStream,
org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ErrorHandler errorHandler)
Validate input stream according to shcema. |
void |
validate(InputStream inputStream,
org.xml.sax.ErrorHandler errorHandler)
Validate input stream according to shcema. |
ValidationResult |
validate(org.w3c.dom.Node node)
Validate Node according to shcema. |
void |
validate(org.w3c.dom.Node node,
org.xml.sax.ErrorHandler errorHandler)
Validate Node according to shcema. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void validate(InputStream inputStream, org.xml.sax.ContentHandler contentHandler, org.xml.sax.ErrorHandler errorHandler) throws ValidateException
inputStream
- the inputStream to validatecontentHandler
- the handler to send to after validationerrorHandler
- that will be passed any errors. May be null.
ValidateException
- if unable to validate the inputpublic void validate(InputStream inputStream, org.xml.sax.ErrorHandler errorHandler) throws ValidateException
inputStream
- the inputStream to validateerrorHandler
- that will be passed any errors. May be null.
ValidateException
- if unable to validate the inputpublic ValidationResult validate(InputStream inputStream)
inputStream
- the inputStream to validate
public ValidationResult validate(InputStream inputStream, org.xml.sax.ContentHandler contentHandler)
inputStream
- the inputStream to validatecontentHandler
- the handler to send to after validation
public void validate(org.xml.sax.InputSource source, org.xml.sax.ErrorHandler errorHandler) throws ValidateException
source
- the InputSource to validateerrorHandler
- that will be passed any errors. May be null.
ValidateException
- if unable to validate the inputpublic void validate(org.xml.sax.InputSource source, org.xml.sax.ContentHandler contentHandler, org.xml.sax.ErrorHandler errorHandler) throws ValidateException
source
- the InputSource to validatecontentHandler
- the handler to send to after validationerrorHandler
- that will be passed any errors. May be null.
ValidateException
- if unable to validate the inputpublic ValidationResult validate(org.xml.sax.InputSource source)
source
- the source to validate
public ValidationResult validate(org.xml.sax.InputSource source, org.xml.sax.ContentHandler contentHandler)
source
- the source to validatecontentHandler
- the handler to send to after validation
public void validate(org.w3c.dom.Node node, org.xml.sax.ErrorHandler errorHandler) throws ValidateException
node
- the node to validateerrorHandler
- that will be passed any errors. May be null.
ValidateException
- if unable to validate the inputpublic ValidationResult validate(org.w3c.dom.Node node)
node
- the node to validate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |