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