javax.xml.bind
Interface Validator


public interface Validator

The Validator class is responsible for controlling the validation of content trees during runtime.

Since:
18-Oct-2004
Author:
Thomas.Diesler@jboss.org

Method Summary
 ValidationEventHandler getEventHandler()
          Return the current event handler or the default event handler if one hasn't been set.
 Object getProperty(String name)
          Get the particular property in the underlying implementation of Validator.
 void setEventHandler(ValidationEventHandler handler)
          Allow an application to register a validation event handler.
 void setProperty(String name, Object value)
          Set the particular property in the underlying implementation of Validator.
 boolean validate(Object subrootObj)
          Validate the Java content tree starting at subrootObj.
 boolean validateRoot(Object rootObj)
          Validate the Java content tree rooted at rootObj.
 

Method Detail

getEventHandler

ValidationEventHandler getEventHandler()
                                       throws JAXBException
Return the current event handler or the default event handler if one hasn't been set.

Throws:
JAXBException

getProperty

Object getProperty(String name)
                   throws PropertyException
Get the particular property in the underlying implementation of Validator.

Throws:
PropertyException

setEventHandler

void setEventHandler(ValidationEventHandler handler)
                     throws JAXBException
Allow an application to register a validation event handler.

Throws:
JAXBException

setProperty

void setProperty(String name,
                 Object value)
                 throws PropertyException
Set the particular property in the underlying implementation of Validator.

Throws:
PropertyException

validate

boolean validate(Object subrootObj)
                 throws JAXBException
Validate the Java content tree starting at subrootObj.

Throws:
JAXBException

validateRoot

boolean validateRoot(Object rootObj)
                     throws JAXBException
Validate the Java content tree rooted at rootObj.

Throws:
JAXBException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.