EclipseLink 2.5.1, build 'v20130918-f2b9fc5' API Reference
org.eclipse.persistence.oxm

Class XMLValidator

    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      protected XMLValidator(XMLContext xmlContext) 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      org.xml.sax.ErrorHandler getErrorHandler()
      Get the error handler to be used during validation
      void setErrorHandler(org.xml.sax.ErrorHandler handler)
      Set the error handler to be used during validation
      boolean validate(java.lang.Object object)
      Validate the given object.
      boolean validateRoot(java.lang.Object rootObject)
      Validate the given root object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLValidator

        protected XMLValidator(XMLContext xmlContext)
    • Method Detail

      • validateRoot

        public boolean validateRoot(java.lang.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(java.lang.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(org.xml.sax.ErrorHandler handler)
        Set the error handler to be used during validation
        Parameters:
        handler - the error handler to be used during validation
      • getErrorHandler

        public org.xml.sax.ErrorHandler getErrorHandler()
        Get the error handler to be used during validation
        Returns:
        the error handler associated with this XMLValidator
EclipseLink 2.5.1, build 'v20130918-f2b9fc5' API Reference