biz.c24.io.api.data
Class SwiftFieldValidationRule

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

public class SwiftFieldValidationRule
extends DefaultValidationRule

author: Matteo De Luise

See Also:
Serialized Form

Field Summary
protected  StringBuffer errorQualifierCardinality
           
protected  Set<String[]> errorsMandatoryQualifiers
           
protected  Set<String[]> errorsMutuallyExlusiveQualifiers
           
protected  Set<String> errorsNonRepetitiveQualifiers
           
protected  Set<String> errorSubfieldRestrictions
           
protected  String[][] mandatoryQualifiers
           
protected  String[][] mutuallyExclusiveQualifiers
           
protected  String[] nonRepetitiveQualifiers
           
protected  ComplexDataObject sequence
           
protected  int swiftFieldCount
           
protected  String swiftFieldName
           
 
Constructor Summary
SwiftFieldValidationRule()
           
 
Method Summary
protected  void clearErrors()
           
protected  void initialize()
           
protected  void mandatoryQualifiersErrorMessage()
           
protected  void mutuallyExclusiveQualifiersErrorMessage()
           
protected  void nonRepetitiveQualifiersErrorMessage()
           
protected  void qualifierCardinalityErrorMessage()
           
protected  void validateMandatoryQualifiers()
           
protected  void validateMutuallyExclusiveQualifiers()
           
protected  void validateNonRepetitiveQualifiers()
           
protected  void validateSubfieldRestriction(ComplexDataObject swiftField, String[] options, String[] qualifiers, boolean DSS, List<String> DssEnumeration, String subfield, List<String> subfieldEnumeration, String errorMessage)
           
 
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, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

swiftFieldName

protected String swiftFieldName

sequence

protected ComplexDataObject sequence

swiftFieldCount

protected int swiftFieldCount

errorsNonRepetitiveQualifiers

protected Set<String> errorsNonRepetitiveQualifiers

nonRepetitiveQualifiers

protected String[] nonRepetitiveQualifiers

errorsMandatoryQualifiers

protected Set<String[]> errorsMandatoryQualifiers

mandatoryQualifiers

protected String[][] mandatoryQualifiers

errorsMutuallyExlusiveQualifiers

protected Set<String[]> errorsMutuallyExlusiveQualifiers

mutuallyExclusiveQualifiers

protected String[][] mutuallyExclusiveQualifiers

errorQualifierCardinality

protected StringBuffer errorQualifierCardinality

errorSubfieldRestrictions

protected Set<String> errorSubfieldRestrictions
Constructor Detail

SwiftFieldValidationRule

public SwiftFieldValidationRule()
Method Detail

initialize

protected void initialize()

clearErrors

protected void clearErrors()

validateNonRepetitiveQualifiers

protected void validateNonRepetitiveQualifiers()

validateMandatoryQualifiers

protected void validateMandatoryQualifiers()

validateMutuallyExclusiveQualifiers

protected void validateMutuallyExclusiveQualifiers()

qualifierCardinalityErrorMessage

protected void qualifierCardinalityErrorMessage()

nonRepetitiveQualifiersErrorMessage

protected void nonRepetitiveQualifiersErrorMessage()

mandatoryQualifiersErrorMessage

protected void mandatoryQualifiersErrorMessage()

mutuallyExclusiveQualifiersErrorMessage

protected void mutuallyExclusiveQualifiersErrorMessage()

validateSubfieldRestriction

protected void validateSubfieldRestriction(ComplexDataObject swiftField,
                                           String[] options,
                                           String[] qualifiers,
                                           boolean DSS,
                                           List<String> DssEnumeration,
                                           String subfield,
                                           List<String> subfieldEnumeration,
                                           String errorMessage)


C24 Technologies © 2002-2012: All Rights Reserved.