|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.common.data.RelationshipRange
public class RelationshipRange
Contains information about the relationship version rules. Relationship version rules can be specified on a given relationship between two assets.
Two types of relationship version rules can be specified:
a) Highest Version Rule: The asset relationship is maintained to the highest version of the
related asset in the range boundary specified.
b) All Versions Rule: The asset relationship is maintained to all the versions of the
related asset in the range boundary specified
You can set relationship version rule types by calling the setType(String) method.
Two possible values can be passed to the set types:
a) HIGHEST_VERSION
b) ALL_VERSIONS
You can specify the range boundary by setting the following properties:
a) Lowest Version: Specify the lowest version of the range by calling setLowestVersion().
b) Lowest Version Type: Specify the type of the lowest version by calling setLowestVersionType().
The two possible types are GREATER_THAN and GREATER_THAN_OR_EQUAL_TO.
c) Highest Version: Specify the highest version of the range by calling setHighestVersion().
d) Highest Version Type: Specify the type of the highest version by calling setHighestVersionType().
The two possible types are LESS_THAN and LESS_THAN_OR_EQUAL_TO.
| Field Summary | |
|---|---|
static java.lang.String |
ALL_VERSIONS
|
static java.lang.String |
GREATER_THAN
|
static java.lang.String |
GREATER_THAN_OR_EQUAL_TO
|
static java.lang.String |
HIGHEST_VERSION
|
static java.lang.String |
LESS_THAN
|
static java.lang.String |
LESS_THAN_OR_EQUAL_TO
|
| Constructor Summary | |
|---|---|
RelationshipRange()
|
|
RelationshipRange(RangeInfo rinfo,
boolean highest)
Create based upon a RangeInfo. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getHighestVersion()
|
java.lang.String |
getHighestVersionType()
|
java.lang.String |
getLowestVersion()
|
java.lang.String |
getLowestVersionType()
|
RangeInfo |
getRangeInfo()
Get the RangeInfo. |
java.lang.String |
getType()
|
int |
hashCode()
|
boolean |
isAllVersionsRangeRelationship()
|
boolean |
isHigherVersionIncluded()
Is the higher version included in the range? |
boolean |
isHighestVersionRangeRelationship()
|
boolean |
isLowerVersionIncluded()
Is the lower version included in the range? |
void |
setHighestVersion(java.lang.String highestVersion)
|
void |
setHighestVersionType(java.lang.String highestVersionType)
|
void |
setLowestVersion(java.lang.String lowestVersion)
Sets the lowest version of the range. |
void |
setLowestVersionType(java.lang.String lowestVersionType)
|
void |
setType(java.lang.String type)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String GREATER_THAN_OR_EQUAL_TO
public static final java.lang.String GREATER_THAN
public static final java.lang.String LESS_THAN
public static final java.lang.String LESS_THAN_OR_EQUAL_TO
public static final java.lang.String HIGHEST_VERSION
public static final java.lang.String ALL_VERSIONS
| Constructor Detail |
|---|
public RelationshipRange()
public RelationshipRange(RangeInfo rinfo,
boolean highest)
RangeInfo.
rinfo - highest - | Method Detail |
|---|
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 java.lang.String getLowestVersion()
public void setLowestVersion(java.lang.String lowestVersion)
lowestVersion - The lowest version to set.public java.lang.String getLowestVersionType()
public boolean isLowerVersionIncluded()
true if lower version included in range, false if only greater than lower version.public void setLowestVersionType(java.lang.String lowestVersionType)
The method sets the lowest version range type. The two possible values are a) GREATER_THAN_OR_EQUAL_TO b) GREATER_THAN
lowestVersionType - The lowest version range type to set.public java.lang.String getHighestVersion()
public void setHighestVersion(java.lang.String highestVersion)
highestVersion - The highest version to set.public java.lang.String getHighestVersionType()
public void setHighestVersionType(java.lang.String highestVersionType)
The method sets the lowest version range type. The two possible values are a) LESS_THAN_OR_EQUAL_TO b) LESS_THAN.
highestVersionType - The highest version range type to set.public boolean isHigherVersionIncluded()
true if higher version included in range, false if only less than higher version.public java.lang.String getType()
public void setType(java.lang.String type)
type - The type to set.public boolean isHighestVersionRangeRelationship()
public boolean isAllVersionsRangeRelationship()
public RangeInfo getRangeInfo()
RangeInfo.
RangeInfo.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||