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