|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
void |
addAlias(java.lang.String alias)
An alternate name for this field which is usually the name of the database collumn to which this field maps to. |
void |
addValue(java.lang.String value)
Call this function, only after calling checkValue, to add a value to this field. |
java.lang.String |
checkValue(java.lang.String value)
Check the input parameter to ensure that its a valid value for this field or transform the input parameter into a valid value for this field. |
void |
clear()
Clear all the aliases of this field. |
void |
destory()
Destroy all contents and information of this field. |
java.util.ArrayList |
getAliases()
Get all the aliases of this field. |
int |
getDataSize()
Number of values that this field has. |
java.lang.String |
getHTMLData(int nPos)
A field can hold multiple values and this function transforms the value at the given position according to HTML syntax rules. |
java.lang.String |
getName()
Field name must be the same as the name of the HTML input field, Servlet parameter, or servelet session values that this field bounds to. |
boolean |
getRequired()
Indicates whether this field must have a value. |
java.lang.String |
getSQLData(int nPos)
A field can hold multiple values and this function transforms the value at the given position according to SQL syntax rules. |
java.lang.String |
getStringData(int nPos)
A field can hold multiple values and this function transforms the value at the given position into a generic string. |
boolean |
hasAliases()
Does this field have any mapping or back-end database column names. |
void |
removeAliases()
Remove any aliases that this field may have to reset any mapping to database column names. |
void |
removeValues()
Remove all values that this field has. |
java.lang.String |
toHTML()
Get HTML code framgment for generating an HTML input field. |
java.lang.String |
toString()
Get a string that represents all the values of this field. |
| Method Detail |
public java.lang.String getName()
public boolean getRequired()
public void addAlias(java.lang.String alias)
public java.util.ArrayList getAliases()
public void removeAliases()
public boolean hasAliases()
public java.lang.String checkValue(java.lang.String value)
throws ErrorMessage
value - input parameter that will be checked or transformed.
ErrorMessage - if the input parameter is not valid or cannot be transformed
into a valid value for this field.
public void addValue(java.lang.String value)
throws ErrorMessage
value - value that needs to be added to this field.
ErrorMessage - if there is any problems or errors in adding the value.public int getDataSize()
public java.lang.String getSQLData(int nPos)
nPos - position of a given value that this field contains.
public java.lang.String getHTMLData(int nPos)
nPos - position of a given value that the field contains.
public java.lang.String getStringData(int nPos)
nPos - position of the given value that the field contains.
public void removeValues()
public java.lang.String toString()
public java.lang.String toHTML()
public void clear()
public void destory()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||