public class XmlElement extends Object
| Constructor and Description |
|---|
XmlElement(Element element,
URL documentUrl,
PropertiesSubstitutor substitutor) |
XmlElement(Element element,
XmlElement parent) |
| Modifier and Type | Method and Description |
|---|---|
protected List<XmlElement> |
asList(NodeList list) |
String |
expandProperties(String s)
Expands properties in a string.
|
String |
getAttribute(String attribute)
Gets the value of attribute.
|
protected boolean |
getBooleanAttribute(String attribute,
boolean defaultValue)
Returns the value of boolean attribute.
|
XmlElement |
getChild(String name) |
protected List<XmlElement> |
getChildren() |
List<XmlElement> |
getChildren(Set<String> names) |
List<XmlElement> |
getChildren(String name) |
URL |
getDocumentUrl() |
Element |
getElement() |
String |
getTagName() |
String |
getXPath() |
public XmlElement(Element element, URL documentUrl, PropertiesSubstitutor substitutor)
public XmlElement(Element element, XmlElement parent)
public String getTagName()
public Element getElement()
public URL getDocumentUrl()
protected List<XmlElement> getChildren()
public String getXPath()
public List<XmlElement> getChildren(String name)
public List<XmlElement> getChildren(Set<String> names)
public XmlElement getChild(String name)
protected List<XmlElement> asList(NodeList list)
public String getAttribute(String attribute)
Additionally property expansion is performed.
attribute - attribute name.protected boolean getBooleanAttribute(String attribute, boolean defaultValue)
attribute - attribute name.defaultValue - default value to use if attribute value unspecified.getAttribute(String)Copyright © 2006-2012. All Rights Reserved.