org.kite9.diagram.builders
Class Tie

java.lang.Object
  extended by org.kite9.diagram.builders.Tie
All Implemented Interfaces:
AliasEnabled

public class Tie
extends Object
implements AliasEnabled

A Tie is used to hold a piece of relationship information. E.g. John eats fish. Where John is the subject, eats is the relationship and fish is the object.

Author:
robmoffat

Constructor Summary
Tie(NounPart subject, Relationship r, NounPart object)
           
 
Method Summary
 boolean equals(Object obj)
           
 NounPart getObject()
           
 Object getObjectForAlias()
           
 Relationship getRelationship()
           
 NounPart getSubject()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tie

public Tie(NounPart subject,
           Relationship r,
           NounPart object)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getSubject

public NounPart getSubject()

getObject

public NounPart getObject()

getObjectForAlias

public Object getObjectForAlias()
Specified by:
getObjectForAlias in interface AliasEnabled

getRelationship

public Relationship getRelationship()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.