| Constructor and Description |
|---|
ElementUtil() |
| Modifier and Type | Method and Description |
|---|---|
static InputMapping<?>[] |
createArrayMapping(Object[] arguments)
Creates an array of
InputMappings based on an array of arguments. |
static Condition |
createCondition(Element element)
Creates a
Condition based on the given conditional element. |
static MapMapping |
createMapMapping(List<Element> inputElements)
Creates a
MapMapping based on the list of input elements. |
static OutputMapping |
createOutputMapping(Element outputElement)
Creates an
OutputMapping based on an output element. |
static boolean |
isInputElement(Element element)
Returns, whether the given element is an input element.
|
static boolean |
isMainElement(Element element)
Returns, whether the given element is a main element.
|
static boolean |
isOutputElement(Element element)
Returns, whether the given element is an output element.
|
public static OutputMapping createOutputMapping(Element outputElement)
OutputMapping based on an output element.public static InputMapping<?>[] createArrayMapping(Object[] arguments)
InputMappings based on an array of arguments.
Uses createInputMapping(Object) for every argument.public static MapMapping createMapMapping(List<Element> inputElements)
MapMapping based on the list of input elements.
Only supports Element.Type.ATTRIBUTE elements.public static Condition createCondition(Element element)
Condition based on the given conditional element. Supported types are
Element.Type.IF, Element.Type.ELSE_IF, Element.Type.ELSE, Element.Type.BRANCH. The method
works based on the fact that IF and ELSE_IF have exactly one argument, ELSE has no arguments,
BRANCH has either zero or one argumentspublic static boolean isOutputElement(Element element)
Row has a syntax of: [OutputElement] MainElement [InputElement]*.public static boolean isMainElement(Element element)
Row has a syntax of: [OutputElement] MainElement [InputElement]*.Copyright © 2018. All rights reserved.