org.kite9.diagram.builders
Class NounRelationshipBinding

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

public class NounRelationshipBinding
extends Object
implements AliasEnabled

Named Arrows are bound to their subjects, so a relationship and a subject form a binding which is represented by a single arrow

Author:
robmoffat

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

Constructor Detail

NounRelationshipBinding

public NounRelationshipBinding(Object subject,
                               Relationship r)
Method Detail

getSubject

public Object getSubject()

getObjectForAlias

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

getRelationship

public Relationship getRelationship()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2011. All Rights Reserved.