/** * Creates a new IdRefsValidator with no restrictions. */ public IdRefsValidator() { super(); _idRefValidator = new IdRefValidator(); }
/** * Validates the given Object. * * @param object the Object to validate * @param context the ValidationContext * @throws ValidationException if the object fails validation. */ public void validate(final Object object, final ValidationContext context) throws ValidationException { if (object == null) { String err = "The object of type IDREFS is null!"; throw new ValidationException(err); } Object[] objects = (Object[]) object; for (int i = 0; i < objects.length; i++) { _idRefValidator.validate(objects[i], context); } // validate(value, context); } // -- validate
/** * Creates a new IdRefsValidator with no restrictions. */ public IdRefsValidator() { super(); _idRefValidator = new IdRefValidator(); }
/** * Validates the given Object. * * @param object the Object to validate * @param context the ValidationContext * @throws ValidationException if the object fails validation. */ public void validate(final Object object, final ValidationContext context) throws ValidationException { if (object == null) { String err = "The object of type IDREFS is null!"; throw new ValidationException(err); } Object[] objects = (Object[]) object; for (int i = 0; i < objects.length; i++) { _idRefValidator.validate(objects[i], context); } // validate(value, context); } //-- validate
if (colType == null) { FieldValidator fieldValidator = new FieldValidator(); fieldValidator.setValidator(new IdRefValidator()); xmlDesc.setValidator(fieldValidator); } else {
if (colType == null) { FieldValidator fieldValidator = new FieldValidator(); fieldValidator.setValidator(new IdRefValidator()); xmlDesc.setValidator(fieldValidator); } else {
typeValidator = new org.exolab.castor.xml.validators.IdRefValidator(); fieldValidator.setValidator(typeValidator); typeValidator = new org.exolab.castor.xml.validators.IdRefValidator(); fieldValidator.setValidator(typeValidator);
typeValidator = new org.exolab.castor.xml.validators.IdRefValidator(); fieldValidator.setValidator(typeValidator); typeValidator = new org.exolab.castor.xml.validators.IdRefValidator(); fieldValidator.setValidator(typeValidator);