Package com.gigaspaces.internal.io
Class XmlUtils
java.lang.Object
com.gigaspaces.internal.io.XmlUtils
Provides XML services.
- Since:
- 7.0.1
- Author:
- Niv Ingberg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidforEachChild(Node node, String name, java.util.function.Consumer<Node> processor) static StringgetAttribute(Node node, String attributeName) static StringgetAttribute(Node node, String attributeName, String defaultValue) static BooleangetAttributeBoolean(Node node, String attributeName) static booleangetAttributeBoolean(Node node, String attributeName, boolean defaultValue) static <T extends Enum<T>>
TgetAttributeEnum(Node node, String attributeName, Class<T> enumClass) static <T extends Enum<T>>
TgetAttributeEnum(Node node, String attributeName, Class<T> enumClass, T defaultValue) static <T extends Enum<T>>
TgetAttributeEnum(Node node, String attributeName, Class<T> enumClass, T defaultValue, boolean throwOnError) static IntegergetAttributeInteger(Node node, String attributeName) static intgetAttributeInteger(Node node, String attributeName, int defaultValue) static DocumentBuilderstatic DocumentBuildergetDocumentBuilder(boolean doValidation) static <T> List<T>mapChildren(Node node, String name, java.util.function.Function<Node, T> processor) static StringnodeToString(Node node)
-
Constructor Details
-
XmlUtils
public XmlUtils()
-
-
Method Details
-
getDocumentBuilder
- Throws:
ParserConfigurationException
-
nodeToString
- Throws:
TransformerException
-
getDocumentBuilder
public static DocumentBuilder getDocumentBuilder(boolean doValidation) throws ParserConfigurationException - Throws:
ParserConfigurationException
-
getAttribute
-
getAttribute
-
getAttributeBoolean
-
getAttributeBoolean
-
getAttributeInteger
-
getAttributeInteger
-
getAttributeEnum
-
getAttributeEnum
-
getAttributeEnum
-
forEachChild
-
mapChildren
-