|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.systems.app.model.util.RelationshipsHelper
public class RelationshipsHelper
Helper class for working with Relationships in the model
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
RelationshipsHelper()
|
Method Summary | |
---|---|
static List<Relationship> |
getPrimaryRelationships(Artifact source,
Artifact target)
Return a list of Relationships whose artifacts at both ends are children ( direct or indirect ) of given source and target artifacts. |
static List<Relationship> |
getRelationshipsBySource(Artifact artifact,
Class[] classtypes)
Return a list of relationships based on the specified source and type |
static List<Relationship> |
getRelationshipsByTarget(Artifact artifact,
Class[] classtypes)
Return a list of relationships based on the specified target and type |
static List<Artifact> |
getSources(Artifact target,
Class classtype)
Return a list of Artifacts which are targets from Relationships of the specified class type and whose source is the specified artifact. |
static List<Artifact> |
getSources(Artifact target,
Class[] classtypes)
Return a list of Artifacts which are targets from Relationships of the specified class type and whose source is the specified artifact. |
static List<Artifact> |
getTargets(Artifact source,
Class classtype)
Return a list of Artifacts which are targets from Relationships of the specified class type and whose source is the specified artifact. |
static List<Artifact> |
getTargets(Artifact source,
Class[] classtypes)
Return a list of Artifacts which are targets from Relationships of the specified class type and whose source is the specified artifact. |
static boolean |
hasRelation(Artifact artifact)
Check if the given element is soure or target of any relationship. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
Constructor Detail |
---|
public RelationshipsHelper()
Method Detail |
---|
public static List<Artifact> getTargets(Artifact source, Class[] classtypes)
public static List<Artifact> getTargets(Artifact source, Class classtype)
public static List<Artifact> getSources(Artifact target, Class[] classtypes)
public static List<Artifact> getSources(Artifact target, Class classtype)
public static List<Relationship> getPrimaryRelationships(Artifact source, Artifact target)
public static boolean hasRelation(Artifact artifact)
public static List<Relationship> getRelationshipsBySource(Artifact artifact, Class[] classtypes)
public static List<Relationship> getRelationshipsByTarget(Artifact artifact, Class[] classtypes)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |