|
Version: ${maven.project.version} | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.soaplab.share.Value
public class Value
A container for a value used in MapEntry
(which is
further used in SoaplabMap
). It behaves like a
union: it keeps a value just in one of its member fields. If a new
value is set for a field, the remaining fields are nullified.
Note that for the fields represented by Lists, there is no way to keep an empty list as a real value (TBD?).
Constructor Summary | |
---|---|
Value()
|
|
Value(java.lang.Object value)
|
Method Summary | |
---|---|
java.util.List<byte[]> |
getBinaryArray()
Gets the value of the binaryArray property. |
byte[] |
getSingleBinary()
Gets the value of the singleBinary property. |
java.lang.String |
getSingleString()
|
java.util.List<java.lang.String> |
getStringArray()
Gets the value of the stringArray property. |
java.lang.Object |
getValue()
Get a value kept in this instance. |
void |
setSingleBinary(byte[] value)
Sets the value of the singleBinary property. |
void |
setSingleString(java.lang.String value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Value()
public Value(java.lang.Object value)
java.lang.IllegalArgumentException
- if the input 'value' is not of
the types allowed for this classMethod Detail |
---|
public java.lang.Object getValue()
public java.lang.String getSingleString()
public void setSingleString(java.lang.String value)
public java.util.List<java.lang.String> getStringArray()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the stringArray property.
For example, to add a new item, do as follows:
getStringArray().add(newItem);
Objects of the following type(s) are allowed in the list
String
public byte[] getSingleBinary()
public void setSingleBinary(byte[] value)
value
- allowed object is
byte[]public java.util.List<byte[]> getBinaryArray()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the binaryArray property.
For example, to add a new item, do as follows:
getBinaryArray().add(newItem);
Objects of the following type(s) are allowed in the list byte[]
|
Version: ${maven.project.version} | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |