Class Element
- java.lang.Object
-
- org.camunda.bpm.engine.impl.util.xml.Element
-
public class Element extends Object
Represents one XML element.- Author:
- Tom Baeyens, Joram Barrez
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Element element)
void
appendText(String text)
Due to the nature of SAX parsing, sometimes the characters of an element are not processed at once.String
attribute(String name)
String
attribute(String name, String defaultValue)
String
attributeNS(Namespace namespace, String name)
String
attributeNS(Namespace namespace, String name, String defaultValue)
Set<String>
attributes()
void
collectIds(List<String> ids)
allows to recursively collect the ids of all elements in the tree.protected String
composeMapKey(String attributeUri, String attributeName)
Element
element(String tagName)
Element
elementNS(Namespace nameSpace, String tagName)
List<Element>
elements()
List<Element>
elements(String tagName)
protected List<Element>
elementsNS(String nameSpaceUri, String tagName)
List<Element>
elementsNS(Namespace nameSpace, String tagName)
int
getColumn()
int
getLine()
String
getTagName()
String
getText()
String
getUri()
String
toString()
-
-
-
Constructor Detail
-
Element
public Element(String uri, String localName, String qName, Attributes attributes, Locator locator)
-
-
Method Detail
-
add
public void add(Element element)
-
getUri
public String getUri()
-
getTagName
public String getTagName()
-
getLine
public int getLine()
-
getColumn
public int getColumn()
-
appendText
public void appendText(String text)
Due to the nature of SAX parsing, sometimes the characters of an element are not processed at once. So instead of a setText operation, we need to have an appendText operation.
-
getText
public String getText()
-
-