|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.client.SourceEntity.Relation
public class SourceEntity.Relation
A Relation defines a relationship between two entities in the source manager. Typically, nodes do not have have Relations defined on them, and each edge has two Relations. The Relations for an edge have the names Source and Sink. Each is connected to a node.
| Field Summary | |
|---|---|
protected Hashtable |
attributes
Attributes of the Relation |
protected boolean |
hookedUp
|
protected String |
name
|
protected boolean |
recip
|
protected SourceEntity |
related
|
protected EntityId |
relatedId
|
protected String |
relatedIdString
|
protected String |
relatedIdType
|
| Constructor Summary | |
|---|---|
SourceEntity.Relation()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Object |
getAttribute(String name)
Get an attribute from the Relation |
EntityId |
getEntityId()
|
String |
getName()
Get the name of the relationship. |
SourceEntity |
getRelatedEntity()
|
SourceEntity |
getSourceEntity()
|
boolean |
isReciprical()
This was a typo (should be reciprOcal), but we're leaving it in to not break existing configurations. |
boolean |
isReciprocal()
Get whether this means that the target entity is also related to this entity. |
void |
setAttribute(String name,
Object value)
Set an attribute on the Relation |
void |
setAttributes(Hashtable cache)
Set many attributes at once |
void |
setEntityId(EntityId e)
|
void |
setEntityId(String s)
The id of the target entity that this entity is related to. |
void |
setEntityType(String s)
The type of the target entity that this entity is related to. |
void |
setName(String s)
Set the name of the relationship. |
void |
setReciprical(boolean b)
This was a typo (should be reciprOcal), but we're leaving it in to not break existing configurations. |
void |
setReciprocal(boolean b)
Set whether this means that the target entity is also related to this entity. |
void |
setRelatedEntity(SourceEntity e)
|
String |
toString()
|
void |
updateFrom(SourceEntity.Relation otherRelation)
Copy the values from other Relation |
void |
writeTo(SourceEntity from,
IEntityHandler handler)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected EntityId relatedId
protected SourceEntity related
protected String name
protected boolean recip
protected String relatedIdString
protected String relatedIdType
protected boolean hookedUp
protected Hashtable attributes
| Constructor Detail |
|---|
public SourceEntity.Relation()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean isReciprical()
public void setReciprical(boolean b)
public boolean isReciprocal()
public void setReciprocal(boolean b)
public String getName()
public void setName(String s)
public EntityId getEntityId()
public void setEntityId(String s)
public void setEntityType(String s)
public void setEntityId(EntityId e)
public SourceEntity getSourceEntity()
public SourceEntity getRelatedEntity()
public void setRelatedEntity(SourceEntity e)
public boolean equals(Object o)
equals in class Object
public void writeTo(SourceEntity from,
IEntityHandler handler)
public void setAttribute(String name,
Object value)
public void setAttributes(Hashtable cache)
public Object getAttribute(String name)
public void updateFrom(SourceEntity.Relation otherRelation)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||