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

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

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


Constructor Summary
InverseRelation(Relation<C2,C1> inverseRelation, String name)
           
 
Method Summary
 void add(C1 o1, C2 o2)
           
 Relation<C2,C1> getInverseRelation()
           
 String getName()
           
 void remove(C1 o1, C2 o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InverseRelation

public InverseRelation(Relation<C2,C1> inverseRelation,
                       String name)
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>

getName

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


Copyright © 2013. All Rights Reserved.