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 voidadd(Element element)voidappendText(String text)Due to the nature of SAX parsing, sometimes the characters of an element are not processed at once.Stringattribute(String name)Stringattribute(String name, String defaultValue)StringattributeNS(Namespace namespace, String name)StringattributeNS(Namespace namespace, String name, String defaultValue)Set<String>attributes()voidcollectIds(List<String> ids)allows to recursively collect the ids of all elements in the tree.protected StringcomposeMapKey(String attributeUri, String attributeName)Elementelement(String tagName)ElementelementNS(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)intgetColumn()intgetLine()StringgetTagName()StringgetText()StringgetUri()StringtoString()
-
-
-
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()
-
-