public class XmlUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
XmlUtils.Closure<E> |
| Constructor and Description |
|---|
XmlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Iterator<org.w3c.dom.Element> |
childByName(org.w3c.dom.Element element,
com.google.common.base.Predicate<java.lang.String> matcher) |
static java.lang.Iterable<org.w3c.dom.Element> |
childrenByName(org.w3c.dom.Element element,
com.google.common.base.Predicate<java.lang.String> matcher) |
static <E> void |
forEach(java.util.Iterator<E> iterator,
XmlUtils.Closure<E> closure) |
static boolean |
getOptionalBooleanAttribute(org.w3c.dom.Element element,
java.lang.String attributeName,
boolean defaultValue) |
static java.lang.String |
getOptionalStringAttribute(org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String defaultValue) |
static com.xebialabs.deployit.plugin.api.reflect.Type |
getOptionalTypeAttribute(org.w3c.dom.Element element,
java.lang.String attributeName) |
static com.xebialabs.deployit.plugin.api.reflect.Type |
getOptionalTypeAttribute(org.w3c.dom.Element element,
java.lang.String attributeName,
com.xebialabs.deployit.plugin.api.reflect.Type defaultValue) |
static java.lang.String |
getRequiredStringAttribute(org.w3c.dom.Element element,
java.lang.String attributeName) |
static java.lang.String |
getRequiredStringAttribute(org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String additionalMessage) |
static com.xebialabs.deployit.plugin.api.reflect.Type |
getRequiredTypeAttribute(org.w3c.dom.Element element,
java.lang.String attributeName) |
public static java.lang.String getRequiredStringAttribute(org.w3c.dom.Element element,
java.lang.String attributeName)
public static java.lang.String getRequiredStringAttribute(org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String additionalMessage)
public static com.xebialabs.deployit.plugin.api.reflect.Type getRequiredTypeAttribute(org.w3c.dom.Element element,
java.lang.String attributeName)
public static com.xebialabs.deployit.plugin.api.reflect.Type getOptionalTypeAttribute(org.w3c.dom.Element element,
java.lang.String attributeName,
com.xebialabs.deployit.plugin.api.reflect.Type defaultValue)
public static com.xebialabs.deployit.plugin.api.reflect.Type getOptionalTypeAttribute(org.w3c.dom.Element element,
java.lang.String attributeName)
public static boolean getOptionalBooleanAttribute(org.w3c.dom.Element element,
java.lang.String attributeName,
boolean defaultValue)
public static java.lang.String getOptionalStringAttribute(org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String defaultValue)
public static java.lang.Iterable<org.w3c.dom.Element> childrenByName(org.w3c.dom.Element element,
com.google.common.base.Predicate<java.lang.String> matcher)
public static java.util.Iterator<org.w3c.dom.Element> childByName(org.w3c.dom.Element element,
com.google.common.base.Predicate<java.lang.String> matcher)
public static <E> void forEach(java.util.Iterator<E> iterator,
XmlUtils.Closure<E> closure)