org.apache.ws.jaxme.impl
Class JMValidatorImpl

java.lang.Object
  extended byorg.apache.ws.jaxme.impl.JMControllerImpl
      extended byorg.apache.ws.jaxme.impl.JMValidatorImpl
All Implemented Interfaces:
JMValidator, Validator

public class JMValidatorImpl
extends JMControllerImpl
implements JMValidator

Version:
$Id: JMValidatorImpl.java,v 1.1 2003/09/23 12:34:49 jochen Exp $
Author:
Jochen Wiedmann

Field Summary
 
Fields inherited from class org.apache.ws.jaxme.impl.JMControllerImpl
eventHandler, JAXME_DATATYPE_CONVERTER, JAXME_PRIVATE
 
Constructor Summary
JMValidatorImpl()
           
 
Method Summary
 boolean validate(java.lang.Object pObject)
          Validates the given JAXB object, invoking its error handler for any problems it detects.
 boolean validateRoot(java.lang.Object pObject)
          Validates the given JAXB object, but not its child elements.
 
Methods inherited from class org.apache.ws.jaxme.impl.JMControllerImpl
getDatatypeConverter, getEventHandler, getJAXBContextImpl, getProperty, setDatatypeConverter, setEventHandler, setJAXBContextImpl, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ws.jaxme.JMValidator
getJAXBContextImpl, setJAXBContextImpl
 
Methods inherited from interface javax.xml.bind.Validator
getEventHandler, getProperty, setEventHandler, setProperty
 

Constructor Detail

JMValidatorImpl

public JMValidatorImpl()
Method Detail

validate

public boolean validate(java.lang.Object pObject)
                 throws JAXBException
Description copied from interface: Validator

Validates the given JAXB object, invoking its error handler for any problems it detects. Detected problems may cause exceptions, for example, if the event handlers ValidationEventHandler.handleEvent(ValidationEvent) method returns false.

Specified by:
validate in interface Validator
Parameters:
pObject - The JAXB object being validated.
Throws:
JAXBException - An unexpected problem occurred during validation
See Also:
Validator.validateRoot(Object)

validateRoot

public boolean validateRoot(java.lang.Object pObject)
                     throws JAXBException
Description copied from interface: Validator

Validates the given JAXB object, but not its child elements.

Specified by:
validateRoot in interface Validator
Parameters:
pObject - The JAXB object being validated.
Throws:
JAXBException - An unexpected problem occurred during validation
See Also:
Validator.validate(Object)