i3.dragos.gm.core.proxy
Class RelationEndClassProxy

java.lang.Object
  extended by i3.dragos.gm.core.proxy.GraphEntityClassProxy
      extended by i3.dragos.gm.core.proxy.RelationEndClassProxy
All Implemented Interfaces:
ExistenceCheckable, GraphEntityClass, MetaAttributable, RelationEndClass

public class RelationEndClassProxy
extends GraphEntityClassProxy
implements RelationEndClass

An RelationEndClassProxy delegates all method calls to the underlying relation end class except for those that access fields which are used after an relation end class has been deleted.

Author:
Boris Boehlen <boehlen@cs.rwth-aachen.de>

Field Summary
 
Fields inherited from class i3.dragos.gm.core.proxy.GraphEntityClassProxy
proxiedEntityClass
 
Constructor Summary
RelationEndClassProxy(RelationEndClass e)
          Constructs a new wrapper for an relation class.
 
Method Summary
 Cardinality getCardinality()
          Returns the cardinality of the relation end for the targeted graph element.
 RelationEndDirection getDirection()
          Returns the direction of the relation end.
 RelationClass getRelationClass()
          Returns the relation class this relation end class belongs to.
 GraphEntityClass getTargetClass()
          Returns the class that is allowed as the target of the relation end.
 
Methods inherited from class i3.dragos.gm.core.proxy.GraphEntityClassProxy
addSubClass, checkExistence, checkExistenceOptional, declareAttribute, equals, getAllDeclaredAttributes, getAllMetaAttributes, getAllSubClasses, getAllSuperClasses, getAttribute, getDataSourceURL, getDeclaredAttributes, getDirectSubClasses, getDirectSuperClasses, getInternalIdentifier, getMetaAttribute, getName, getProxyGraphEntityClass, getWrappedGraphEntityClass, hasAttribute, hashCode, isAbstract, isMetaAttributeKeyReserved, isMetaAttributeSet, isSubClassOf, isSuperClassOf, removeSubClass, setMetaAttribute, toString, undeclareAllAttributes, undeclareAttribute, undeclareAttribute, unsetMetaAttribute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface i3.dragos.gm.core.schema.GraphEntityClass
addSubClass, declareAttribute, equals, getAllDeclaredAttributes, getAllSubClasses, getAllSuperClasses, getAttribute, getDataSourceURL, getDeclaredAttributes, getDirectSubClasses, getDirectSuperClasses, getInternalIdentifier, getName, getWrappedGraphEntityClass, hasAttribute, hashCode, isAbstract, isSubClassOf, isSuperClassOf, removeSubClass, undeclareAllAttributes, undeclareAttribute, undeclareAttribute
 
Methods inherited from interface i3.dragos.gm.core.schema.MetaAttributable
getAllMetaAttributes, getMetaAttribute, isMetaAttributeKeyReserved, isMetaAttributeSet, setMetaAttribute, unsetMetaAttribute
 
Methods inherited from interface i3.dragos.gm.core.schema.ExistenceCheckable
checkExistence, checkExistenceOptional
 

Constructor Detail

RelationEndClassProxy

public RelationEndClassProxy(RelationEndClass e)
Constructs a new wrapper for an relation class.

Parameters:
e - The relation class to wrap.
Method Detail

getCardinality

public Cardinality getCardinality()
                           throws DragosException
Returns the cardinality of the relation end for the targeted graph element.

Specified by:
getCardinality in interface RelationEndClass
Returns:
the cardinality of the relation end for the targeted graph element.
Throws:
DragosException - if something went wrong.

getDirection

public RelationEndDirection getDirection()
                                  throws DragosException
Returns the direction of the relation end.

Specified by:
getDirection in interface RelationEndClass
Returns:
the direction of the relation end.
Throws:
DragosException - if something went wrong.

getRelationClass

public RelationClass getRelationClass()
                               throws DragosException
Returns the relation class this relation end class belongs to.

Specified by:
getRelationClass in interface RelationEndClass
Returns:
the relation class this relation end class belongs to.
Throws:
DragosException - if something went wrong.

getTargetClass

public GraphEntityClass getTargetClass()
                                throws DragosException
Returns the class that is allowed as the target of the relation end.

Specified by:
getTargetClass in interface RelationEndClass
Returns:
the class that is allowed as the target of the relation end.
Throws:
DragosException - if something went wrong.


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.