i3.dragos.gm.core
Class WrapTool

java.lang.Object
  extended by i3.dragos.gm.core.WrapTool

public class WrapTool
extends java.lang.Object

Utility class to simplify the wrapping of collections of graph entities.

Author:
Thomas Lettow <lettow@i3.informatik.rwth-aachen.de>

Constructor Summary
WrapTool()
           
 
Method Summary
static java.util.Collection<Attribute> wrapAllAttributes(java.util.Collection<? extends Attribute> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapAttribute(Attribute) method.
static java.util.Collection<EdgeClass> wrapAllEdgeClasses(java.util.Collection<? extends EdgeClass> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapEdgeClass(EdgeClass) method.
static java.util.Collection<Edge> wrapAllEdges(java.util.Collection<? extends Edge> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapEdge(Edge) method.
static java.util.Collection<GraphClass> wrapAllGraphClasses(java.util.Collection<? extends GraphClass> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapGraphClass(GraphClass) method.
static java.util.Collection<GraphEntity> wrapAllGraphEntities(java.util.Collection<? extends GraphEntity> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapGraphEntity(GraphEntity) method.
static java.util.Collection<GraphEntityClass> wrapAllGraphEntityClasses(java.util.Collection<? extends GraphEntityClass> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapGraphEntityClass(GraphEntityClass) method.
static java.util.Collection<Graph> wrapAllGraphs(java.util.Collection<? extends Graph> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapGraph(Graph) method.
static java.util.Collection<NodeClass> wrapAllNodeClasses(java.util.Collection<? extends NodeClass> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapNodeClass(NodeClass) method.
static java.util.Collection<Node> wrapAllNodes(java.util.Collection<? extends Node> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapNode(Node) method.
static java.util.Collection<RelationClass> wrapAllRelationClasses(java.util.Collection<? extends RelationClass> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapRelationClass(RelationClass) method.
static java.util.Collection<RelationEndClass> wrapAllRelationEndClasses(java.util.Collection<? extends RelationEndClass> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapRelationEndClass(RelationEndClass) method.
static java.util.Collection<RelationEnd> wrapAllRelationEnds(java.util.Collection<? extends RelationEnd> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapRelationEnd(RelationEnd) method.
static java.util.Collection<Relation> wrapAllRelations(java.util.Collection<? extends Relation> c, Wrapper wrapper)
          All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapRelation(Relation) method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapTool

public WrapTool()
Method Detail

wrapAllGraphEntities

public static final java.util.Collection<GraphEntity> wrapAllGraphEntities(java.util.Collection<? extends GraphEntity> c,
                                                                           Wrapper wrapper)
                                                                    throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapGraphEntity(GraphEntity) method. A new collection is returned containing the wrapped GraphEntity instances.

Parameters:
c - A collection of GraphEntity instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped GraphEntity instances.
Throws:
DragosException - if something went wrong.

wrapAllGraphs

public static final java.util.Collection<Graph> wrapAllGraphs(java.util.Collection<? extends Graph> c,
                                                              Wrapper wrapper)
                                                       throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapGraph(Graph) method. A new collection is returned containing the wrapped Graph instances.

Parameters:
c - A collection of Graph instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped Graph instances.
Throws:
DragosException - if something went wrong.

wrapAllNodes

public static final java.util.Collection<Node> wrapAllNodes(java.util.Collection<? extends Node> c,
                                                            Wrapper wrapper)
                                                     throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapNode(Node) method. A new collection is returned containing the wrapped Node instances.

Parameters:
c - A collection of Node instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped Node instances.
Throws:
DragosException - if something went wrong.

wrapAllEdges

public static final java.util.Collection<Edge> wrapAllEdges(java.util.Collection<? extends Edge> c,
                                                            Wrapper wrapper)
                                                     throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapEdge(Edge) method. A new collection is returned containing the wrapped Edge instances.

Parameters:
c - A collection of Edge instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped Edge instances.
Throws:
DragosException - if something went wrong.

wrapAllRelations

public static final java.util.Collection<Relation> wrapAllRelations(java.util.Collection<? extends Relation> c,
                                                                    Wrapper wrapper)
                                                             throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapRelation(Relation) method. A new collection is returned containing the wrapped Relation instances.

Parameters:
c - A collection of Relation instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped Relation instances.
Throws:
DragosException - if something went wrong.

wrapAllRelationEnds

public static final java.util.Collection<RelationEnd> wrapAllRelationEnds(java.util.Collection<? extends RelationEnd> c,
                                                                          Wrapper wrapper)
                                                                   throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapRelationEnd(RelationEnd) method. A new collection is returned containing the wrapped RelationEnd instances.

Parameters:
c - A collection of RelationEnd instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped RelationEnd instances.
Throws:
DragosException - if something went wrong.

wrapAllGraphEntityClasses

public static final java.util.Collection<GraphEntityClass> wrapAllGraphEntityClasses(java.util.Collection<? extends GraphEntityClass> c,
                                                                                     Wrapper wrapper)
                                                                              throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapGraphEntityClass(GraphEntityClass) method. A new collection is returned containing the wrapped GraphEntityClass instances.

Parameters:
c - A collection of GraphEntityClass instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped GraphEntityClass instances.
Throws:
DragosException - if something went wrong.

wrapAllGraphClasses

public static final java.util.Collection<GraphClass> wrapAllGraphClasses(java.util.Collection<? extends GraphClass> c,
                                                                         Wrapper wrapper)
                                                                  throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapGraphClass(GraphClass) method. A new collection is returned containing the wrapped GraphClass instances.

Parameters:
c - A collection of GraphClass instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped GraphClass instances.
Throws:
DragosException - if something went wrong.

wrapAllNodeClasses

public static final java.util.Collection<NodeClass> wrapAllNodeClasses(java.util.Collection<? extends NodeClass> c,
                                                                       Wrapper wrapper)
                                                                throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapNodeClass(NodeClass) method. A new collection is returned containing the wrapped NodeClass instances.

Parameters:
c - A collection of NodeClass instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped NodeClass instances.
Throws:
DragosException - if something went wrong.

wrapAllEdgeClasses

public static final java.util.Collection<EdgeClass> wrapAllEdgeClasses(java.util.Collection<? extends EdgeClass> c,
                                                                       Wrapper wrapper)
                                                                throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapEdgeClass(EdgeClass) method. A new collection is returned containing the wrapped EdgeClass instances.

Parameters:
c - A collection of EdgeClass instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped EdgeClass instances.
Throws:
DragosException - if something went wrong.

wrapAllRelationClasses

public static final java.util.Collection<RelationClass> wrapAllRelationClasses(java.util.Collection<? extends RelationClass> c,
                                                                               Wrapper wrapper)
                                                                        throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapRelationClass(RelationClass) method. A new collection is returned containing the wrapped RelationClass instances.

Parameters:
c - A collection of RelationClass instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped RelationClass instances.
Throws:
DragosException - if something went wrong.

wrapAllRelationEndClasses

public static final java.util.Collection<RelationEndClass> wrapAllRelationEndClasses(java.util.Collection<? extends RelationEndClass> c,
                                                                                     Wrapper wrapper)
                                                                              throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapRelationEndClass(RelationEndClass) method. A new collection is returned containing the wrapped RelationEndClass instances.

Parameters:
c - A collection of RelationEndClass instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped RelationEndClass instances.
Throws:
DragosException - if something went wrong.

wrapAllAttributes

public static final java.util.Collection<Attribute> wrapAllAttributes(java.util.Collection<? extends Attribute> c,
                                                                      Wrapper wrapper)
                                                               throws DragosException
All graph entities in the given collection are wrapped using the wrapper's Wrapper.wrapAttribute(Attribute) method. A new collection is returned containing the wrapped Attribute instances.

Parameters:
c - A collection of Attribute instances.
wrapper - The wrapper to be applied on each contained entity.
Returns:
a collection of wrapped Attribute instances.
Throws:
DragosException - if something went wrong.


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