Class MultiTransformationRenderer<Result,Container,Input>
- java.lang.Object
-
- science.aist.gtf.transformation.renderer.MultiTransformationRenderer<Result,Container,Input>
-
- Type Parameters:
Result
- The result typeContainer
- The type of the input containerInput
- The type of the input element
- All Implemented Interfaces:
TransformationRender<Result,Result,Container,Input>
public class MultiTransformationRenderer<Result,Container,Input> extends Object implements TransformationRender<Result,Result,Container,Input>
Multi transformation renderer, that iterates over all the child renderers, and returns the result of the first renderer that itself returns a result.
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Constructor Summary
Constructors Constructor Description MultiTransformationRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result
createElement()
Function not supported in multi rendererResult
mapProperties(Result result, Container container, Input currentElement)
Function not supported in multi rendererResult
renderElement(Container container, Input currentElement)
Renders a given element with the first matching child renderer
-
-
-
Method Detail
-
renderElement
public Result renderElement(Container container, Input currentElement)
Renders a given element with the first matching child renderer- Specified by:
renderElement
in interfaceTransformationRender<Result,Result,Container,Input>
- Parameters:
container
- the containercurrentElement
- the current element- Returns:
- the result of the first matching child renderer
- Throws:
IllegalStateException
- if no child renderer returns a result
-
createElement
public Result createElement()
Function not supported in multi renderer- Specified by:
createElement
in interfaceTransformationRender<Result,Result,Container,Input>
- Returns:
- nothing
- Throws:
UnsupportedOperationException
- not supported
-
mapProperties
public Result mapProperties(Result result, Container container, Input currentElement)
Function not supported in multi renderer- Specified by:
mapProperties
in interfaceTransformationRender<Result,Result,Container,Input>
- Parameters:
result
- the element, same as which is renderedcontainer
- the containercurrentElement
- the current element- Returns:
- nothing
- Throws:
UnsupportedOperationException
- not supported
-
-