|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.gm.core.MultiWrapper
public class MultiWrapper
This Wrapper
uses multiple other Wrappers to process any supplied
argument.
The first wrapper in the array is called to wrap the original entity / class, all following wrappers each receive the output of the predecessor as argument. The output of the last wrapper in the array is then returned by this wrapper.
Constructor Summary | |
---|---|
MultiWrapper(Wrapper[] wrappers)
Creates a MultiWrapper. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiWrapper(Wrapper[] wrappers)
wrappers
- An array of wrappers (which is copied, not referenced),
may have a length of 0, but no null
elements.Method Detail |
---|
public Wrapper getLastWrapper()
public Wrapper getWrapper(int index)
index
- The index of the wrapper that should be returned.
public GraphEntity wrapGraphEntity(GraphEntity g) throws DragosException
wrapGraphEntity
in interface Wrapper
g
- The GraphEntity to wrap, must not be null
DragosException
- in case of errors during wrapping.public GraphEntityClass wrapGraphEntityClass(GraphEntityClass g) throws DragosException
wrapGraphEntityClass
in interface Wrapper
g
- The GraphEntityClass to wrap, must not be null
DragosException
- in case of errors during wrapping.public Edge wrapEdge(Edge g) throws DragosException
Wrapper.wrapGraphEntity(GraphEntity)
to avoid casting.
wrapEdge
in interface Wrapper
g
- see Wrapper.wrapGraphEntity(GraphEntity)
for details
Wrapper.wrapGraphEntity(GraphEntity)
for details
DragosException
- in case of errors during wrapping.public EdgeClass wrapEdgeClass(EdgeClass g) throws DragosException
Wrapper.wrapGraphEntityClass(GraphEntityClass)
to avoid casting.
wrapEdgeClass
in interface Wrapper
g
- see Wrapper.wrapGraphEntity(GraphEntity)
for details
Wrapper.wrapGraphEntityClass(GraphEntityClass)
for details
DragosException
- in case of errors during wrapping.public Graph wrapGraph(Graph g) throws DragosException
Wrapper.wrapGraphEntity(GraphEntity)
to avoid casting.
wrapGraph
in interface Wrapper
g
- see Wrapper.wrapGraphEntity(GraphEntity)
for details
Wrapper.wrapGraphEntity(GraphEntity)
for details
DragosException
- in case of errors during wrapping.public GraphClass wrapGraphClass(GraphClass g) throws DragosException
Wrapper.wrapGraphEntityClass(GraphEntityClass)
to avoid casting.
wrapGraphClass
in interface Wrapper
g
- see Wrapper.wrapGraphEntityClass(GraphEntityClass)
for details
Wrapper.wrapGraphEntityClass(GraphEntityClass)
for details
DragosException
- in case of errors during wrapping.public Node wrapNode(Node g) throws DragosException
Wrapper.wrapGraphEntity(GraphEntity)
to avoid casting.
wrapNode
in interface Wrapper
g
- see Wrapper.wrapGraphEntity(GraphEntity)
for details
Wrapper.wrapGraphEntity(GraphEntity)
for details
DragosException
- in case of errors during wrapping.public NodeClass wrapNodeClass(NodeClass g) throws DragosException
Wrapper.wrapGraphEntityClass(GraphEntityClass)
to avoid casting.
wrapNodeClass
in interface Wrapper
g
- see Wrapper.wrapGraphEntityClass(GraphEntityClass)
for details
Wrapper.wrapGraphEntityClass(GraphEntityClass)
for details
DragosException
- in case of errors during wrapping.public Relation wrapRelation(Relation g) throws DragosException
Wrapper.wrapGraphEntity(GraphEntity)
to avoid casting.
wrapRelation
in interface Wrapper
g
- see Wrapper.wrapGraphEntity(GraphEntity)
for details
Wrapper.wrapGraphEntity(GraphEntity)
for details
DragosException
- in case of errors during wrapping.public RelationClass wrapRelationClass(RelationClass g) throws DragosException
Wrapper.wrapGraphEntityClass(GraphEntityClass)
to avoid casting.
wrapRelationClass
in interface Wrapper
g
- see Wrapper.wrapGraphEntityClass(GraphEntityClass)
for details
Wrapper.wrapGraphEntityClass(GraphEntityClass)
for details
DragosException
- in case of errors during wrapping.public RelationEnd wrapRelationEnd(RelationEnd g) throws DragosException
Wrapper.wrapGraphEntity(GraphEntity)
to avoid casting.
wrapRelationEnd
in interface Wrapper
g
- see Wrapper.wrapGraphEntity(GraphEntity)
for details
Wrapper.wrapGraphEntity(GraphEntity)
for details
DragosException
- in case of errors during wrapping.public RelationEndClass wrapRelationEndClass(RelationEndClass g) throws DragosException
Wrapper.wrapGraphEntityClass(GraphEntityClass)
to avoid casting.
wrapRelationEndClass
in interface Wrapper
g
- see Wrapper.wrapGraphEntityClass(GraphEntityClass)
for details
Wrapper.wrapGraphEntityClass(GraphEntityClass)
for details
DragosException
- in case of errors during wrapping.public Attribute wrapAttribute(Attribute a) throws DragosException
wrapAttribute
in interface Wrapper
a
- The Attribute to wrap, must not be null
DragosException
- in case of errors during wrapping.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |