|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.japisoft.xmlpad.validator.DefaultValidator
This is a validation action for checking the XMLContent of the XMLContainer.
Note that the default implementation doesn't build a DOM document. For
building a DOM document from the DomBuilderMode property must
be activated.
| Field Summary |
| Fields inherited from interface com.japisoft.xmlpad.validator.Validator |
ERROR, OK |
| Constructor Summary | |
DefaultValidator()
|
|
DefaultValidator(boolean domBuilderMode)
If true, a DOM document will be built and retreive using
the getDocument method. |
|
DefaultValidator(boolean domBuilderMode,
boolean ToValidating)
If true, a DOM document will be built and retreive using
the getDocument method. |
|
| Method Summary | |
void |
dispose()
|
void |
error(org.xml.sax.SAXParseException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
org.w3c.dom.Document |
getDocument()
|
boolean |
hasError()
An error has been found while parsing |
boolean |
notifyAction(com.japisoft.xmlpad.XMLContainer container)
|
void |
setDomBuilderMode(boolean domBuilderMode)
Include a DOM builder for retreiving a full DOM document from the parsing action. |
boolean |
validate(com.japisoft.xmlpad.XMLContainer container)
Validate the XML content bound to this container. |
void |
warning(org.xml.sax.SAXParseException exception)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultValidator()
public DefaultValidator(boolean domBuilderMode)
true, a DOM document will be built and retreive using
the getDocument method.
domBuilderMode -
public DefaultValidator(boolean domBuilderMode,
boolean ToValidating)
true, a DOM document will be built and retreive using
the getDocument method.
domBuilderMode - Build a final DOM document| Method Detail |
public boolean validate(com.japisoft.xmlpad.XMLContainer container)
Validator
validate in interface Validatorpublic void setDomBuilderMode(boolean domBuilderMode)
false
domBuilderMode - If true a DOM document will be built using the
parsing actionpublic boolean notifyAction(com.japisoft.xmlpad.XMLContainer container)
public org.w3c.dom.Document getDocument()
public void dispose()
public boolean hasError()
public void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||