wt.epm.structure
Class Relationship

java.lang.Object
  extended bywt.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


Nested Class Summary
protected static class Relationship.ObjectRole
           
protected static class Relationship.Role
          Represents the Role for a Binary Link.
protected static class Relationship.VersionRole
           
 
Field Summary
static Relationship CONTAINED_IN
           
protected static Relationship CONTAINED_IN_OLD
           
static Relationship CONTAINS
           
protected static Relationship CONTAINS_OLD
           
static Relationship GENERIC
           
private  Class linkClass
           
private  Relationship.Role otherSideRole
           
static Relationship REFERENCED_BY
           
static Relationship REFERENCES
           
private  Relationship.Role role
           
private static String ROLEA
           
private static String ROLEB
           
static Relationship USED_BY
           
static Relationship USES
           
static Relationship VARIANT
           
 
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.
 
Method Summary
 Class getLinkClass()
           
 Class getOtherSideClass()
           
 Relationship.Role getOtherSideRole()
           
 Relationship.Role getRole()
           
private  Relationship.Role getRole(LinkInfo linkInfo, RoleDescriptor roleInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.

Method Detail

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