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.
VAR_COMPARATOR
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, setVar
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, toString
public void addFieldValue(JID... value) throws XMLException
value
- JID to addXMLException
public void clearValues() throws XMLException
XMLException
public JID[] getFieldValue() throws XMLException
XMLException
public void setFieldValue(JID[] value) throws XMLException
value
- value of fieldXMLException
Copyright © 2006–2023 Tigase. All rights reserved.