biz.c24.io.api.data.swift
Class SwiftPartyFieldJValidator

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

public class SwiftPartyFieldJValidator
extends DefaultValidationRule

A class for validating the contents of '' fields, i.e.: 53J, 56J, 57J, 58J, 82J, 83J, 84J, 85J, 86J, 87J and 88J.

See Also:
Serialized Form

Constructor Summary
SwiftPartyFieldJValidator()
          Creates a new instance.
 
Method Summary
 boolean validate(Object object, DataComponent component, ComplexDataObject context, ValidationManager manager)
          Validates an instance of a SWIFT Party Field with Option J according to the special rules defined by SWIFT for the use of this 5*40x free-format field.
 
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

SwiftPartyFieldJValidator

public SwiftPartyFieldJValidator()
Creates a new instance.

Method Detail

validate

public boolean validate(Object object,
                        DataComponent component,
                        ComplexDataObject context,
                        ValidationManager manager)
                 throws ValidationException
Validates an instance of a SWIFT Party Field with Option J according to the special rules defined by SWIFT for the use of this 5*40x free-format field.

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.


C24 Technologies © 2002-2012: All Rights Reserved.