|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.codestreet.messageforge.RFldConstraintI8
Class to represent a constraint on a numeric byte message field.
Constructor Summary | |
protected |
RFldConstraintI8()
Ctor. |
Method Summary | |
abstract java.lang.String |
errDesc(java.lang.String fldName)
Get error description. |
abstract boolean |
isValid(byte val)
Check if a message field satisfies the constraint. |
boolean |
isValid(RFld fld)
Check if a message field satisfies the constraint. |
void |
validate(RFld fld)
Check if a message field satisfies the constraint. |
void |
validate(RFld fld,
byte val)
Check if a value satisfies the constraint. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected RFldConstraintI8()
Method Detail |
public abstract java.lang.String errDesc(java.lang.String fldName)
errDesc
in interface RFldConstraint
fldName
- Field name.
public void validate(RFld fld) throws FieldValidationException
validate
in interface RFldConstraint
fld
- Field to validate.
FieldValidationException
RFld
public void validate(RFld fld, byte val) throws FieldValidationException
fld
- Field.val
- Value to validate.
FieldValidationException
public boolean isValid(RFld fld)
isValid
in interface RFldConstraint
fld
- Field to validate.
RFld
public abstract boolean isValid(byte val)
val
- Field value to validate.
RFld
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |