| 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)
newValidator - public boolean validateRoot(Object rootObject) throws JAXBException
validateRoot in interface ValidatorrootObject - - the root object to be validatedJAXBExceptionpublic boolean validate(Object object) throws JAXBException
validate in interface Validatorobject - - the object to be validatedJAXBExceptionpublic void setEventHandler(ValidationEventHandler newValidationEventHandler) throws JAXBException
setEventHandler in interface ValidatorJAXBExceptionpublic ValidationEventHandler getEventHandler() throws JAXBException
getEventHandler in interface ValidatorJAXBExceptionpublic void setProperty(String key, Object value) throws PropertyException
setProperty in interface ValidatorPropertyExceptionpublic Object getProperty(String key) throws PropertyException
getProperty in interface ValidatorPropertyExceptionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference