Version: ${maven.project.version}

org.soaplab.share
Class Value

java.lang.Object
  extended by org.soaplab.share.Value

public class Value
extends java.lang.Object

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?).

Version:
$Id: Value.java,v 1.5 2009/06/19 12:32:10 mahmutuludag Exp $
Author:
Martin Senger

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

Value

public Value()

Value

public Value(java.lang.Object value)
Throws:
java.lang.IllegalArgumentException - if the input 'value' is not of the types allowed for this class
Method Detail

getValue

public java.lang.Object getValue()
Get a value kept in this instance. It is taken from the currently filled field.


getSingleString

public java.lang.String getSingleString()

setSingleString

public void setSingleString(java.lang.String value)

getStringArray

public java.util.List<java.lang.String> getStringArray()
Gets the value of the stringArray property.

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


getSingleBinary

public byte[] getSingleBinary()
Gets the value of the singleBinary property.

Returns:
possible object is byte[]

setSingleBinary

public void setSingleBinary(byte[] value)
Sets the value of the singleBinary property.

Parameters:
value - allowed object is byte[]

getBinaryArray

public java.util.List<byte[]> getBinaryArray()
Gets the value of the binaryArray property.

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}

Submit a bug or feature
Generated: Tue Jun 14 15:18:14 AST 2011