Public Member Functions | |
| Validator () | |
| void | validate (Object object) throws ValidationException |
| void | validate (Object object, ValidationContext context) throws ValidationException |
A class which can perform Validation on an Object model. This class uses the ClassDescriptors and FieldDescriptors to perform the validation.
| org.exolab.castor.xml.Validator.Validator | ( | ) |
Creates a new Validator
| void org.exolab.castor.xml.Validator.validate | ( | Object | object | ) | throws ValidationException |
Validates the given Object
| object | the Object to validate |
Referenced by org.exolab.castor.xml.UnmarshalHandler.endElement(), org.exolab.castor.mapping.xml.Param.validate(), org.exolab.castor.mapping.xml.MapTo.validate(), org.exolab.castor.mapping.xml.MappingRoot.validate(), org.exolab.castor.mapping.xml.Ldap.validate(), org.exolab.castor.mapping.xml.KeyGeneratorDef.validate(), org.exolab.castor.mapping.xml.Include.validate(), org.exolab.castor.mapping.xml.FieldMapping.validate(), org.exolab.castor.mapping.xml.Container.validate(), and org.exolab.castor.mapping.xml.ClassMapping.validate().
| void org.exolab.castor.xml.Validator.validate | ( | Object | object, | |
| ValidationContext | context | |||
| ) | throws ValidationException |
Validates the given Object
| object | the Object to validate | |
| context | the ValidationContext to use during validation. |
Implements org.exolab.castor.xml.ClassValidator.
Reimplemented in org.exolab.castor.xml.FieldValidator.
References org.exolab.castor.xml.XPathLocation.addAttribute(), org.exolab.castor.xml.XPathLocation.addChild(), org.exolab.castor.xml.XPathLocation.addParent(), org.exolab.castor.xml.NodeType.Attribute, org.exolab.castor.mapping.ClassDescriptor.getFields(), org.exolab.castor.xml.ValidationException.getLocation(), org.exolab.castor.xml.XMLFieldDescriptor.getNodeType(), org.exolab.castor.xml.XMLFieldDescriptor.getValidator(), org.exolab.castor.xml.XMLClassDescriptor.getValidator(), org.exolab.castor.xml.XMLClassDescriptor.getXMLName(), org.exolab.castor.xml.XMLFieldDescriptor.getXMLName(), org.exolab.castor.xml.ValidationException.setLocation(), org.exolab.castor.xml.FieldValidator.validate(), and org.exolab.castor.xml.TypeValidator.validate().
1.7.0