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