org.jbind.xml.instance.builder
Class ValidationVisitor

java.lang.Object
  extended byorg.jbind.xml.instance.data.DataVisitor
      extended byorg.jbind.xml.instance.builder.ValidationVisitor
All Implemented Interfaces:
IDataValidator, IDataVisitor

public class ValidationVisitor
extends DataVisitor
implements IDataValidator


Constructor Summary
ValidationVisitor(boolean aValidateContentModel)
           
 
Method Summary
 void validate(IAnyTypeData aData, IDataContext aDataContext, IConstraintViolations aViolations)
          Validates a data object.
 void visitAnyTypeDataEnds(IAnyTypeData aData)
           
 void visitAnyTypeDataStarts(IAnyTypeData aData)
           
 
Methods inherited from class org.jbind.xml.instance.data.DataVisitor
visitAnyComplexCCDataEnds, visitAnyComplexCCDataStarts, visitAnyComplexDataEnds, visitAnyComplexDataStarts, visitAnyComplexSCDataEnds, visitAnyComplexSCDataStarts, visitAnySimpleDataEnds, visitAnySimpleDataStarts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationVisitor

public ValidationVisitor(boolean aValidateContentModel)
Method Detail

visitAnyTypeDataStarts

public void visitAnyTypeDataStarts(IAnyTypeData aData)
Specified by:
visitAnyTypeDataStarts in interface IDataVisitor
Overrides:
visitAnyTypeDataStarts in class DataVisitor

visitAnyTypeDataEnds

public void visitAnyTypeDataEnds(IAnyTypeData aData)
Specified by:
visitAnyTypeDataEnds in interface IDataVisitor
Overrides:
visitAnyTypeDataEnds in class DataVisitor

validate

public void validate(IAnyTypeData aData,
                     IDataContext aDataContext,
                     IConstraintViolations aViolations)
Description copied from interface: IDataValidator
Validates a data object. A data context can be supplied for the validation in order to allow references between different data objects. References are resolved during validation.

Specified by:
validate in interface IDataValidator
Parameters:
aData - (required).
aDataContext - (optional).
aViolations - (required). Collects constraint violations.