org.kite9.diagram.builders
Class Relationship
java.lang.Object
org.kite9.diagram.builders.Relationship
- All Implemented Interfaces:
- AliasEnabled
- Direct Known Subclasses:
- HasRelationship, MethodCallRelationship
public class Relationship
- extends Object
- implements AliasEnabled
Models the relationship between a subject and an object. e.g. has, uses, etc.
i.e. a verb.
- Author:
- moffatr
RETURNS
public static final Relationship RETURNS
EXTENDS
public static final Relationship EXTENDS
IMPLEMENTS
public static final Relationship IMPLEMENTS
CALLS
public static final Relationship CALLS
REFERENCES
public static final Relationship REFERENCES
REQUIRES
public static final Relationship REQUIRES
RETURNED_BY
public static final Relationship RETURNED_BY
EXTENDED_BY
public static final Relationship EXTENDED_BY
IMPLEMENTED_BY
public static final Relationship IMPLEMENTED_BY
CALLED_BY
public static final Relationship CALLED_BY
REFERENCED_BY
public static final Relationship REFERENCED_BY
REQUIRED_BY
public static final Relationship REQUIRED_BY
activeRelationship
protected Relationship activeRelationship
Relationship
public Relationship(String name)
- Creates the active voice relationship
Relationship
public Relationship(String name,
Relationship active)
- Creates a passive voice relationship. Note that when a builder comes to
render the relationship on the diagram, it will be converted to the
active voice.
Relationship
public Relationship(String name,
Direction d)
- Creates a relationship where there is a natural diagrammatic direction
required for from and to. e.g. inheritance relationships usually go
downwards
getName
public String getName()
getObjectForAlias
public Object getObjectForAlias()
- Specified by:
getObjectForAlias in interface AliasEnabled
getActiveRelationship
public Relationship getActiveRelationship()
getType
public Relationship.RelationshipType getType()
getDirection
public Direction getDirection()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.