|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.spectacle.gee.DefaultEntity
public class DefaultEntity
Implementation of the Entity interface that contains no other functionality. For documentation of this class, we refer to the Entity interface. DefaultEntity is optimized for handling LARGE collections of labels (thousands of labels for thousands of objects).
| Field Summary | |
|---|---|
protected Map<Object,Object> |
_data
|
protected Map<Object,Object> |
_transientData
|
static String |
DEFAULT_DESTINATION
The default destination of Entities. |
| Constructor Summary | |
|---|---|
DefaultEntity()
|
|
DefaultEntity(Object id)
|
|
DefaultEntity(Object id,
Map<Object,Object> data,
Map<Object,Object> transientData,
Set<String> labels,
String destination)
|
|
| Method Summary | |
|---|---|
void |
addData(Object key,
Object value)
Add a piece of information to this Entity |
void |
addLabel(String label)
Add a label to this entity. |
void |
addLabels(Set<String> labels)
Add a set of labels to this entity. |
void |
addTransientData(Object key,
Object value)
Add a piece of transient information to this Entity. |
boolean |
equals(Object other)
|
Map<Object,Object> |
getData()
|
Object |
getData(Object key)
|
String |
getDestination()
|
Object |
getID()
|
Set<String> |
getLabels()
|
int |
getLabelsSize()
This method is not part of Entity. |
OpaqueCLabel[] |
getOpaqueLabels()
This method is not part of Entity. |
Map<Object,Object> |
getTransientData()
|
int |
hashCode()
|
void |
setData(Map<Object,Object> data)
Set the entire set of data this Entity contains |
void |
setDestination(String destination)
Set the destination (i.e. |
void |
setLabels(Set<String> labels)
Set the set of labels for this entity. |
void |
setOpaqueLabels(OpaqueCLabel[] oclabels)
This method is not part of Entity. |
void |
setTransientData(Map<Object,Object> data)
Set the entire set of transient data this Entity contains |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String DEFAULT_DESTINATION
protected Map<Object,Object> _data
protected Map<Object,Object> _transientData
| Constructor Detail |
|---|
public DefaultEntity()
public DefaultEntity(Object id)
public DefaultEntity(Object id,
Map<Object,Object> data,
Map<Object,Object> transientData,
Set<String> labels,
String destination)
| Method Detail |
|---|
public Object getID()
getID in interface Entity
public void addData(Object key,
Object value)
Entity
addData in interface Entitykey - the key used to store and retrieve the informationvalue - the information to add
public void addTransientData(Object key,
Object value)
Entity
addTransientData in interface Entitykey - the key used to store and retrieve the informationvalue - the information to addpublic Map<Object,Object> getData()
getData in interface Entitypublic Map<Object,Object> getTransientData()
getTransientData in interface Entitypublic Object getData(Object key)
getData in interface Entitykey - the key with which to get a piece of information
public void setData(Map<Object,Object> data)
Entity
setData in interface Entitydata - the new datapublic void setTransientData(Map<Object,Object> data)
Entity
setTransientData in interface Entitydata - the new datapublic void addLabel(String label)
Entity
addLabel in interface Entitylabel - the label to addpublic void addLabels(Set<String> labels)
Entity
addLabels in interface Entitylabels - the set of labels to addpublic Set<String> getLabels()
getLabels in interface Entitypublic void setLabels(Set<String> labels)
Entity
setLabels in interface Entitylabels - the new set of labelspublic OpaqueCLabel[] getOpaqueLabels()
public void setOpaqueLabels(OpaqueCLabel[] oclabels)
public int getLabelsSize()
public String getDestination()
getDestination in interface Entitypublic void setDestination(String destination)
Entity
setDestination in interface Entitydestination - the new destinationpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||