org.eclipse.persistence.oxm

Class XMLValidator

    • Method Detail

      • validateRoot

        public boolean validateRoot(Object rootObject)
                             throws XMLMarshalException
        Validate the given root object.
        Parameters:
        rootObject - A single root object to validate
        Returns:
        true if this is a valid object, otherwise false
        Throws:
        XMLMarshalException
      • validate

        public boolean validate(Object object)
                         throws XMLMarshalException
        Validate the given object.
        Parameters:
        object - A single object to validate
        Returns:
        true if this is a valid object, otherwise false
        Throws:
        XMLMarshalException
      • setErrorHandler

        public void setErrorHandler(ErrorHandler handler)
        Set the error handler to be used during validation
        Parameters:
        handler - the error handler to be used during validation
      • getErrorHandler

        public ErrorHandler getErrorHandler()
        Get the error handler to be used during validation
        Returns:
        the error handler associated with this XMLValidator

EclipseLink 2.3.2, "build v20111125-r10461" API Reference