Class LoaderSupport
java.lang.Object
io.jmix.flowui.xml.layout.support.LoaderSupport
Facilitates parsing data from XML.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadBoolean(org.dom4j.Element element, String attributeName) Returns anOptionalwith the attribute value from the given element for the attribute with the given name, otherwise an emptyOptional.voidloadBoolean(org.dom4j.Element element, String attributeName, Consumer<Boolean> setter) loadDouble(org.dom4j.Element element, String attributeName) Returns anOptionalwith the attribute value from the given element for the attribute with the given name, otherwise an emptyOptional.voidloadDouble(org.dom4j.Element element, String attributeName, Consumer<Double> setter) Returns anOptionalwith the attribute value from the given element for the attribute with the given name, otherwise an emptyOptional.<T extends Enum<T>>
voidloadInteger(org.dom4j.Element element, String attributeName) Returns anOptionalwith the attribute value from the given element for the attribute with the given name, otherwise an emptyOptional.voidloadInteger(org.dom4j.Element element, String attributeName, Consumer<Integer> setter) protected StringloadResourceString(String message, String messageGroup) loadResourceString(org.dom4j.Element element, String attributeName, String messageGroup) voidloadResourceString(org.dom4j.Element element, String attributeName, String messageGroup, Consumer<String> setter) loadString(org.dom4j.Element element, String attributeName) Returns anOptionalwith the attribute value from the given element for the attribute with the given name, otherwise an emptyOptional.voidloadString(org.dom4j.Element element, String attributeName, Consumer<String> setter)
-
Field Details
-
messageTools
-
-
Constructor Details
-
LoaderSupport
-
-
Method Details
-
loadString
Returns anOptionalwith the attribute value from the given element for the attribute with the given name, otherwise an emptyOptional. -
loadBoolean
Returns anOptionalwith the attribute value from the given element for the attribute with the given name, otherwise an emptyOptional. -
loadInteger
Returns anOptionalwith the attribute value from the given element for the attribute with the given name, otherwise an emptyOptional. -
loadDouble
Returns anOptionalwith the attribute value from the given element for the attribute with the given name, otherwise an emptyOptional. -
loadEnum
public <T extends Enum<T>> Optional<T> loadEnum(org.dom4j.Element element, Class<T> type, String attributeName) Returns anOptionalwith the attribute value from the given element for the attribute with the given name, otherwise an emptyOptional. -
loadResourceString
-
loadString
-
loadBoolean
-
loadInteger
-
loadDouble
-
loadEnum
-
loadResourceString
-
loadResourceString
-