i3.dragos.gm.core.proxy
Class ProxyUnwrapTool

java.lang.Object
  extended by i3.dragos.gm.core.proxy.ProxyUnwrapTool

public class ProxyUnwrapTool
extends java.lang.Object

Utility class to simplify the unwrapping of proxy graph elements.

Author:
Boris Boehlen <boehlen@cs.rwth-aachen.de>, Thorsten Hermes <thermes@i3.informatik.rwth-aachen.de>

Constructor Summary
ProxyUnwrapTool()
           
 
Method Summary
static java.util.Collection<GraphEntity> unwrapAllGraphEntities(java.util.Collection<? extends GraphEntity> c)
          All graph entities in the given collection are unwrapped.
static java.util.Collection<GraphEntityClass> unwrapAllGraphEntityClasses(java.util.Collection<? extends GraphEntityClass> c)
          All graph entity classes in the given collection are unwrapped.
static Attribute unwrapAttribute(Attribute a)
          Completely removes all additional layers around an attribute.
static Edge unwrapEdge(Edge g)
          Variant of unwrapGraphEntity(GraphEntity) to avoid casting.
static EdgeClass unwrapEdgeClass(EdgeClass g)
          Variant of unwrapGraphEntityClass(GraphEntityClass) to avoid casting.
static Graph unwrapGraph(Graph g)
          Variant of unwrapGraphEntity(GraphEntity) to avoid casting.
static GraphClass unwrapGraphClass(GraphClass g)
          Variant of unwrapGraphEntityClass(GraphEntityClass) to avoid casting.
static GraphEntity unwrapGraphEntity(GraphEntity g)
          Completely removes all additional layers around an entity.
static GraphEntityClass unwrapGraphEntityClass(GraphEntityClass g)
          Completely removes all additional layers around an entity class.
static Node unwrapNode(Node g)
          Variant of unwrapGraphEntity(GraphEntity) to avoid casting.
static NodeClass unwrapNodeClass(NodeClass g)
          Variant of unwrapGraphEntityClass(GraphEntityClass) to avoid casting.
static Relation unwrapRelation(Relation g)
          Variant of unwrapGraphEntity(GraphEntity) to avoid casting.
static RelationClass unwrapRelationClass(RelationClass g)
          Variant of unwrapGraphEntityClass(GraphEntityClass) to avoid casting.
static RelationEnd unwrapRelationEnd(RelationEnd g)
          Variant of unwrapGraphEntity(GraphEntity) to avoid casting.
static RelationEndClass unwrapRelationEndClass(RelationEndClass g)
          Variant of unwrapGraphEntityClass(GraphEntityClass) to avoid casting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyUnwrapTool

public ProxyUnwrapTool()
Method Detail

unwrapGraphEntity

public static final GraphEntity unwrapGraphEntity(GraphEntity g)
Completely removes all additional layers around an entity. If the parameter is null, null is returned, so this method may be called before parameter checking.

Parameters:
g - The entity to unwrap.
Returns:
The unwrapped entity.

unwrapEdge

public static final Edge unwrapEdge(Edge g)
Variant of unwrapGraphEntity(GraphEntity) to avoid casting.

Parameters:
g - The entity to unwrap.
Returns:
The unwrapped entity.

unwrapGraph

public static final Graph unwrapGraph(Graph g)
Variant of unwrapGraphEntity(GraphEntity) to avoid casting.

Parameters:
g - The entity to unwrap.
Returns:
The unwrapped entity.

unwrapNode

public static final Node unwrapNode(Node g)
Variant of unwrapGraphEntity(GraphEntity) to avoid casting.

Parameters:
g - The entity to unwrap.
Returns:
The unwrapped entity.

unwrapRelation

public static final Relation unwrapRelation(Relation g)
Variant of unwrapGraphEntity(GraphEntity) to avoid casting.

Parameters:
g - The entity to unwrap.
Returns:
The unwrapped entity.

unwrapRelationEnd

public static final RelationEnd unwrapRelationEnd(RelationEnd g)
Variant of unwrapGraphEntity(GraphEntity) to avoid casting.

Parameters:
g - The entity to unwrap.
Returns:
The unwrapped entity.

unwrapGraphEntityClass

public static final GraphEntityClass unwrapGraphEntityClass(GraphEntityClass g)
Completely removes all additional layers around an entity class. If the parameter is null, null is returned, so this method may be called before parameter checking.

Parameters:
g - The entity class to unwrap.
Returns:
The unwrapped entity class.

unwrapEdgeClass

public static final EdgeClass unwrapEdgeClass(EdgeClass g)
Variant of unwrapGraphEntityClass(GraphEntityClass) to avoid casting.

Parameters:
g - The entity class to unwrap.
Returns:
The unwrapped entity class.

unwrapGraphClass

public static final GraphClass unwrapGraphClass(GraphClass g)
Variant of unwrapGraphEntityClass(GraphEntityClass) to avoid casting.

Parameters:
g - The entity class to unwrap.
Returns:
The unwrapped entity class.

unwrapNodeClass

public static final NodeClass unwrapNodeClass(NodeClass g)
Variant of unwrapGraphEntityClass(GraphEntityClass) to avoid casting.

Parameters:
g - The entity class to unwrap.
Returns:
The unwrapped entity class.

unwrapRelationClass

public static final RelationClass unwrapRelationClass(RelationClass g)
Variant of unwrapGraphEntityClass(GraphEntityClass) to avoid casting.

Parameters:
g - The entity class to unwrap.
Returns:
The unwrapped entity class.

unwrapRelationEndClass

public static final RelationEndClass unwrapRelationEndClass(RelationEndClass g)
Variant of unwrapGraphEntityClass(GraphEntityClass) to avoid casting.

Parameters:
g - The entity class to unwrap.
Returns:
The unwrapped entity class.

unwrapAttribute

public static final Attribute unwrapAttribute(Attribute a)
Completely removes all additional layers around an attribute. If the parameter is null, null is returned, so this method may be called before parameter checking.

Parameters:
a - The attribute to unwrap.
Returns:
The unwrapped attribute.

unwrapAllGraphEntities

public static final java.util.Collection<GraphEntity> unwrapAllGraphEntities(java.util.Collection<? extends GraphEntity> c)
All graph entities in the given collection are unwrapped. A new collection is returned containing the unwrapped GraphEntity instances.

Parameters:
c - A collection of GraphEntity instances.
Returns:
a collection of unwrapped GraphEntity instances.

unwrapAllGraphEntityClasses

public static final java.util.Collection<GraphEntityClass> unwrapAllGraphEntityClasses(java.util.Collection<? extends GraphEntityClass> c)
All graph entity classes in the given collection are unwrapped. A new collection is returned containing the unwrapped GraphEntityClass instances.

Parameters:
c - A collection of GraphEntityClasses instances.
Returns:
a collection of unwrapped GraphEntityClasses instances.


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