|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface implemented by objects that describe the constraints on the field of a niggle data record.
Method Summary | |
void |
checkValidValue(Record rec,
java.lang.Object o)
Check whether this object is a valid value for this field of the given record. |
java.lang.Object |
defaultValue()
returns this field's "default value". |
java.lang.Object |
getCopy(java.lang.Object o)
Used when encapsulation requires Record::getFieldValue() to return a clone of an object. |
java.lang.Class |
getJavaType()
The kind of java object that can live in this record field. |
java.lang.String |
getLocalizedName(java.util.Locale locale)
|
java.lang.String |
getName()
A unique name that identifies the field |
java.lang.Object |
getObjectFromString(Record rec,
java.lang.String s)
Given the string representation of a field, return its internal java object representation. |
java.lang.String |
getSQLType()
|
boolean |
isFieldOf(Record rec)
Does this FieldDescriptor describe a field of the Record? Useful for sanity checks. |
boolean |
isRequired()
Used in the core validity checks. |
java.lang.String |
normalize(java.lang.String s)
"normalize" the string passed in. |
java.lang.String |
valueToString(java.lang.Object o)
returns the preferred the String representation of the object in question. |
Method Detail |
public java.lang.String getName()
public java.lang.Class getJavaType()
public java.lang.String getSQLType()
UnsupportedOperationException
- public java.lang.String getLocalizedName(java.util.Locale locale)
public boolean isRequired()
public java.lang.Object getObjectFromString(Record rec, java.lang.String s) throws java.io.IOException
public java.lang.String valueToString(java.lang.Object o) throws java.io.IOException
public java.lang.Object getCopy(java.lang.Object o)
public java.lang.String normalize(java.lang.String s)
public void checkValidValue(Record rec, java.lang.Object o) throws java.io.IOException
java.io.IOException
- Description of Exceptionpublic boolean isFieldOf(Record rec)
public java.lang.Object defaultValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |