|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.jabber.msg.DataXOption
public class DataXOption
Supporting class for jabber:x:data support. This represents one option that is used for list-single and list-multi fields.
DataXMessage
,
DataXField
Constructor Summary | |
---|---|
DataXOption()
default constructor for use to parse incoming options |
|
DataXOption(java.lang.String value)
accepts a value for the option |
|
DataXOption(java.lang.String value,
java.lang.String label)
accepts a value and optionally a label. |
Method Summary | |
---|---|
Element |
encode()
encodes the data and returns the element for use to serialize the data over the wire |
java.lang.String |
getLabel()
retrieves the label. |
java.lang.String |
getValue()
|
void |
parse(Element opElem)
parses the incoming option element |
void |
setLabel(java.lang.String label)
sets the label. |
void |
setValue(java.lang.String value)
sets the value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataXOption()
public DataXOption(java.lang.String value)
public DataXOption(java.lang.String value, java.lang.String label)
value
- the value of the optionlabel
- optionally the label, or null if not used (which will default to value when retrieved)Method Detail |
---|
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.lang.String getValue()
public void setValue(java.lang.String value)
public Element encode() throws ParseException
ParseException
public void parse(Element opElem) throws ParseException
ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |