Class MultiGraphTransformationRenderer<Result,SourceV,SourceE>
- java.lang.Object
-
- science.aist.gtf.transformation.renderer.MultiGraphTransformationRenderer<Result,SourceV,SourceE>
-
- Type Parameters:
Result
- The result typeSourceE
- The input type of the decorated edge elementSourceV
- The input type of the decorated vertex element
- All Implemented Interfaces:
TransformationRender<Result,Result,Graph<SourceV,SourceE>,Vertex<SourceV,SourceE>>
public class MultiGraphTransformationRenderer<Result,SourceV,SourceE> extends Object implements TransformationRender<Result,Result,Graph<SourceV,SourceE>,Vertex<SourceV,SourceE>>
Provides a Multi Graph Transformation Renderer, which has a list of child renderer and returns the result of the first matching one.
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Constructor Summary
Constructors Constructor Description MultiGraphTransformationRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result
createElement()
No supported inMultiGraphTransformationRenderer
Result
mapProperties(Result result, Graph<SourceV,SourceE> sGraph, Vertex<SourceV,SourceE> currentElement)
No supported inMultiGraphTransformationRenderer
Result
renderElement(Graph<SourceV,SourceE> container, Vertex<SourceV,SourceE> currentElement)
Executes the list of child renderer, and returns the result of the first one, that matches
-
-
-
Method Detail
-
renderElement
public Result renderElement(Graph<SourceV,SourceE> container, Vertex<SourceV,SourceE> currentElement)
Executes the list of child renderer, and returns the result of the first one, that matches- Specified by:
renderElement
in interfaceTransformationRender<Result,Result,Graph<SourceV,SourceE>,Vertex<SourceV,SourceE>>
- Parameters:
container
- the containercurrentElement
- the current element- Returns:
- the value of the first renderer, that matches
- Throws:
IllegalStateException
- if no renderer matches
-
createElement
public Result createElement()
No supported inMultiGraphTransformationRenderer
- Specified by:
createElement
in interfaceTransformationRender<Result,Result,Graph<SourceV,SourceE>,Vertex<SourceV,SourceE>>
- Returns:
- the new element
- Throws:
UnsupportedOperationException
- not supported in this class
-
mapProperties
public Result mapProperties(Result result, Graph<SourceV,SourceE> sGraph, Vertex<SourceV,SourceE> currentElement)
No supported inMultiGraphTransformationRenderer
- Specified by:
mapProperties
in interfaceTransformationRender<Result,Result,Graph<SourceV,SourceE>,Vertex<SourceV,SourceE>>
- Parameters:
result
- the element, same as which is renderedsGraph
- the containercurrentElement
- the current element- Returns:
- the rendered element
- Throws:
UnsupportedOperationException
- not supported in this class
-
-