| java.lang.Object org.xml.sax.helpers.DefaultHandler com.sun.jbi.common.ConfigFileValidator
ConfigFileValidator | final public class ConfigFileValidator extends DefaultHandler (Code) | | This class is uses to validate the configuration file supplied during deployment
conforms to the schema.
author: Sun Microsystems, Inc. |
JAXP_SCHEMA_LANGUAGE | final static String JAXP_SCHEMA_LANGUAGE(Code) | | Parser setting.
|
JAXP_SCHEMA_SOURCE | final static String JAXP_SCHEMA_SOURCE(Code) | | Parser setting.
|
W3C_XML_SCHEMA | final static String W3C_XML_SCHEMA(Code) | | Parser setting.
|
ConfigFileValidator | public ConfigFileValidator(String schema, String xmlfile)(Code) | | Creates a new ConfigFileValidator object.
Parameters: schema - schema file name Parameters: xmlfile - xml file name |
error | public void error(SAXParseException se)(Code) | | Handler method for the parser.
Parameters: se - sax parse exception object. |
fatalError | public void fatalError(SAXParseException se)(Code) | | Handler method for the parser.
Parameters: se - SAXPrse exception. |
getDocument | public Document getDocument()(Code) | | Returns the document object obtained as a result of parsing.
document object |
getError | public String getError()(Code) | | Returns the error message if any.
String error message. |
getException | public Exception getException()(Code) | | DOCUMENT ME!
NOT YET DOCUMENTED |
isValid | public boolean isValid()(Code) | | Returns true if the file conforms to schema.
valid / invalid |
setValidating | public void setValidating()(Code) | | sets the parser as validating or non-validating.
|
validate | public void validate()(Code) | | This method has to be invoked to check the validity of the input document.
|
warning | public void warning(SAXParseException se)(Code) | | Handler method for the parser.
Parameters: se - SAXParseexception. |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|