Package repast.simphony.freezedry
Class FreezeDryedObject
- java.lang.Object
-
- repast.simphony.freezedry.FreezeDryedObject
-
public class FreezeDryedObject extends Object
This represents a flattened object. The properties stored in this object can be one of four types: String, Number, byte[] or FreezeDryedParentChild. As such, when working with this object, one should take care to neither put another object type in as a value, or expect anything else out. These were chosen as the base primitives for this class because for any object it should be possible to decompose the properties into these types. FreezeDryedParentChild represents a flattened view of another object, so that should account for all possibilites.- Version:
- $revision$
- Author:
- Howe
-
-
Constructor Summary
Constructors Constructor Description FreezeDryedObject(Class type)
FreezeDryedObject(String id, Class type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(FreezeDryedParentChild o)
Object
get(String key)
Iterable<FreezeDryedParentChild>
getChildren()
String
getId()
Map<String,Object>
getProperties()
Class
getType()
boolean
hasChildren()
Set<String>
keySet()
int
numChildren()
void
put(String key, Object value)
void
setId(String id)
String
toString()
-
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getType
public Class getType()
-
addChild
public void addChild(FreezeDryedParentChild o)
-
getChildren
public Iterable<FreezeDryedParentChild> getChildren()
-
hasChildren
public boolean hasChildren()
-
numChildren
public int numChildren()
-
-