biz.c24.io.api.data.sepa
Class IdentifierOfCreditorValidator
java.lang.Object
biz.c24.io.api.data.DefaultValidationRule
biz.c24.io.api.data.sepa.IdentifierOfCreditorValidator
- All Implemented Interfaces:
- ModelComponent, ValidationRule, Validator, Serializable
public class IdentifierOfCreditorValidator
- extends DefaultValidationRule
A class for validating a supplied String in order to check for validity of an Identifier of Creditor.
- See Also:
- Serialized Form
| Methods inherited from class biz.c24.io.api.data.DefaultValidationRule |
addDependentPredicateCode, getAnnotation, getDependentPredicateCode, getDependentPredicateCodeCount, getErrorCode, getName, getPredicateCode, getSeverity, removeDependentPredicateCode, setAnnotation, setErrorCode, setName, setPredicateCode, setSeverity, toString |
IdentifierOfCreditorValidator
public IdentifierOfCreditorValidator()
- Creates a new instance.
validate
public boolean validate(Object object,
DataComponent component,
ComplexDataObject context,
ValidationManager manager)
throws ValidationException
- Description copied from interface:
Validator
- Validate the given object.
- Specified by:
validate in interface Validator- Overrides:
validate in class DefaultValidationRule
- Parameters:
object - The object to be validated - commonly a String, Integer, Double, Date etc.component - The Element or Attribute inside context which defines object.context - The parent of object - could be null.manager - The validation manager which is performing this validation.
- Returns:
- Whether the object is valid if the validation manager is not operating in exception mode.
- Throws:
ValidationException - If the object is not valid and the validation maanger is operating in exception mode.
validate
public boolean validate(Object object,
DataComponent component,
ComplexDataObject context,
String rule,
ValidationManager manager)
throws ValidationException
- Runs the validation routine and reports errors against the specified rule.
- Parameters:
obj - The object to be validated.comp - The defining element or attribute of the object to be validated.context - The context on which biz.c24.io.api.data.ComplexDataObject#validationEventOccurred should be called.rule - The rule.
- Returns:
- Whether the object is valid.
- Throws:
ValidationException - If the object is not valid AND the validation mechanism specified for obj is ValidationMechanismEnum.VALIDATION_MECHANISM_EXCEPTION.
Copyright © 2002-2007 IONA Technologies. All Rights Reserved.