public final class Xml
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Xml.Exception
This class is defined so that exceptions thrown by methods on
Xml may be filtered from other runtime exceptions such
as NullPointerException if desired. |
static interface |
Xml.Method |
Modifier | Constructor and Description |
---|---|
private |
Xml() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
arrayAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName) |
static java.lang.String[] |
arrayAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName,
java.lang.String separator) |
static java.lang.String[] |
arrayAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName,
java.lang.String[] otherwise) |
static java.lang.String |
attribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName) |
static java.lang.String |
attribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName,
java.lang.String otherwise) |
static boolean |
booleanAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName) |
static boolean |
booleanAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName,
boolean otherwise) |
static char |
charAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName) |
static char |
charAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName,
char otherwise) |
private static org.w3c.dom.Document |
documentFrom(org.xml.sax.InputSource source) |
static org.w3c.dom.Document |
documentFrom(java.io.InputStream stream) |
static org.w3c.dom.Document |
documentFrom(java.lang.String string) |
static float[] |
floatArrayAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName) |
static float[] |
floatArrayAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName,
float[] otherwise) |
static float[] |
floatArrayAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName,
java.lang.String separator) |
static float |
floatAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName) |
static float |
floatAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName,
float otherwise) |
static void |
forEachChild(org.w3c.dom.Node xml,
Xml.Method method) |
static boolean |
hasAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName) |
static int[] |
intArrayAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName) |
static int[] |
intArrayAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName,
int[] otherwise) |
static int[] |
intArrayAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName,
java.lang.String separator) |
static int |
intAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName) |
static int |
intAttribute(org.w3c.dom.Node xmlElement,
java.lang.String attributeName,
int otherwise) |
static org.w3c.dom.Document |
newDocument() |
private static boolean |
parseTruth(java.lang.String truthAsString) |
static java.lang.String |
toString(org.w3c.dom.Document document) |
public static org.w3c.dom.Document newDocument()
public static org.w3c.dom.Document documentFrom(java.lang.String string)
public static org.w3c.dom.Document documentFrom(java.io.InputStream stream)
public static java.lang.String toString(org.w3c.dom.Document document)
public static boolean hasAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName)
public static java.lang.String attribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName)
public static java.lang.String attribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName, java.lang.String otherwise)
public static java.lang.String[] arrayAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName, java.lang.String separator)
public static java.lang.String[] arrayAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName)
public static java.lang.String[] arrayAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName, java.lang.String[] otherwise)
public static char charAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName)
public static char charAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName, char otherwise)
public static float floatAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName)
public static float floatAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName, float otherwise)
public static float[] floatArrayAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName, java.lang.String separator)
public static float[] floatArrayAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName)
public static float[] floatArrayAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName, float[] otherwise)
public static int intAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName)
public static int intAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName, int otherwise)
public static int[] intArrayAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName, java.lang.String separator)
public static int[] intArrayAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName)
public static int[] intArrayAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName, int[] otherwise)
public static boolean booleanAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName)
public static boolean booleanAttribute(org.w3c.dom.Node xmlElement, java.lang.String attributeName, boolean otherwise)
public static void forEachChild(org.w3c.dom.Node xml, Xml.Method method)
private static org.w3c.dom.Document documentFrom(org.xml.sax.InputSource source)
private static boolean parseTruth(java.lang.String truthAsString)