|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Field
A Field is an item of a DataRecord. The fields of a record may have different types, but they are all managed via this interface. To be displayed in a jsp page a field must be handled by a specific FieldDisplayer which is aware of the internal data type and format of the field. The links between Fields and FieldDisplayers are managed by a RecordTemplate.
DataRecord
,
FieldDisplayer
,
RecordTemplate
Field Summary | |
---|---|
static String |
FILE_PARAM_NAME_SUFFIX
|
static String |
TYPE_FILE
|
Method Summary | |
---|---|
boolean |
acceptObjectValue(Object value)
Returns true if the value hasn't a wrong type and this field isn't read only. |
boolean |
acceptStringValue(String value)
Returns true if the value isn't normalized and this field isn't read only. |
boolean |
acceptValue(String value)
Returns true if the value isn't ill formed and this field isn't read only. |
boolean |
acceptValue(String value,
String lang)
Returns true if the local value isn't ill formed and this field isn't read only. |
String |
getName()
|
Object |
getObjectValue()
Returns the value of this field. |
int |
getOccurrence()
|
String |
getStringValue()
Returns the normalized String value. |
String |
getTypeName()
Returns the type name of this field. |
String |
getValue()
Returns the normalized value of this field. |
String |
getValue(String lang)
Returns the local string value of this field. |
boolean |
isNull()
Returns true if this field is not set. |
void |
setName(String name)
|
void |
setNull()
Set to null this field. |
void |
setObjectValue(Object value)
Set this field value. |
void |
setOccurrence(int i)
|
void |
setStringValue(String value)
Set this field value from a normalized String value. |
void |
setValue(String value)
Set this field value from a normalized string value. |
void |
setValue(String value,
String lang)
Set this field value from a local string value. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
static final String TYPE_FILE
static final String FILE_PARAM_NAME_SUFFIX
Method Detail |
---|
String getTypeName()
String getValue()
void setValue(String value) throws FormException
FormException
boolean acceptValue(String value)
String getValue(String lang)
void setValue(String value, String lang) throws FormException
FormException
boolean acceptValue(String value, String lang)
String getStringValue()
void setStringValue(String value) throws FormException
FormException
boolean acceptStringValue(String value)
Object getObjectValue()
void setObjectValue(Object value) throws FormException
FormException
boolean acceptObjectValue(Object value)
boolean isNull()
void setNull() throws FormException
FormException
int getOccurrence()
void setOccurrence(int i)
void setName(String name)
String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |