|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.codestreet.messageforge.RFld com.codestreet.messageforge.RFldNumeric
Base class of all numeric fields.
Field Summary |
Fields inherited from class com.codestreet.messageforge.RFld |
desc_, fieldId_, locked_, name_, optional_, propertyName_, tags_, transient_, valSet_ |
Constructor Summary | |
protected |
RFldNumeric()
Default constructor. |
protected |
RFldNumeric(java.lang.String name,
int fieldId)
Constructor. |
protected |
RFldNumeric(java.lang.String name,
int fieldId,
java.lang.String desc)
Constructor. |
Method Summary | |
void |
addConstraint(RFldConstraintNumeric cons)
Add a constraint. |
protected boolean |
validType(short type)
Check if a data type is a valid numeric type. |
Methods inherited from class com.codestreet.messageforge.RFld |
addConstraint, buildMinMaxConstraintKey, equals, getConstraint, getConstraintCount, getDesc, getId, getName, getOptional, getPropertyName, getTag, getTags, getTransient, getType, getValueAsString, hashCode, isConstrained, isLocked, isProperty, isValSet, marshal, marshal, reset, set, set, setId, setLocked, setName, setOptional, setPropertyName, setTags, setTransient, setXmlAttrNames, setXmlTags, validate |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.codestreet.messageforge.RFldInterface |
getValueAsHashtable, getValueAsObject |
Constructor Detail |
protected RFldNumeric()
protected RFldNumeric(java.lang.String name, int fieldId)
name
- Field name.fieldId
- Field id. Field ids must be either 0
to indicate that there is no id on the field, or greater. In addition,
field ids must be unique within a messages - no two fields are allowed
to have the same field id.protected RFldNumeric(java.lang.String name, int fieldId, java.lang.String desc)
name
- Field name.fieldId
- Field id. Field ids must be either 0
to indicate that there is no id on the field, or greater. In addition,
field ids must be unique within a messages - no two fields are allowed
to have the same field id.desc
- Field description.Method Detail |
public void addConstraint(RFldConstraintNumeric cons) throws FieldValidationException
cons
- Constraint.
FieldValidationException
protected boolean validType(short type)
type
- Data type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |