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, setXMLNSclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetFieldValue, setFieldValuepublic String getDesc() throws XMLException
getDesc in interface Field<T>XMLExceptionpublic void setDesc(String desc) throws XMLException
setDesc in interface Field<T>desc - description of fieldXMLExceptionpublic String getLabel() throws XMLException
getLabel in interface Field<T>XMLExceptionpublic void setLabel(String label) throws XMLException
setLabel in interface Field<T>label - label of field.XMLExceptionpublic String getType() throws XMLException
getType in interface Field<T>XMLExceptionpublic String getVar() throws XMLException
getVar in interface Field<T>XMLExceptionpublic void setVar(String var) throws XMLException
setVar in interface Field<T>var - name of field.XMLExceptionpublic boolean isRequired()
throws XMLException
isRequired in interface Field<T>true is field is required.XMLExceptionpublic void setRequired(boolean value)
throws XMLException
setRequired in interface Field<T>value - true is field is requiredXMLExceptionCopyright © 2006–2018 Tigase. All rights reserved.