public abstract class XmlUtils extends Object
Constructor and Description |
---|
XmlUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getAttribute(Node node,
String attributeName) |
static String |
getAttribute(Node node,
String attributeName,
String defaultValue) |
static Boolean |
getAttributeBoolean(Node node,
String attributeName) |
static boolean |
getAttributeBoolean(Node node,
String attributeName,
boolean defaultValue) |
static <T extends Enum<T>> |
getAttributeEnum(Node node,
String attributeName,
Class<T> enumClass) |
static <T extends Enum<T>> |
getAttributeEnum(Node node,
String attributeName,
Class<T> enumClass,
T defaultValue) |
static <T extends Enum<T>> |
getAttributeEnum(Node node,
String attributeName,
Class<T> enumClass,
T defaultValue,
boolean throwOnError) |
static Integer |
getAttributeInteger(Node node,
String attributeName) |
static int |
getAttributeInteger(Node node,
String attributeName,
int defaultValue) |
static DocumentBuilder |
getDocumentBuilder() |
static DocumentBuilder |
getDocumentBuilder(boolean doValidation) |
static String |
nodeToString(Node node) |
public static DocumentBuilder getDocumentBuilder() throws ParserConfigurationException
ParserConfigurationException
public static String nodeToString(Node node) throws TransformerException
TransformerException
public static DocumentBuilder getDocumentBuilder(boolean doValidation) throws ParserConfigurationException
ParserConfigurationException
public static String getAttribute(Node node, String attributeName, String defaultValue)
public static boolean getAttributeBoolean(Node node, String attributeName, boolean defaultValue)
public static int getAttributeInteger(Node node, String attributeName, int defaultValue)
public static <T extends Enum<T>> T getAttributeEnum(Node node, String attributeName, Class<T> enumClass)
public static <T extends Enum<T>> T getAttributeEnum(Node node, String attributeName, Class<T> enumClass, T defaultValue)
Copyright © GigaSpaces.