|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.jaxb.JMManagerFactoryAttachable de.ispsoft.jaxme.jaxb.ValidatorImpl
JaxMe's implementation of a Validator.
Field Summary |
Fields inherited from class de.ispsoft.jaxme.jaxb.JMManagerFactoryAttachable |
BUILTIN_DATE_FORMAT, BUILTIN_DATETIME_FORMAT, BUILTIN_ENCODING, BUILTIN_TIME_FORMAT |
Constructor Summary | |
ValidatorImpl()
Constructor for ValidatorImpl. |
Method Summary | |
ValidationEventHandler |
getEventHandler()
Return the current event handler or the default event handler if one hasn't been set. |
void |
setEventHandler(ValidationEventHandler pHandler)
Allow an application to register a validation event handler. |
boolean |
validate(java.lang.Object pObject)
Validate the Java content tree starting at subrootObj. |
boolean |
validateRoot(java.lang.Object pObject)
Validate the Java content tree rooted at rootObj. |
Methods inherited from class de.ispsoft.jaxme.jaxb.JMManagerFactoryAttachable |
getDateFormat, getDateFormat, getDateFormatForPattern, getDateTimeFormat, getDateTimeFormat, getEncoding, getFactory, getLocale, getMessageFormat, getNumberFormat, getPrivateProperty, getProperty, getResourceBundle, getResourceValue, getTimeFormat, getTimeFormat, setDateFormat, setDateTimeFormat, setEncoding, setFactory, setLocale, setPrivateProperty, setProperty, setResourceBundle, setTimeFormat |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ValidatorImpl()
Method Detail |
public void setEventHandler(ValidationEventHandler pHandler)
Validator
The validation event handler will be called by the JAXB Provider if any
validation errors are encountered during calls to
validate
. If the client application does not
register a validation event handler before invoking the validate method,
then validation events will be handled by the default event handler which
will terminate the validate operation after the first error or fatal error
is encountered.
setEventHandler
in interface Validator
pHandler
- the validation event handlerpublic ValidationEventHandler getEventHandler()
Validator
getEventHandler
in interface Validator
public boolean validate(java.lang.Object pObject)
Validator
Client applications can use this method to validate Java content trees on-demand at runtime. This method can be used to validate any arbitrary subtree of the Java content tree. Global constraint checking will not be performed as part of this operation (i.e. ID/IDREF constraints).
TODO: what happens if the client passes a random java.lang.Object into this method? Throw a runtime exception?
validate
in interface Validator
pObject
- the obj to begin validation at
public boolean validateRoot(java.lang.Object pObject)
Validator
Client applications can use this method to validate Java content trees on-demand at runtime. This method is used to validate an entire Java content tree. Global constraint checking will be performed as part of this operation (i.e. ID/IDREF constraints).
TODO: what happens if the client passes a random java.lang.Object into this method? Throw a runtime exception?
validateRoot
in interface Validator
pObject
- the root obj to begin validation at
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |