Constructor and Description |
---|
JAXBValidator(XMLValidator newValidator)
This constructor creates a
DefaultValidationEventHandlervalidation instance, and sets the
XMLMarshaller instance to the one provided.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public JAXBValidator(XMLValidator newValidator)
newXMLMarshaller
- public boolean validateRoot(Object rootObject) throws JAXBException
validateRoot
in interface Validator
rootObject
- - the root object to be validatedJAXBException
public boolean validate(Object object) throws JAXBException
validate
in interface Validator
object
- - the object to be validatedJAXBException
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
EclipseLink 2.3.2, "build v20111125-r10461" API Reference