EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.jaxb
Class JAXBValidator

java.lang.Object
  extended by org.eclipse.persistence.jaxb.JAXBValidator

public class JAXBValidator
extends java.lang.Object

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

JAXBValidator

public JAXBValidator(XMLValidator newValidator)
This constructor creates a DefaultValidationEventHandlervalidation instance, and sets the XMLMarshaller instance to the one provided.

Parameters:
newXMLMarshaller -
Method Detail

validateRoot

public boolean validateRoot(java.lang.Object rootObject)
                     throws JAXBException
Validate a root object against a schema.

Parameters:
rootObject - - the root object to be validated
Returns:
true if a valid root object, false otherwise
Throws:
JAXBException

validate

public boolean validate(java.lang.Object object)
                 throws JAXBException
Validate a non-root object against a schema.

Parameters:
object - - the object to be validated
Returns:
true if a valid object, false otherwise
Throws:
JAXBException

setEventHandler

public void setEventHandler(ValidationEventHandler newValidationEventHandler)
                     throws JAXBException
Throws:
JAXBException

getEventHandler

public ValidationEventHandler getEventHandler()
                                       throws JAXBException
Throws:
JAXBException

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)
                 throws PropertyException
Throws:
PropertyException

getProperty

public java.lang.Object getProperty(java.lang.String key)
                             throws PropertyException
Throws:
PropertyException

EclipseLink 1.0_1.0M2 API Reference - Incubation