|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.codestreet.messageforge.RFldConstraintI8
com.codestreet.messageforge.RFldConstraintI8Enum
Class to represent an enumeration constraint on a byte message field.
| Field Summary | |
protected byte[] |
enums_
Enumeration of allowed values. |
| Constructor Summary | |
RFldConstraintI8Enum(java.lang.String fldName,
byte[] enums)
Constructor. |
|
RFldConstraintI8Enum(java.lang.String fldName,
java.lang.String[] enums)
Constructor. |
|
| Method Summary | |
java.lang.String |
errDesc(java.lang.String fldName)
Get error description. |
boolean |
isValid(byte val)
Check if a value satisfies the constraint. |
| Methods inherited from class com.codestreet.messageforge.RFldConstraintI8 |
isValid, validate, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected byte[] enums_
| Constructor Detail |
public RFldConstraintI8Enum(java.lang.String fldName,
byte[] enums)
throws FieldValidationException
fldName - Name of field to which this constraint is bound.enums - Enumeration of allowed values.
public RFldConstraintI8Enum(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)
errDesc in interface RFldConstrainterrDesc in class RFldConstraintI8fldName - Field name.
public boolean isValid(byte val)
isValid in class RFldConstraintI8val - Value.
RFld
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||