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