Modifier and Type | Method and Description |
---|---|
static String |
getAttribute(Element element,
Enum<?> attribute)
Returns the attribute value or
null if it does not exist. |
static String |
getAttribute(Element element,
Enum<?> attribute,
String defaultValue)
Returns the attribute value or
defaultValue if it does not exist. |
static List<Element> |
getChildElements(Element parent,
Enum<?> child) |
static String |
getRequiredAttribute(Element element,
Enum<?> attribute) |
static String |
getRequiredElementText(Element element) |
static String |
getRequiredElementText(Element parent,
Enum<?> child) |
static Element |
getSingleChildElement(Element parent,
Enum<?> child) |
static Element |
getSingleOptionalChildElement(Element parent,
Enum<?> child) |
static String |
getXmlName(Enum<?> node) |
public static String getRequiredElementText(Element parent, Enum<?> child)
public static String getRequiredElementText(Element element)
public static String getRequiredAttribute(Element element, Enum<?> attribute)
public static String getAttribute(Element element, Enum<?> attribute, String defaultValue)
defaultValue
if it does not exist.public static String getAttribute(Element element, Enum<?> attribute)
null
if it does not exist.public static String getXmlName(Enum<?> node)
public static Element getSingleChildElement(Element parent, Enum<?> child)
public static Element getSingleOptionalChildElement(Element parent, Enum<?> child)
public static List<Element> getChildElements(Element parent, Enum<?> child)
Copyright © 2024. All rights reserved.