T - type of valuepublic interface Field<T>
| Modifier and Type | Method and Description |
|---|---|
String |
getDesc()
Returns natural-language description of field.
|
T |
getFieldValue()
Returns value of field.
|
String |
getLabel()
Returns label of field.
|
String |
getType()
Returns field type.
|
String |
getVar()
Returns name of field.
|
boolean |
isRequired()
Get is this field is required.
|
void |
setDesc(String desc)
Set natural-language description of field.
|
void |
setFieldValue(T value)
Sets value of field.
|
void |
setLabel(String label)
Sets label of field.
|
void |
setRequired(boolean isRequired)
Set if this field is required one.
|
void |
setVar(String var)
Sets name of field.
|
String getDesc() throws XMLException
XMLExceptionvoid setDesc(String desc) throws XMLException
desc - description of fieldXMLExceptionT getFieldValue() throws XMLException
XMLExceptionvoid setFieldValue(T value) throws XMLException
value - value of fieldXMLExceptionString getLabel() throws XMLException
XMLExceptionvoid setLabel(String label) throws XMLException
label - label of field.XMLExceptionString getType() throws XMLException
XMLExceptionString getVar() throws XMLException
XMLExceptionvoid setVar(String var) throws XMLException
var - name of field.XMLExceptionboolean isRequired()
throws XMLException
true is field is required.XMLExceptionvoid setRequired(boolean isRequired)
throws XMLException
isRequired - true is field is requiredXMLExceptionCopyright © 2006–2020 Tigase. All rights reserved.