|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
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()
|
java.lang.Object |
getProperty(java.lang.String key)
|
void |
setEventHandler(ValidationEventHandler newValidationEventHandler)
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
|
boolean |
validate(java.lang.Object object)
Validate a non-root object against a schema. |
boolean |
validateRoot(java.lang.Object rootObject)
Validate a root object against a schema. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JAXBValidator(XMLValidator newValidator)
newXMLMarshaller
- Method Detail |
---|
public boolean validateRoot(java.lang.Object rootObject) throws JAXBException
rootObject
- - the root object to be validated
JAXBException
public boolean validate(java.lang.Object object) throws JAXBException
object
- - the object to be validated
JAXBException
public void setEventHandler(ValidationEventHandler newValidationEventHandler) throws JAXBException
JAXBException
public ValidationEventHandler getEventHandler() throws JAXBException
JAXBException
public void setProperty(java.lang.String key, java.lang.Object value) throws PropertyException
PropertyException
public java.lang.Object getProperty(java.lang.String key) throws PropertyException
PropertyException
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |