|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.data.SimpleValidator
public class SimpleValidator
Validator implementation which will always pass or fail validation depending on the value of a System property.
Warning: Serialized objects of this class or of a deployed class which is derived from it may not be compatible with future releases of C24 Integreation Objects. The current serialization support is appropriate for short term storage or RMI between applications running the same version of C24 Integreation Objects.
Field Summary | |
---|---|
static String |
PASS_WITHOUT_RESOURCE
Deprecated. Use Utils.SYSTEM_PROPERTY_PASS_VALIDATION_WITHOUT_RESOURCE instead. |
Method Summary | |
---|---|
Annotation |
getAnnotation()
Returns the annotation associated with this enumeration. |
Annotation |
getAnnotation(int index)
Returns the annotation associated with the enumeration value at index. |
int |
getCount()
Returns the number of enumeration values. |
String |
getDependentPredicateCode(int index)
Returns the dependent predicate code at index . |
int |
getDependentPredicateCodeCount()
Returns the number of dependent predicate codes associated with this rule. |
String |
getErrorCode()
Returns the error code for this enumeration. |
int |
getIndex(String value)
Returns the first index of value or -1 if it was not found. |
static SimpleValidator |
getInstance()
Singleton method to return the static instance. |
String |
getName()
Returns the name of this component. |
String |
getName(int index)
Returns the name associated with the enumeration value at index. |
String |
getPredicateCode()
Returns the predicate code associated with this rule. |
ValidationSeverityEnum |
getSeverity()
Returns the severity of this rule. |
String |
getValue(int index)
Returns the enumeration value at index. |
boolean |
validate(Object object,
DataComponent component,
ComplexDataObject context,
ValidationManager manager)
Validate the given object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PASS_WITHOUT_RESOURCE
Utils.SYSTEM_PROPERTY_PASS_VALIDATION_WITHOUT_RESOURCE
instead.
Method Detail |
---|
public static SimpleValidator getInstance()
public Annotation getAnnotation()
Enumeration
getAnnotation
in interface Enumeration
getAnnotation
in interface ValidationRule
public String getName()
ModelComponent
getName
in interface ModelComponent
public ValidationSeverityEnum getSeverity()
ValidationRule
getSeverity
in interface ValidationRule
public String getErrorCode()
Enumeration
getErrorCode
in interface Enumeration
getErrorCode
in interface ValidationRule
public String getPredicateCode()
ValidationRule
getPredicateCode
in interface ValidationRule
public int getDependentPredicateCodeCount()
ValidationRule
getDependentPredicateCodeCount
in interface ValidationRule
public String getDependentPredicateCode(int index)
ValidationRule
index
.
getDependentPredicateCode
in interface ValidationRule
index
- the index of the code to return.
public int getCount()
Enumeration
getCount
in interface Enumeration
public int getIndex(String value)
Enumeration
value
or -1
if it was not found.
getIndex
in interface Enumeration
value
- The value to look for.
value
or -1
if it was not found.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
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |