public class Element extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Attribute> |
attributeMap |
protected int |
column |
protected List<Element> |
elements |
protected int |
line |
protected String |
tagName |
protected StringBuilder |
text |
protected String |
uri |
Constructor and Description |
---|
Element(String uri,
String localName,
String qName,
Attributes attributes,
Locator locator) |
Modifier and Type | Method and 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) |
List<Element> |
elementsNS(Namespace nameSpace,
String tagName) |
protected List<Element> |
elementsNS(String nameSpaceUri,
String tagName) |
int |
getColumn() |
int |
getLine() |
String |
getTagName() |
String |
getText() |
String |
getUri() |
String |
toString() |
protected String uri
protected String tagName
protected int line
protected int column
protected StringBuilder text
public Element(String uri, String localName, String qName, Attributes attributes, Locator locator)
public void add(Element element)
public String getUri()
public String getTagName()
public int getLine()
public int getColumn()
public void appendText(String text)
public String getText()
Copyright © 2021. All rights reserved.