|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
---|---|
javax.xml.bind.ValidationEventHandler |
getEventHandler()
|
java.lang.Object |
getProperty(java.lang.String key)
|
void |
setEventHandler(javax.xml.bind.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 javax.xml.bind.JAXBException
validateRoot
in interface javax.xml.bind.Validator
rootObject
- - the root object to be validated
javax.xml.bind.JAXBException
public boolean validate(java.lang.Object object) throws javax.xml.bind.JAXBException
validate
in interface javax.xml.bind.Validator
object
- - the object to be validated
javax.xml.bind.JAXBException
public void setEventHandler(javax.xml.bind.ValidationEventHandler newValidationEventHandler) throws javax.xml.bind.JAXBException
setEventHandler
in interface javax.xml.bind.Validator
javax.xml.bind.JAXBException
public javax.xml.bind.ValidationEventHandler getEventHandler() throws javax.xml.bind.JAXBException
getEventHandler
in interface javax.xml.bind.Validator
javax.xml.bind.JAXBException
public void setProperty(java.lang.String key, java.lang.Object value) throws javax.xml.bind.PropertyException
setProperty
in interface javax.xml.bind.Validator
javax.xml.bind.PropertyException
public java.lang.Object getProperty(java.lang.String key) throws javax.xml.bind.PropertyException
getProperty
in interface javax.xml.bind.Validator
javax.xml.bind.PropertyException
|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |