Package net.anwiba.commons.xml.dom
Interface IDomToObjectConverter<T>
-
- All Known Implementing Classes:
AbstractDomToObjectConverter,DomToParametersConverter
public interface IDomToObjectConverter<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V> voidaddTo(java.util.List<V> list, V value)default booleanbooleanValue(org.dom4j.Element element, java.lang.String attributeName)default booleanbooleanValue(org.dom4j.Element element, java.lang.String attributeName, boolean defaultValue)Tconvert(org.dom4j.Element element)default java.time.ZonedDateTimedateTimeValue(org.dom4j.Element element, java.lang.String attributeName)default doubledoubleValue(org.dom4j.Element element, double defaultValue)default doubledoubleValue(org.dom4j.Element element, java.lang.String attributeName)default doubledoubleValue(org.dom4j.Element element, java.lang.String attributeName, double defaultValue)default java.time.DurationdurationValue(org.dom4j.Element element, java.lang.String attributeName)default java.time.DurationdurationValue(org.dom4j.Element element, java.lang.String attributeName, java.time.Duration defaultValue)default org.dom4j.Elementelement(org.dom4j.Element element, java.lang.String name)default org.dom4j.Elementelement(org.dom4j.Element element, org.dom4j.QName name)default java.util.List<org.dom4j.Element>elements(org.dom4j.Element element, java.lang.String name)default java.util.List<org.dom4j.Element>elements(org.dom4j.Element element, org.dom4j.QName name)default floatfloatValue(org.dom4j.Element element, java.lang.String attributeName, float defaultValue)default intintValue(org.dom4j.Element element, int defaultValue)default intintValue(org.dom4j.Element element, java.lang.String attributeName)default intintValue(org.dom4j.Element element, java.lang.String attributeName, int defaultValue)default java.lang.Stringtext(org.dom4j.Element element)default java.lang.Stringtext(org.dom4j.Element element, java.lang.String defaultText)default java.lang.Stringvalue(org.dom4j.Element element, java.lang.String attributeName)default java.lang.Stringvalue(org.dom4j.Element element, java.lang.String attributeName, java.lang.String defaultValue)
-
-
-
Method Detail
-
convert
T convert(org.dom4j.Element element) throws DomConverterException
- Throws:
DomConverterException
-
element
default org.dom4j.Element element(org.dom4j.Element element, org.dom4j.QName name) throws DomConverterException- Throws:
DomConverterException
-
element
default org.dom4j.Element element(org.dom4j.Element element, java.lang.String name) throws DomConverterException- Throws:
DomConverterException
-
elements
default java.util.List<org.dom4j.Element> elements(org.dom4j.Element element, org.dom4j.QName name) throws DomConverterException- Throws:
DomConverterException
-
elements
default java.util.List<org.dom4j.Element> elements(org.dom4j.Element element, java.lang.String name) throws DomConverterException- Throws:
DomConverterException
-
text
default java.lang.String text(org.dom4j.Element element) throws DomConverterException- Throws:
DomConverterException
-
text
default java.lang.String text(org.dom4j.Element element, java.lang.String defaultText)
-
value
default java.lang.String value(org.dom4j.Element element, java.lang.String attributeName, java.lang.String defaultValue)
-
value
default java.lang.String value(org.dom4j.Element element, java.lang.String attributeName) throws DomConverterException- Throws:
DomConverterException
-
durationValue
default java.time.Duration durationValue(org.dom4j.Element element, java.lang.String attributeName) throws DomConverterException- Throws:
DomConverterException
-
durationValue
default java.time.Duration durationValue(org.dom4j.Element element, java.lang.String attributeName, java.time.Duration defaultValue) throws DomConverterException- Throws:
DomConverterException
-
booleanValue
default boolean booleanValue(org.dom4j.Element element, java.lang.String attributeName) throws DomConverterException- Throws:
DomConverterException
-
booleanValue
default boolean booleanValue(org.dom4j.Element element, java.lang.String attributeName, boolean defaultValue)
-
intValue
default int intValue(org.dom4j.Element element, int defaultValue) throws DomConverterException- Throws:
DomConverterException
-
intValue
default int intValue(org.dom4j.Element element, java.lang.String attributeName) throws DomConverterException- Throws:
DomConverterException
-
intValue
default int intValue(org.dom4j.Element element, java.lang.String attributeName, int defaultValue) throws DomConverterException- Throws:
DomConverterException
-
floatValue
default float floatValue(org.dom4j.Element element, java.lang.String attributeName, float defaultValue) throws DomConverterException- Throws:
DomConverterException
-
doubleValue
default double doubleValue(org.dom4j.Element element, java.lang.String attributeName) throws DomConverterException- Throws:
DomConverterException
-
doubleValue
default double doubleValue(org.dom4j.Element element, java.lang.String attributeName, double defaultValue) throws DomConverterException- Throws:
DomConverterException
-
doubleValue
default double doubleValue(org.dom4j.Element element, double defaultValue) throws DomConverterException- Throws:
DomConverterException
-
dateTimeValue
default java.time.ZonedDateTime dateTimeValue(org.dom4j.Element element, java.lang.String attributeName) throws DomConverterException- Throws:
DomConverterException
-
addTo
default <V> void addTo(java.util.List<V> list, V value)
-
-