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
XMLExceptionT getFieldValue() throws XMLException
XMLExceptionString getLabel() throws XMLException
XMLExceptionString getType() throws XMLException
XMLExceptionString getVar() throws XMLException
XMLExceptionboolean isRequired()
throws XMLException
true is field is required.XMLExceptionvoid setDesc(String desc) throws XMLException
desc - description of fieldXMLExceptionvoid setFieldValue(T value) throws XMLException
value - value of fieldXMLExceptionvoid setLabel(String label) throws XMLException
label - label of field.XMLExceptionvoid setRequired(boolean isRequired)
throws XMLException
isRequired - true is field is requiredXMLExceptionvoid setVar(String var) throws XMLException
var - name of field.XMLExceptionCopyright © 2006–2016 Tigase. All rights reserved.