biz.c24.io.api.data.sepa
Class IdentifierOfCreditorValidatorXT33

java.lang.Object
  extended by biz.c24.io.api.data.DefaultValidationRule
      extended by biz.c24.io.api.data.sepa.IdentifierOfCreditorValidatorXT33
All Implemented Interfaces:
ModelComponent, ValidationRule, Validator, Serializable

public class IdentifierOfCreditorValidatorXT33
extends DefaultValidationRule

A class for validating a supplied String in order to check for validity of an Identifier of Creditor.

This class uses the System property Utils.SYSTEM_PROPERTY_ISO3166_COUNTRY_CODE_FILE to locate the source of the enumeration.

See Also:
Serialized Form

Constructor Summary
IdentifierOfCreditorValidatorXT33()
          Creates a new instance.
 
Method Summary
 boolean validate(Object object, DataComponent component, ComplexDataObject context, String rule, ValidationManager manager)
          Runs the validation routine and reports errors against the specified rule.
 boolean validate(Object object, DataComponent component, ComplexDataObject context, ValidationManager manager)
          Validate the given object.
 
Methods inherited from class biz.c24.io.api.data.DefaultValidationRule
addDependentPredicateCode, getAnnotation, getContextForPredicateChecking, getDependentPredicateCode, getDependentPredicateCodeCount, getErrorCode, getName, getPredicateCode, getSeverity, removeDependentPredicateCode, setAnnotation, setErrorCode, setName, setPredicateCode, setSeverity, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentifierOfCreditorValidatorXT33

public IdentifierOfCreditorValidatorXT33()
Creates a new instance.

Method Detail

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:
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.
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.


C24 Technologies © 2002-2012: All Rights Reserved.