Class XmlUtils
- java.lang.Object
-
- com.xebialabs.xlplatform.synthetic.xml.XmlUtils
-
public class XmlUtils extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceXmlUtils.Closure<E>
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Iterator<org.w3c.dom.Element>childByName(org.w3c.dom.Element element, java.util.function.Predicate<java.lang.String> matcher)static java.lang.Iterable<org.w3c.dom.Element>childrenByName(org.w3c.dom.Element element, java.util.function.Predicate<java.lang.String> matcher)static <E> voidforEach(java.util.Iterator<E> iterator, XmlUtils.Closure<E> closure)static java.util.Optional<java.lang.Boolean>getOptionalBoolean(org.w3c.dom.Element element, java.lang.String attributeName)static booleangetOptionalBooleanAttribute(org.w3c.dom.Element element, java.lang.String attributeName, boolean defaultValue)static java.util.Optional<java.lang.String>getOptionalString(org.w3c.dom.Element element, java.lang.String attributeName)static java.lang.StringgetOptionalStringAttribute(org.w3c.dom.Element element, java.lang.String attributeName, java.lang.String defaultValue)static java.util.Optional<java.lang.String>getOptionalTextOfChild(org.w3c.dom.Element element, java.lang.String childElementName)static java.util.Optional<com.xebialabs.deployit.plugin.api.reflect.Type>getOptionalType(org.w3c.dom.Element element, java.lang.String attributeName)static com.xebialabs.deployit.plugin.api.reflect.TypegetOptionalTypeAttribute(org.w3c.dom.Element element, java.lang.String attributeName)static com.xebialabs.deployit.plugin.api.reflect.TypegetOptionalTypeAttribute(org.w3c.dom.Element element, java.lang.String attributeName, com.xebialabs.deployit.plugin.api.reflect.Type defaultValue)static java.lang.StringgetRequiredStringAttribute(org.w3c.dom.Element element, java.lang.String attributeName)static com.xebialabs.deployit.plugin.api.reflect.TypegetRequiredTypeAttribute(org.w3c.dom.Element element, java.lang.String attributeName)
-
-
-
Method Detail
-
getRequiredStringAttribute
public static java.lang.String getRequiredStringAttribute(org.w3c.dom.Element element, java.lang.String attributeName)
-
getRequiredTypeAttribute
public static com.xebialabs.deployit.plugin.api.reflect.Type getRequiredTypeAttribute(org.w3c.dom.Element element, java.lang.String attributeName)
-
getOptionalTypeAttribute
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)
-
getOptionalTypeAttribute
public static com.xebialabs.deployit.plugin.api.reflect.Type getOptionalTypeAttribute(org.w3c.dom.Element element, java.lang.String attributeName)
-
getOptionalType
public static java.util.Optional<com.xebialabs.deployit.plugin.api.reflect.Type> getOptionalType(org.w3c.dom.Element element, java.lang.String attributeName)
-
getOptionalBooleanAttribute
public static boolean getOptionalBooleanAttribute(org.w3c.dom.Element element, java.lang.String attributeName, boolean defaultValue)
-
getOptionalBoolean
public static java.util.Optional<java.lang.Boolean> getOptionalBoolean(org.w3c.dom.Element element, java.lang.String attributeName)
-
getOptionalStringAttribute
public static java.lang.String getOptionalStringAttribute(org.w3c.dom.Element element, java.lang.String attributeName, java.lang.String defaultValue)
-
getOptionalString
public static java.util.Optional<java.lang.String> getOptionalString(org.w3c.dom.Element element, java.lang.String attributeName)
-
getOptionalTextOfChild
public static java.util.Optional<java.lang.String> getOptionalTextOfChild(org.w3c.dom.Element element, java.lang.String childElementName)
-
childrenByName
public static java.lang.Iterable<org.w3c.dom.Element> childrenByName(org.w3c.dom.Element element, java.util.function.Predicate<java.lang.String> matcher)
-
childByName
public static java.util.Iterator<org.w3c.dom.Element> childByName(org.w3c.dom.Element element, java.util.function.Predicate<java.lang.String> matcher)
-
forEach
public static <E> void forEach(java.util.Iterator<E> iterator, XmlUtils.Closure<E> closure)
-
-