public class JidMultiField extends AbstractField<JID[]>
The field enables an entity to gather or provide multiple Jabber IDs. Each provided JID SHOULD be unique (as determined by comparison that includes application of the Nodeprep, Nameprep, and Resourceprep profiles of Stringprep as specified in XMPP Core), and duplicate JIDs MUST be ignored.
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldValue(JID... value)
Add value to field.
|
void |
clearValues()
Removes all values.
|
JID[] |
getFieldValue()
Returns value of field.
|
void |
setFieldValue(JID[] value)
Sets value of field.
|
getDesc, getLabel, getType, getVar, isRequired, setDesc, setLabel, setRequired, setVaraddChild, 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, setXMLNSpublic void addFieldValue(JID... value) throws XMLException
value - JID to addXMLExceptionpublic void clearValues()
throws XMLException
XMLExceptionpublic JID[] getFieldValue() throws XMLException
XMLExceptionpublic void setFieldValue(JID[] value) throws XMLException
value - value of fieldXMLExceptionCopyright © 2006–2015 Tigase. All rights reserved.