@Component(value="ui_LoaderSupport")
public class LoaderSupport
extends java.lang.Object
| Constructor and Description |
|---|
LoaderSupport() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.Boolean> |
loadBoolean(org.dom4j.Element element,
java.lang.String attributeName)
Returns an
Optional with the attribute value from
the given element for the attribute with the given name,
otherwise an empty Optional. |
<T extends java.lang.Enum<T>> |
loadEnum(org.dom4j.Element element,
java.lang.Class<T> type,
java.lang.String attributeName)
Returns an
Optional with the attribute value from
the given element for the attribute with the given name,
otherwise an empty Optional. |
java.util.Optional<java.lang.Integer> |
loadInteger(org.dom4j.Element element,
java.lang.String attributeName)
Returns an
Optional with the attribute value from
the given element for the attribute with the given name,
otherwise an empty Optional. |
java.util.Optional<java.lang.String> |
loadString(org.dom4j.Element element,
java.lang.String attributeName)
Returns an
Optional with the attribute value from
the given element for the attribute with the given name,
otherwise an empty Optional. |
public java.util.Optional<java.lang.String> loadString(org.dom4j.Element element,
java.lang.String attributeName)
Optional with the attribute value from
the given element for the attribute with the given name,
otherwise an empty Optional.element - the element to obtain valueattributeName - the name of the attribute value to be returnedOptional with a present String value if the
specified attribute exists in the element, otherwise an empty Optionalpublic java.util.Optional<java.lang.Boolean> loadBoolean(org.dom4j.Element element,
java.lang.String attributeName)
Optional with the attribute value from
the given element for the attribute with the given name,
otherwise an empty Optional.element - the element to obtain valueattributeName - the name of the attribute value to be returnedOptional with a present Boolean value if the
specified attribute exists in the element, otherwise an empty Optionalpublic java.util.Optional<java.lang.Integer> loadInteger(org.dom4j.Element element,
java.lang.String attributeName)
Optional with the attribute value from
the given element for the attribute with the given name,
otherwise an empty Optional.element - the element to obtain valueattributeName - the name of the attribute value to be returnedOptional with a present Integer value if the
specified attribute exists in the element, otherwise an empty Optionalpublic <T extends java.lang.Enum<T>> java.util.Optional<T> loadEnum(org.dom4j.Element element,
java.lang.Class<T> type,
java.lang.String attributeName)
Optional with the attribute value from
the given element for the attribute with the given name,
otherwise an empty Optional.element - the element to obtain valuetype - the enum type to be converted toattributeName - the name of the attribute value to be returnedOptional with a present Enum value if the
specified attribute exists in the element, otherwise an empty Optional