i3.dragos.gm.core.proxy
Class EdgeClassProxy

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

public class EdgeClassProxy
extends GraphEntityClassProxy
implements EdgeClass

An EdgeClassProxy delegates all method calls to the underlying edge class except for those that access fields which are used after an edge 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
EdgeClassProxy(EdgeClass e)
          Constructs a new wrapper for an edge class.
 
Method Summary
 Cardinality getSourceCardinality()
          Returns the cardinality for the source of the edge.
 GraphEntityClass getSourceClass()
          Returns the graph element class for the source of the edge.
 Cardinality getTargetCardinality()
          Returns the cardinality for the target of the edge.
 GraphEntityClass getTargetClass()
          Returns the graph element class for the target of the edge.
 boolean isDirected()
          Returns true if the edge is directed or false if the direction of the edge does not matter.
 
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

EdgeClassProxy

public EdgeClassProxy(EdgeClass e)
Constructs a new wrapper for an edge class.

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

getSourceCardinality

public Cardinality getSourceCardinality()
                                 throws DragosException
Returns the cardinality for the source of the edge.

Specified by:
getSourceCardinality in interface EdgeClass
Returns:
the cardinality for the source of the edge.
Throws:
DragosException - if something goes wrong.

getSourceClass

public GraphEntityClass getSourceClass()
                                throws DragosException
Returns the graph element class for the source of the edge.

Specified by:
getSourceClass in interface EdgeClass
Returns:
the graph element class for the source of the edge.
Throws:
DragosException - if something goes wrong.

getTargetCardinality

public Cardinality getTargetCardinality()
                                 throws DragosException
Returns the cardinality for the target of the edge.

Specified by:
getTargetCardinality in interface EdgeClass
Returns:
the cardinality for the target of the edge.
Throws:
DragosException - if something goes wrong.

getTargetClass

public GraphEntityClass getTargetClass()
                                throws DragosException
Returns the graph element class for the target of the edge.

Specified by:
getTargetClass in interface EdgeClass
Returns:
the graph element class for the target of the edge.
Throws:
DragosException - if something goes wrong.

isDirected

public boolean isDirected()
                   throws DragosException
Returns true if the edge is directed or false if the direction of the edge does not matter.

Specified by:
isDirected in interface EdgeClass
Returns:
true if the edge is directed or false if the direction of the edge does not matter.
Throws:
DragosException - if something goes wrong.


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