org.objectweb.jac.ide
Class RelationLink

java.lang.Object
  |
  +--org.objectweb.jac.ide.ModelElement
        |
        +--org.objectweb.jac.ide.Link
              |
              +--org.objectweb.jac.ide.RelationLink
Direct Known Subclasses:
PointcutLink

public class RelationLink
extends Link


Field Summary
static int ORIENTATION_BOTH
           
static int ORIENTATION_REVERSE
           
static int ORIENTATION_STRAIGHT
           
 
Constructor Summary
RelationLink()
           
 
Method Summary
static Collection endChoices(Object substance)
           
 RelationRole endRole()
           
 int getOrientation()
          Get the value of orientation.
 boolean isAggregation()
          Get the value of aggregation.
 boolean isCalculated()
          Get the value of aggregation.
 void reverse()
          Swaps start and end classes.
 void setAggregation(boolean v)
          Set the value of aggregation.
 void setCalculated(boolean v)
          Set the value of aggregation.
 void setOrientation(int v)
          Set the value of orientation.
 RelationRole startRole()
           
 
Methods inherited from class org.objectweb.jac.ide.Link
getEnd, getEndRole, getStart, getStartRole, setEnd, setEndRole, setStart, setStartRole
 
Methods inherited from class org.objectweb.jac.ide.ModelElement
addConfigItem, addEndingLink, addLink, getConfigItems, getDescription, getEndingLinks, getFullName, getGenerationFullName, getGenerationName, getLinks, getName, getType, remove, removeEndingLink, removeLink, setDescription, setEndingLinks, setLinks, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORIENTATION_BOTH

public static final int ORIENTATION_BOTH
See Also:
Constant Field Values

ORIENTATION_STRAIGHT

public static final int ORIENTATION_STRAIGHT
See Also:
Constant Field Values

ORIENTATION_REVERSE

public static final int ORIENTATION_REVERSE
See Also:
Constant Field Values
Constructor Detail

RelationLink

public RelationLink()
Method Detail

startRole

public RelationRole startRole()

endRole

public RelationRole endRole()

getOrientation

public int getOrientation()
Get the value of orientation.

Returns:
value of orientation.

setOrientation

public void setOrientation(int v)
Set the value of orientation.

Parameters:
v - Value to assign to orientation.

isAggregation

public boolean isAggregation()
Get the value of aggregation.

Returns:
value of aggregation.

setAggregation

public void setAggregation(boolean v)
Set the value of aggregation.

Parameters:
v - Value to assign to aggregation.

isCalculated

public boolean isCalculated()
Get the value of aggregation.

Returns:
value of aggregation.

setCalculated

public void setCalculated(boolean v)
Set the value of aggregation.

Parameters:
v - Value to assign to aggregation.

endChoices

public static Collection endChoices(Object substance)

reverse

public void reverse()
Swaps start and end classes. (Does not work well with diagrams)