final BooleanObject firstBO = new BooleanObject();
firstBO.setValue(false);
// create a validator.
DOMSupplementaryValidator firstSupplementartyValidator
= new DOMSupplementaryValidator() {
// javadoc inherited
public void validate(Element element,
ErrorReporter errorReporter) {
firstBO.setValue(true);
// check that it is the correct element
assertEquals("Elment should be the 'shipto' element",
shipto,
element);
}
};
final BooleanObject secondBO = new BooleanObject();
secondBO.setValue(false);
// create another validator.
DOMSupplementaryValidator secondSupplementartyValidator
= new DOMSupplementaryValidator() {
// javadoc inherited
public void validate(Element element,
ErrorReporter errorReporter) {
secondBO.setValue(true);