|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.codestreet.messageforge.RFldConstraintString com.codestreet.messageforge.RFldConstraintStringEnum
Class to represent an enumeration constraint on a String message field.
Field Summary | |
protected java.lang.String[] |
enums_
Enumeration of allowed values. |
Constructor Summary | |
RFldConstraintStringEnum(java.lang.String fldName,
java.lang.String[] enums)
Constructor. |
|
RFldConstraintStringEnum(java.lang.String fldName,
java.lang.String[] enums,
boolean ignoreCase)
Constructor. |
Method Summary | |
java.lang.String |
errDesc(java.lang.String fldName)
Get error description. |
boolean |
isValid(java.lang.String val)
Check if a value satisfies the constraint. |
Methods inherited from class com.codestreet.messageforge.RFldConstraintString |
isValid, validate, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String[] enums_
Constructor Detail |
public RFldConstraintStringEnum(java.lang.String fldName, java.lang.String[] enums, boolean ignoreCase) throws FieldValidationException
fldName
- Name of field to which this constraint is bound.enums
- Enumeration of allowed values.ignoreCase
- If true string compares are case-insensitive.
Otherwise, compares are case-sensitive.public RFldConstraintStringEnum(java.lang.String fldName, java.lang.String[] enums) throws FieldValidationException
fldName
- Name of field to which this constraint is bound.enums
- Enumeration of allowed values.Method Detail |
public java.lang.String errDesc(java.lang.String fldName)
fldName
- Field name.
public boolean isValid(java.lang.String val)
isValid
in class RFldConstraintString
val
- Value to validate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |