i3.dragos.gm.core
Class NullWrapper

java.lang.Object
  extended by i3.dragos.gm.core.NullWrapper
All Implemented Interfaces:
Wrapper

public class NullWrapper
extends java.lang.Object
implements Wrapper

This Wrapper returns all entities / entity classes unmodified.

It is used as the default Wrapper in GraphPools.

Author:
Thorsten Hermes <thermes@i3.informatik.rwth-aachen.de>

Constructor Summary
NullWrapper()
           
 
Method Summary
 Attribute wrapAttribute(Attribute a)
          Wraps the supplied Attribute.
 Edge wrapEdge(Edge g)
          Variant of Wrapper.wrapGraphEntity(GraphEntity) to avoid casting.
 EdgeClass wrapEdgeClass(EdgeClass g)
          Variant of Wrapper.wrapGraphEntityClass(GraphEntityClass) to avoid casting.
 Graph wrapGraph(Graph g)
          Variant of Wrapper.wrapGraphEntity(GraphEntity) to avoid casting.
 GraphClass wrapGraphClass(GraphClass g)
          Variant of Wrapper.wrapGraphEntityClass(GraphEntityClass) to avoid casting.
 GraphEntity wrapGraphEntity(GraphEntity g)
          Wraps the supplied GraphEntity.
 GraphEntityClass wrapGraphEntityClass(GraphEntityClass g)
          Wraps the supplied GraphEntityClass.
 Node wrapNode(Node g)
          Variant of Wrapper.wrapGraphEntity(GraphEntity) to avoid casting.
 NodeClass wrapNodeClass(NodeClass g)
          Variant of Wrapper.wrapGraphEntityClass(GraphEntityClass) to avoid casting.
 Relation wrapRelation(Relation g)
          Variant of Wrapper.wrapGraphEntity(GraphEntity) to avoid casting.
 RelationClass wrapRelationClass(RelationClass g)
          Variant of Wrapper.wrapGraphEntityClass(GraphEntityClass) to avoid casting.
 RelationEnd wrapRelationEnd(RelationEnd g)
          Variant of Wrapper.wrapGraphEntity(GraphEntity) to avoid casting.
 RelationEndClass wrapRelationEndClass(RelationEndClass g)
          Variant of Wrapper.wrapGraphEntityClass(GraphEntityClass) to avoid casting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullWrapper

public NullWrapper()
Method Detail

wrapGraphEntity

public GraphEntity wrapGraphEntity(GraphEntity g)
Wraps the supplied GraphEntity. The type of the entity must be left unchanged, e.g. an Edge must only be wrapped in another Edge, not in a Node.

Specified by:
wrapGraphEntity in interface Wrapper
Parameters:
g - The GraphEntity to wrap, must not be null
Returns:
A GraphEntity of the same type, wrapping the supplied entity in zero or more layers.

wrapGraphEntityClass

public GraphEntityClass wrapGraphEntityClass(GraphEntityClass g)
Wraps the supplied GraphEntityClass. The type of the entity must be left unchanged, e.g. an EdgeClass must only be wrapped in another EdgeClass, not in a NodeClass.

Specified by:
wrapGraphEntityClass in interface Wrapper
Parameters:
g - The GraphEntityClass to wrap, must not be null
Returns:
A GraphEntityClass of the same type, wrapping the supplied class in zero or more layers.

wrapEdge

public Edge wrapEdge(Edge g)
Variant of Wrapper.wrapGraphEntity(GraphEntity) to avoid casting.

Specified by:
wrapEdge in interface Wrapper
Parameters:
g - see Wrapper.wrapGraphEntity(GraphEntity) for details
Returns:
see Wrapper.wrapGraphEntity(GraphEntity) for details

wrapEdgeClass

public EdgeClass wrapEdgeClass(EdgeClass g)
Variant of Wrapper.wrapGraphEntityClass(GraphEntityClass) to avoid casting.

Specified by:
wrapEdgeClass in interface Wrapper
Parameters:
g - see Wrapper.wrapGraphEntity(GraphEntity) for details
Returns:
see Wrapper.wrapGraphEntityClass(GraphEntityClass) for details

wrapGraph

public Graph wrapGraph(Graph g)
Variant of Wrapper.wrapGraphEntity(GraphEntity) to avoid casting.

Specified by:
wrapGraph in interface Wrapper
Parameters:
g - see Wrapper.wrapGraphEntity(GraphEntity) for details
Returns:
see Wrapper.wrapGraphEntity(GraphEntity) for details

wrapGraphClass

public GraphClass wrapGraphClass(GraphClass g)
Variant of Wrapper.wrapGraphEntityClass(GraphEntityClass) to avoid casting.

Specified by:
wrapGraphClass in interface Wrapper
Parameters:
g - see Wrapper.wrapGraphEntityClass(GraphEntityClass) for details
Returns:
see Wrapper.wrapGraphEntityClass(GraphEntityClass) for details

wrapNode

public Node wrapNode(Node g)
Variant of Wrapper.wrapGraphEntity(GraphEntity) to avoid casting.

Specified by:
wrapNode in interface Wrapper
Parameters:
g - see Wrapper.wrapGraphEntity(GraphEntity) for details
Returns:
see Wrapper.wrapGraphEntity(GraphEntity) for details

wrapNodeClass

public NodeClass wrapNodeClass(NodeClass g)
Variant of Wrapper.wrapGraphEntityClass(GraphEntityClass) to avoid casting.

Specified by:
wrapNodeClass in interface Wrapper
Parameters:
g - see Wrapper.wrapGraphEntityClass(GraphEntityClass) for details
Returns:
see Wrapper.wrapGraphEntityClass(GraphEntityClass) for details

wrapRelation

public Relation wrapRelation(Relation g)
Variant of Wrapper.wrapGraphEntity(GraphEntity) to avoid casting.

Specified by:
wrapRelation in interface Wrapper
Parameters:
g - see Wrapper.wrapGraphEntity(GraphEntity) for details
Returns:
see Wrapper.wrapGraphEntity(GraphEntity) for details

wrapRelationClass

public RelationClass wrapRelationClass(RelationClass g)
Variant of Wrapper.wrapGraphEntityClass(GraphEntityClass) to avoid casting.

Specified by:
wrapRelationClass in interface Wrapper
Parameters:
g - see Wrapper.wrapGraphEntityClass(GraphEntityClass) for details
Returns:
see Wrapper.wrapGraphEntityClass(GraphEntityClass) for details

wrapRelationEnd

public RelationEnd wrapRelationEnd(RelationEnd g)
Variant of Wrapper.wrapGraphEntity(GraphEntity) to avoid casting.

Specified by:
wrapRelationEnd in interface Wrapper
Parameters:
g - see Wrapper.wrapGraphEntity(GraphEntity) for details
Returns:
see Wrapper.wrapGraphEntity(GraphEntity) for details

wrapRelationEndClass

public RelationEndClass wrapRelationEndClass(RelationEndClass g)
Variant of Wrapper.wrapGraphEntityClass(GraphEntityClass) to avoid casting.

Specified by:
wrapRelationEndClass in interface Wrapper
Parameters:
g - see Wrapper.wrapGraphEntityClass(GraphEntityClass) for details
Returns:
see Wrapper.wrapGraphEntityClass(GraphEntityClass) for details

wrapAttribute

public Attribute wrapAttribute(Attribute a)
Wraps the supplied Attribute.

Specified by:
wrapAttribute in interface Wrapper
Parameters:
a - The Attribute to wrap, must not be null
Returns:
An Attribute, wrapping the original Attribute in zero or more layers.


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