|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.japisoft.xmlpad.xml.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.xml.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(XMLContainer container)
|
void |
setDomBuilderMode(boolean domBuilderMode)
Include a DOM builder for retreiving a full DOM document from the parsing action. |
boolean |
validate(XMLContainer container)
Validate the XML content bound to this container. |
void |
warning(org.xml.sax.SAXParseException exception)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, 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 documentMethod Detail |
public boolean validate(XMLContainer container)
Validator
validate
in interface Validator
public void setDomBuilderMode(boolean domBuilderMode)
false
domBuilderMode
- If true
a DOM document will be built using the
parsing actionpublic boolean notifyAction(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.ErrorHandler
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |