Class Element
java.lang.Object
com.jedox.etl.components.scriptapi.Element
An element of a tree-based source, represents an
IElement
.-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValue
(String attributeName) Returns the value of an attribute of this element.int
Returns the number of children of this element.Element[]
Returns the children of this element.getName()
Returns the name of this element.int
Returns the number of parents of this element.Element[]
Returns the parents of this element.int
Returns the position of this element in a tree.getType()
Returns the type of this element.
-
Method Details
-
getName
Returns the name of this element.- Returns:
- the element name
-
getType
Returns the type of this element.- Returns:
- the
IElement.ElementType
-
getAttributeValue
Returns the value of an attribute of this element.- Parameters:
attributeName
- name of the attribute- Returns:
- the value of the attribute
-
getChildren
Returns the children of this element.- Returns:
- the array of child elements
-
getParents
Returns the parents of this element.- Returns:
- the array of parent elements
-
getChildCount
public int getChildCount()Returns the number of children of this element.- Returns:
- the number of children
-
getParentCount
public int getParentCount()Returns the number of parents of this element.- Returns:
- the number of parents
-
getPosition
public int getPosition()Returns the position of this element in a tree.- Returns:
- the position in a tree as a positive integer value
-