public class MapObject extends Object
Modifier and Type | Field and Description |
---|---|
protected Map |
attributes |
protected Map |
fields |
protected List |
xmlrpcNoSend
A list of fields in this hashmap which should not be sent on xml-rpc create or update calls.
|
protected Map |
xmlrpcRefs
When Sending data of the following type, do not send a HashMap, instead send a single value from the hashmap to act as a reference to the object.
|
Modifier | Constructor and Description |
---|---|
protected |
MapObject() |
protected |
MapObject(Map data) |
Modifier and Type | Method and Description |
---|---|
Map |
getAttributes() |
protected boolean |
getBoolean(String key) |
protected Date |
getDate(String key) |
Map |
getFields() |
protected int |
getInt(String key) |
protected List |
getList(String key) |
protected MapObject |
getMapObject(String key,
Class type) |
protected <T> List<T> |
getMapObjects(String key,
Class<T> type) |
protected String |
getString(String key) |
protected URL |
getUrl(String key) |
protected boolean |
hasField(String key) |
protected void |
merge(MapObject source) |
protected void |
setBoolean(String key,
boolean value) |
protected void |
setDate(String key,
Date value) |
protected void |
setInt(String key,
int value) |
protected void |
setList(String key,
List value) |
protected void |
setMapObject(String key,
MapObject mapObject) |
protected void |
setMapObjects(String key,
List objects) |
protected void |
setString(String key,
String value) |
protected void |
setUrl(String key,
URL url) |
protected List |
toList(Object[] vector,
Class type) |
Map |
toMap() |
protected Map xmlrpcRefs
protected List xmlrpcNoSend
protected Map attributes
protected final Map fields
protected MapObject()
protected MapObject(Map data)
public Map getFields()
public Map getAttributes()
protected boolean getBoolean(String key)
protected int getInt(String key)
protected void setInt(String key, int value)
protected void setBoolean(String key, boolean value)
protected boolean hasField(String key)
public Map toMap()
protected void merge(MapObject source)
Copyright © 2016 The Codehaus Foundation. All rights reserved.