Package net.anwiba.commons.xml.dom
Class DomToObjectConverterUtilities
- java.lang.Object
-
- net.anwiba.commons.xml.dom.DomToObjectConverterUtilities
-
public class DomToObjectConverterUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DomToObjectConverterUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangetBooleanValue(org.dom4j.Element element, java.lang.String attributeName)static doublegetDoubleValue(org.dom4j.Element element, double defaultValue)static intgetIntValue(org.dom4j.Element element, int defaultValue)static intgetIntValue(org.dom4j.Element element, java.lang.String attributeName)static longgetLongValue(org.dom4j.Element element, java.lang.String attributeName)static doublegetNecessaryDoubleValue(org.dom4j.Element element)static org.dom4j.ElementgetNecessaryElement(org.dom4j.Element element, java.lang.String tag)static intgetNecessaryIntValue(org.dom4j.Element element)static java.lang.StringgetOptionalText(org.dom4j.Element element, org.dom4j.QName tagName)static java.lang.StringgetStringValue(org.dom4j.Element element, java.lang.String attributeName)static java.lang.StringgetText(org.dom4j.Element element, org.dom4j.QName tagName)static java.lang.StringgetText(org.dom4j.Element element, org.dom4j.QName tagName, java.lang.String defaultValue)
-
-
-
Method Detail
-
getStringValue
public static java.lang.String getStringValue(org.dom4j.Element element, java.lang.String attributeName) throws DomConverterException- Throws:
DomConverterException
-
getIntValue
public static int getIntValue(org.dom4j.Element element, java.lang.String attributeName) throws DomConverterException- Throws:
DomConverterException
-
getLongValue
public static long getLongValue(org.dom4j.Element element, java.lang.String attributeName) throws DomConverterException- Throws:
DomConverterException
-
getBooleanValue
public static boolean getBooleanValue(org.dom4j.Element element, java.lang.String attributeName) throws DomConverterException- Throws:
DomConverterException
-
getText
public static java.lang.String getText(org.dom4j.Element element, org.dom4j.QName tagName) throws DomConverterException- Throws:
DomConverterException
-
getOptionalText
public static java.lang.String getOptionalText(org.dom4j.Element element, org.dom4j.QName tagName)
-
getText
public static java.lang.String getText(org.dom4j.Element element, org.dom4j.QName tagName, java.lang.String defaultValue)
-
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
public static int getNecessaryIntValue(org.dom4j.Element element) throws DomConverterException- 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, java.lang.String tag) throws DomConverterException- Throws:
DomConverterException
-
-