|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.data.DefaultValidationRule
biz.c24.io.api.data.swift.LTAddressValidator
public class LTAddressValidator
A class for parsing Target2 data.
This class uses the System property Utils.SYSTEM_PROPERTY_TARGET2_FILE
to locate the source of the enumeration.
Constructor Summary | |
---|---|
LTAddressValidator()
|
Method Summary | |
---|---|
Annotation |
getAnnotation()
Returns the annotation associated with this rule. |
Annotation |
getAnnotation(int index)
Returns the annotation associated with the enumeration value at index. |
static String[] |
getBICValues()
|
int |
getCount()
Returns the number of enumeration values. |
int |
getIndex(String bicCode)
Returns the first index of value or -1 if it was not found. |
String |
getName()
Returns the name of this component. |
String |
getName(int index)
Returns the name associated with the enumeration value at index. |
String |
getTestAndTrainigBIC(String bic)
|
String |
getValue(int index)
Returns the enumeration value at index. |
static void |
init()
Reinitializes the validator from the system property. |
String |
removeLogicalTerminalCodeFromBic(String bic)
|
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, getContextForPredicateChecking, getDependentPredicateCode, getDependentPredicateCodeCount, getErrorCode, 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 |
Methods inherited from interface biz.c24.io.api.data.Enumeration |
---|
getErrorCode |
Constructor Detail |
---|
public LTAddressValidator()
Method Detail |
---|
public static void init()
Use this method if you change the system property setting during the invocation of the JVM.
public static String[] getBICValues()
public Annotation getAnnotation()
ValidationRule
getAnnotation
in interface Enumeration
getAnnotation
in interface ValidationRule
getAnnotation
in class DefaultValidationRule
public int getIndex(String bicCode)
Enumeration
value
or -1
if it was not found.
getIndex
in interface Enumeration
bicCode
- The value to look for.
value
or -1
if it was not found.public int getCount()
Enumeration
getCount
in interface Enumeration
public String getValue(int index)
Enumeration
index.
- Specified by:
getValue
in interface Enumeration
- Parameters:
index
- The index of the value to return.
- Returns:
- The value at
index
.
public String getName(int index)
Enumeration
index.
- Specified by:
getName
in interface Enumeration
- Parameters:
index
- The index of the name to return.
- Returns:
- The name at
index
.
public Annotation getAnnotation(int index)
Enumeration
index.
- Specified by:
getAnnotation
in interface Enumeration
- Parameters:
index
- The index of the annotation to return.
- Returns:
- The name at
index
.
public boolean validate(Object object, DataComponent component, ComplexDataObject context, ValidationManager manager) throws ValidationException
Validator
validate
in interface Validator
validate
in class DefaultValidationRule
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.
ValidationException
- If the object is not valid and the validation maanger is operating in exception mode.public String getTestAndTrainigBIC(String bic)
public String removeLogicalTerminalCodeFromBic(String bic)
public String getName()
ModelComponent
getName
in interface ModelComponent
getName
in class DefaultValidationRule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |