pt.ist.fenixframework.dml.runtime
Class DirectRelation<C1 extends DomainObject,C2 extends DomainObject>

Package class diagram package DirectRelation
java.lang.Object
  extended by pt.ist.fenixframework.dml.runtime.DirectRelation<C1,C2>
All Implemented Interfaces:
Relation<C1,C2>

public class DirectRelation<C1 extends DomainObject,C2 extends DomainObject>
extends Object
implements Relation<C1,C2>


Constructor Summary
DirectRelation(Role<C1,C2> firstRole, String name)
           
DirectRelation(Role<C1,C2> firstRole, String name, RelationListener<C1,C2>... listeners)
           
 
Method Summary
 void add(C1 o1, C2 o2)
           
 void addListener(RelationListener<C1,C2> listener)
           
 Relation<C2,C1> getInverseRelation()
           
protected  LinkedList<RelationListener<C1,C2>> getListeners()
           
 String getName()
           
 void remove(C1 o1, C2 o2)
           
 void removeListener(RelationListener<C1,C2> listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectRelation

public DirectRelation(Role<C1,C2> firstRole,
                      String name)

DirectRelation

public DirectRelation(Role<C1,C2> firstRole,
                      String name,
                      RelationListener<C1,C2>... listeners)
Method Detail

add

public void add(C1 o1,
                C2 o2)
Specified by:
add in interface Relation<C1 extends DomainObject,C2 extends DomainObject>

remove

public void remove(C1 o1,
                   C2 o2)
Specified by:
remove in interface Relation<C1 extends DomainObject,C2 extends DomainObject>

getInverseRelation

public Relation<C2,C1> getInverseRelation()
Specified by:
getInverseRelation in interface Relation<C1 extends DomainObject,C2 extends DomainObject>

getListeners

protected LinkedList<RelationListener<C1,C2>> getListeners()

addListener

public void addListener(RelationListener<C1,C2> listener)

removeListener

public void removeListener(RelationListener<C1,C2> listener)

getName

public String getName()
Specified by:
getName in interface Relation<C1 extends DomainObject,C2 extends DomainObject>


Copyright © 2013. All Rights Reserved.