|
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.SoaplabMap
public class SoaplabMap
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.
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 |
---|
public SoaplabMap()
Method Detail |
---|
public java.util.List<MapEntry> getEntries()
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
public java.lang.Object get(java.lang.String key)
public void put(java.lang.String key, java.lang.Object value)
public static SoaplabMap fromMap(java.util.Map<java.lang.String,java.lang.Object> map)
java.lang.IllegalArgumentException
- if the input 'map' contains a
value which is not one of the four types allowed by the SoaplabMappublic static SoaplabMap fromStringMap(java.util.Map<java.lang.String,java.lang.String> map)
public static java.util.Map<java.lang.String,java.lang.String> toStringMap(SoaplabMap map)
public static java.util.Map<java.lang.String,java.lang.String>[] toStringMaps(SoaplabMap[] maps)
public static SoaplabMap[] fromMaps(java.util.Map<java.lang.String,java.lang.Object>[] maps)
public static java.util.Map<java.lang.String,java.lang.Object> toMap(SoaplabMap map)
public static java.util.Map<java.lang.String,java.lang.Object>[] toMaps(SoaplabMap[] maps)
|
Version: ${maven.project.version} | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |