Version: ${maven.project.version}

org.soaplab.share
Class SoaplabMap

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

public class SoaplabMap
extends java.lang.Object

A container for input and output data to/from Soaplab analysis services. It is a replacement for a usual Java Map<String,Object>, allowing only certain value types.

Version:
$Id: SoaplabMap.java,v 1.8 2011/04/06 14:12:46 mahmutuludag Exp $
Author:
Martin Senger

Constructor Summary
SoaplabMap()
           
 
Method Summary
static SoaplabMap fromMap(java.util.Map<java.lang.String,java.lang.Object> map)
           
static SoaplabMap[] fromMaps(java.util.Map<java.lang.String,java.lang.Object>[] maps)
           
static SoaplabMap fromStringMap(java.util.Map<java.lang.String,java.lang.String> map)
           
 java.lang.Object get(java.lang.String key)
           
 java.util.List<MapEntry> getEntries()
          Gets the value of all entries.
 void put(java.lang.String key, java.lang.Object value)
           
static java.util.Map<java.lang.String,java.lang.Object> toMap(SoaplabMap map)
           
static java.util.Map<java.lang.String,java.lang.Object>[] toMaps(SoaplabMap[] maps)
           
static java.util.Map<java.lang.String,java.lang.String> toStringMap(SoaplabMap map)
           
static java.util.Map<java.lang.String,java.lang.String>[] toStringMaps(SoaplabMap[] maps)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoaplabMap

public SoaplabMap()
Method Detail

getEntries

public java.util.List<MapEntry> getEntries()
Gets the value of all entries.

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 entries property.

For example, to add a new item, do as follows:

    getEntries().add(newItem);
 

Objects of the following type(s) are allowed in the list MapEntry


get

public java.lang.Object get(java.lang.String key)

put

public void put(java.lang.String key,
                java.lang.Object value)

fromMap

public static SoaplabMap fromMap(java.util.Map<java.lang.String,java.lang.Object> map)
Throws:
java.lang.IllegalArgumentException - if the input 'map' contains a value which is not one of the four types allowed by the SoaplabMap

fromStringMap

public static SoaplabMap fromStringMap(java.util.Map<java.lang.String,java.lang.String> map)

toStringMap

public static java.util.Map<java.lang.String,java.lang.String> toStringMap(SoaplabMap map)

toStringMaps

public static java.util.Map<java.lang.String,java.lang.String>[] toStringMaps(SoaplabMap[] maps)

fromMaps

public static SoaplabMap[] fromMaps(java.util.Map<java.lang.String,java.lang.Object>[] maps)

toMap

public static java.util.Map<java.lang.String,java.lang.Object> toMap(SoaplabMap map)

toMaps

public static java.util.Map<java.lang.String,java.lang.Object>[] toMaps(SoaplabMap[] maps)

Version: ${maven.project.version}

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