public final class LwXmlReader
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Element |
getChild(Element element,
java.lang.String childName) |
static ColorDescriptor |
getColorDescriptor(Element element) |
static FontDescriptor |
getFontDescriptor(Element element) |
static boolean |
getOptionalBoolean(Element element,
java.lang.String attributeName,
boolean defaultValue) |
static ColorDescriptor |
getOptionalColorDescriptor(Element element) |
static double |
getOptionalDouble(Element element,
java.lang.String attributeName,
double defaultValue) |
static int |
getOptionalInt(Element element,
java.lang.String attributeName,
int defaultValue) |
static java.lang.String |
getOptionalString(Element element,
java.lang.String attributeName,
java.lang.String defaultValue) |
static Element |
getRequiredChild(Element element,
java.lang.String childName) |
static double |
getRequiredDouble(Element element,
java.lang.String attributeName) |
static float |
getRequiredFloat(Element element,
java.lang.String attributeName) |
static int |
getRequiredInt(Element element,
java.lang.String attributeName) |
static java.lang.Object |
getRequiredPrimitiveTypeValue(Element element,
java.lang.String attributeName,
java.lang.Class valueClass) |
static java.lang.String |
getRequiredString(Element element,
java.lang.String attributeName) |
static java.lang.String |
getString(Element element,
java.lang.String attributeName) |
static StringDescriptor |
getStringDescriptor(Element element,
java.lang.String valueAttr,
java.lang.String bundleAttr,
java.lang.String keyAttr) |
static java.awt.Insets |
readInsets(Element element) |
public static Element getChild(Element element, java.lang.String childName)
null
.public static Element getRequiredChild(Element element, java.lang.String childName)
null
.public static java.lang.String getString(Element element, java.lang.String attributeName)
null
or trimmed attribute value.public static java.lang.String getRequiredString(Element element, java.lang.String attributeName)
null
trimmed attribute value.public static java.lang.String getOptionalString(Element element, java.lang.String attributeName, java.lang.String defaultValue)
public static int getRequiredInt(Element element, java.lang.String attributeName)
public static int getOptionalInt(Element element, java.lang.String attributeName, int defaultValue)
public static boolean getOptionalBoolean(Element element, java.lang.String attributeName, boolean defaultValue)
public static double getRequiredDouble(Element element, java.lang.String attributeName)
public static double getOptionalDouble(Element element, java.lang.String attributeName, double defaultValue)
public static float getRequiredFloat(Element element, java.lang.String attributeName)
public static java.lang.Object getRequiredPrimitiveTypeValue(Element element, java.lang.String attributeName, java.lang.Class valueClass)
public static StringDescriptor getStringDescriptor(Element element, java.lang.String valueAttr, java.lang.String bundleAttr, java.lang.String keyAttr)
public static FontDescriptor getFontDescriptor(Element element)
public static ColorDescriptor getColorDescriptor(Element element) throws java.lang.Exception
java.lang.Exception
public static ColorDescriptor getOptionalColorDescriptor(Element element)
public static java.awt.Insets readInsets(Element element)