Package org.fugerit.java.core.cfg.xml
Class XmlBeanHelper
- java.lang.Object
-
- org.fugerit.java.core.cfg.xml.XmlBeanHelper
-
public class XmlBeanHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
MODE_XML_ATTRIBUTES
static String
MODE_XML_DEFAULT
static String
MODE_XML_ELEMENTS
static String
MODE_XML_FULL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
setFromElement(String type, Element config)
static <T> T
setFromElement(String type, Element config, String mode)
static <T> void
setFromElement(T bean, Element config)
static <T> void
setFromElement(T bean, Element config, String mode)
static <T> void
setFromElementAtts(T bean, Element config)
static <T> void
setFromElementKids(T bean, Element config)
static <T> void
setFromElementSafe(T bean, Element config)
static <T> void
setFromElementSafe(T bean, Element config, String mode)
-
-
-
Field Detail
-
MODE_XML_ATTRIBUTES
public static final String MODE_XML_ATTRIBUTES
- See Also:
- Constant Field Values
-
MODE_XML_ELEMENTS
public static final String MODE_XML_ELEMENTS
- See Also:
- Constant Field Values
-
MODE_XML_FULL
public static final String MODE_XML_FULL
- See Also:
- Constant Field Values
-
MODE_XML_DEFAULT
public static final String MODE_XML_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setFromElement
public static <T> T setFromElement(String type, Element config) throws Exception
- Throws:
Exception
-
setFromElement
public static <T> T setFromElement(String type, Element config, String mode) throws Exception
- Throws:
Exception
-
setFromElement
public static <T> void setFromElement(T bean, Element config) throws Exception
- Throws:
Exception
-
setFromElement
public static <T> void setFromElement(T bean, Element config, String mode) throws Exception
- Throws:
Exception
-
setFromElementSafe
public static <T> void setFromElementSafe(T bean, Element config)
-
setFromElementAtts
public static <T> void setFromElementAtts(T bean, Element config) throws Exception
- Throws:
Exception
-
-