wt.epm.structure
Class Relationship
java.lang.Object
wt.epm.structure.Relationship
- public class Relationship
- extends Object
Represents a relationship that an object has to another object.
For example, an EPMDocument has a USES relationship to an
EPMDocumentMaster. In other words, it represents the navigation
of a Binary Link from one role to the other.
Supported API: false
Extendable: false
Constructor Summary |
protected |
Relationship(Class linkClass,
Relationship.Role role,
Relationship.Role otherSideRole)
Constructs a relationship given the link class to navigate, the role to navigate
from and the other-side role. |
protected |
Relationship(Class linkClass,
String toRole)
Constructs a relationship given the link class to navigate and the role to
navigate to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROLEA
private static String ROLEA
ROLEB
private static String ROLEB
USES
public static final Relationship USES
USED_BY
public static final Relationship USED_BY
REFERENCES
public static final Relationship REFERENCES
REFERENCED_BY
public static final Relationship REFERENCED_BY
GENERIC
public static final Relationship GENERIC
VARIANT
public static final Relationship VARIANT
CONTAINED_IN
public static final Relationship CONTAINED_IN
CONTAINS
public static final Relationship CONTAINS
CONTAINED_IN_OLD
protected static final Relationship CONTAINED_IN_OLD
CONTAINS_OLD
protected static final Relationship CONTAINS_OLD
linkClass
private Class linkClass
role
private Relationship.Role role
otherSideRole
private Relationship.Role otherSideRole
Relationship
protected Relationship(Class linkClass,
Relationship.Role role,
Relationship.Role otherSideRole)
- Constructs a relationship given the link class to navigate, the role to navigate
from and the other-side role.
Relationship
protected Relationship(Class linkClass,
String toRole)
throws WTException
- Constructs a relationship given the link class to navigate and the role to
navigate to.
getLinkClass
public Class getLinkClass()
getRole
public Relationship.Role getRole()
getOtherSideRole
public Relationship.Role getOtherSideRole()
getOtherSideClass
public Class getOtherSideClass()
getRole
private Relationship.Role getRole(LinkInfo linkInfo,
RoleDescriptor roleInfo)
throws WTException
- Throws:
WTException