public class DataXOption
extends java.lang.Object
DataXMessage,
DataXField| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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)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
ParseExceptionpublic void parse(Element opElem)
throws ParseException
ParseExceptionCopyright © 2001-2005 Echomine. All Rights Reserved.