T
- type of fieldpublic abstract class AbstractField<T> extends ElementWrapper implements Field<T>
Modifier and Type | Method and Description |
---|---|
String |
getDesc()
Returns natural-language description 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 |
setLabel(String label)
Sets label of field.
|
void |
setRequired(boolean value)
Set if this field is required one.
|
void |
setVar(String var)
Sets name of field.
|
addChild, equals, findChild, getAsString, getAttribute, getAttributes, getChildAfter, getChildElementValue, getChildElementValue, getChildren, getChildren, getChildrenNS, getChildrenNS, getFirstChild, getFirstChild, getName, getNextSibling, getParent, getValue, getWrappedElement, getXMLNS, hashCode, removeAttribute, removeChild, setAttribute, setAttributes, setChildElementValue, setChildElementValue, setParent, setValue, setXMLNS
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getFieldValue, setFieldValue
public String getDesc() throws XMLException
getDesc
in interface Field<T>
XMLException
public String getLabel() throws XMLException
getLabel
in interface Field<T>
XMLException
public String getType() throws XMLException
getType
in interface Field<T>
XMLException
public String getVar() throws XMLException
getVar
in interface Field<T>
XMLException
public boolean isRequired() throws XMLException
isRequired
in interface Field<T>
true
is field is required.XMLException
public void setDesc(String desc) throws XMLException
setDesc
in interface Field<T>
desc
- description of fieldXMLException
public void setLabel(String label) throws XMLException
setLabel
in interface Field<T>
label
- label of field.XMLException
public void setRequired(boolean value) throws XMLException
setRequired
in interface Field<T>
value
- true
is field is requiredXMLException
public void setVar(String var) throws XMLException
setVar
in interface Field<T>
var
- name of field.XMLException
Copyright © 2006–2016 Tigase. All rights reserved.