|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.jaxb.JAXBValidator
public class JAXBValidator
Facilitates JAXBValidation.
Constructor Summary | |
---|---|
JAXBValidator(XMLValidator newValidator)
This constructor creates a DefaultValidationEventHandlervalidation instance, and sets the XMLMarshaller instance to the one provided. |
Method Summary | |
---|---|
ValidationEventHandler |
getEventHandler()
|
Object |
getProperty(String key)
|
void |
setEventHandler(ValidationEventHandler newValidationEventHandler)
|
void |
setProperty(String key,
Object value)
|
boolean |
validate(Object object)
Validate a non-root object against a schema. |
boolean |
validateRoot(Object rootObject)
Validate a root object against a schema. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JAXBValidator(XMLValidator newValidator)
newXMLMarshaller
- Method Detail |
---|
public boolean validateRoot(Object rootObject) throws JAXBException
validateRoot
in interface Validator
rootObject
- - the root object to be validated
JAXBException
public boolean validate(Object object) throws JAXBException
validate
in interface Validator
object
- - the object to be validated
JAXBException
public void setEventHandler(ValidationEventHandler newValidationEventHandler) throws JAXBException
setEventHandler
in interface Validator
JAXBException
public ValidationEventHandler getEventHandler() throws JAXBException
getEventHandler
in interface Validator
JAXBException
public void setProperty(String key, Object value) throws PropertyException
setProperty
in interface Validator
PropertyException
public Object getProperty(String key) throws PropertyException
getProperty
in interface Validator
PropertyException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |