Module net.anwiba.commons.xml
Package net.anwiba.commons.xml.dom
Class DomToObjectConverterUtilities
java.lang.Object
net.anwiba.commons.xml.dom.DomToObjectConverterUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetBooleanValue(org.dom4j.Element element, String attributeName) static doublegetDoubleValue(org.dom4j.Element element, double defaultValue) static intgetIntValue(org.dom4j.Element element, int defaultValue) static intgetIntValue(org.dom4j.Element element, String attributeName) static longgetLongValue(org.dom4j.Element element, String attributeName) static doublegetNecessaryDoubleValue(org.dom4j.Element element) static org.dom4j.ElementgetNecessaryElement(org.dom4j.Element element, String tag) static intgetNecessaryIntValue(org.dom4j.Element element) static StringgetOptionalText(org.dom4j.Element element, org.dom4j.QName tagName) static StringgetStringValue(org.dom4j.Element element, String attributeName) static StringgetText(org.dom4j.Element element, org.dom4j.QName tagName) static String
-
Constructor Details
-
DomToObjectConverterUtilities
public DomToObjectConverterUtilities()
-
-
Method Details
-
getStringValue
public static String getStringValue(org.dom4j.Element element, String attributeName) throws DomConverterException - Throws:
DomConverterException
-
getIntValue
public static int getIntValue(org.dom4j.Element element, String attributeName) throws DomConverterException - Throws:
DomConverterException
-
getLongValue
public static long getLongValue(org.dom4j.Element element, String attributeName) throws DomConverterException - Throws:
DomConverterException
-
getBooleanValue
public static boolean getBooleanValue(org.dom4j.Element element, String attributeName) throws DomConverterException - Throws:
DomConverterException
-
getText
public static String getText(org.dom4j.Element element, org.dom4j.QName tagName) throws DomConverterException - Throws:
DomConverterException
-
getOptionalText
-
getText
-
getNecessaryDoubleValue
public static double getNecessaryDoubleValue(org.dom4j.Element element) throws DomConverterException - Throws:
DomConverterException
-
getDoubleValue
public static double getDoubleValue(org.dom4j.Element element, double defaultValue) throws DomConverterException - Throws:
DomConverterException
-
getNecessaryIntValue
- Throws:
DomConverterException
-
getIntValue
public static int getIntValue(org.dom4j.Element element, int defaultValue) throws DomConverterException - Throws:
DomConverterException
-
getNecessaryElement
public static org.dom4j.Element getNecessaryElement(org.dom4j.Element element, String tag) throws DomConverterException - Throws:
DomConverterException
-