Package org.fugerit.java.core.util.tree
Class TreeConfigXML<T extends Node<T,L>,L extends Collection<T>>
- java.lang.Object
-
- org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
-
- org.fugerit.java.core.cfg.helpers.XMLConfigurableObject
-
- org.fugerit.java.core.util.tree.TreeConfigXML<T,L>
-
- All Implemented Interfaces:
Serializable
,ConfigurableObject
,LogObject
- Direct Known Subclasses:
TreeConfigKeyStringXML
public class TreeConfigXML<T extends Node<T,L>,L extends Collection<T>> extends XMLConfigurableObject
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATT_LIST_TYPE
static String
ATT_TYPE
protected Collection<TreeDecorator<T>>
decorators
static String
TAG_NODE
static String
TAG_TREE
-
Fields inherited from class org.fugerit.java.core.cfg.helpers.XMLConfigurableObject
DO_NOTHING
-
Fields inherited from class org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
logger
-
-
Constructor Summary
Constructors Constructor Description TreeConfigXML()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addKids(NodeList childs, T parent)
void
configure(Element tag)
Configure the object.Properties
getGeneralProps()
T
getTree()
protected T
setupData(Element tag)
protected void
setupData(T current, T parent, Element tag)
-
Methods inherited from class org.fugerit.java.core.cfg.helpers.XMLConfigurableObject
configure, newXMLConfigurableObject
-
Methods inherited from class org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
configureProperties, configureXML, getLogger, setConfigProvider
-
-
-
-
Field Detail
-
ATT_TYPE
public static final String ATT_TYPE
- See Also:
- Constant Field Values
-
ATT_LIST_TYPE
public static final String ATT_LIST_TYPE
- See Also:
- Constant Field Values
-
TAG_TREE
public static final String TAG_TREE
- See Also:
- Constant Field Values
-
TAG_NODE
public static final String TAG_NODE
- See Also:
- Constant Field Values
-
decorators
protected transient Collection<TreeDecorator<T extends Node<T,L>>> decorators
-
-
Method Detail
-
getTree
public T getTree()
-
setupData
protected void setupData(T current, T parent, Element tag) throws Exception
- Throws:
Exception
-
configure
public void configure(Element tag) throws ConfigException
Description copied from interface:ConfigurableObject
Configure the object.
- Specified by:
configure
in interfaceConfigurableObject
- Specified by:
configure
in classAbstractConfigurableObject
- Parameters:
tag
- The tag object to use for configuration.- Throws:
ConfigException
- If troubles arise during object configuration.
-
getGeneralProps
public Properties getGeneralProps()
-
-