|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.common.data.RelationshipInfo
public class RelationshipInfo
Relationship info, such as range and id.
A kludge since this needs to be fitted in to the older style.
| Field Summary | |
|---|---|
static RelationshipInfo |
EMPTY_INFO
A singleton instance of an empty RelationshipInfo. |
| Constructor Summary | |
|---|---|
RelationshipInfo()
An empty relationship info. |
|
RelationshipInfo(int id,
int stateid,
int toid,
RelationshipRange range,
boolean source,
boolean reverseRange)
Construct. |
|
RelationshipInfo(int id,
RelationshipRange range,
boolean source,
boolean reverseRange)
Construct without state. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getId()
|
static RelationshipInfo |
getInfoWithoutId(RelationshipInfo info)
Get an info that is without an id, state, toAssetId. |
RelationshipRange |
getRange()
|
int |
getStateId()
|
int |
getToAssetId()
Get the asset database id that this relationship is pointing to. |
int |
hashCode()
|
boolean |
isReverseRange()
|
boolean |
isSource()
|
void |
setId(int id)
|
void |
setRange(RelationshipRange range)
|
void |
setReverseRange(boolean reverseRange)
|
void |
setSource(boolean source)
|
void |
setStateId(int stateId)
|
void |
setToAssetId(int toid)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final RelationshipInfo EMPTY_INFO
RelationshipInfo.
| Constructor Detail |
|---|
public RelationshipInfo()
public RelationshipInfo(int id,
RelationshipRange range,
boolean source,
boolean reverseRange)
id - range -
public RelationshipInfo(int id,
int stateid,
int toid,
RelationshipRange range,
boolean source,
boolean reverseRange)
id - the id of the relationship entrystateid - the state id of the relation entrytoid - the asset pointed to by this entryrange - the range of relationship entrysource - true if pointing to a source, false if pointing to a target.reverseRange - true if this is a source end of a range (i.e. pointing back to owner of the range from the target within the range).| Method Detail |
|---|
public static RelationshipInfo getInfoWithoutId(RelationshipInfo info)
info -
null then an info will be created that is 0 id, 0 state, 0 toasset id, no range, not source, not reverse.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic RelationshipRange getRange()
null if not a range. If this instance returns isSource() this method may return null even if it is range.
In that case isReverseRange() would be true.public int getId()
public boolean isSource()
true if this comes from a related asset that points to the source asset from the target side. false
if this comes from a related asset that points to the target asset from the source side.public boolean isReverseRange()
true if this isSource() and the source is a range relationship.public int getStateId()
public int getToAssetId()
public void setRange(RelationshipRange range)
range - The range to set.public void setId(int id)
id - The id to set.public void setStateId(int stateId)
stateId - The stateid to set.public void setSource(boolean source)
source - The source to set.public void setReverseRange(boolean reverseRange)
reverseRange - The reverseRange to set.public void setToAssetId(int toid)
toid - The toid to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||