Class XmlDefinitionsSet
java.lang.Object
org.apache.struts.tiles.xmlDefinition.XmlDefinitionsSet
A set of definitions read from XML definitions file.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
extend
(XmlDefinitionsSet child) Add definitions from specified child definitions set.getDefinition
(String name) Get requested definition.Get definitions map.void
putDefinition
(XmlDefinition definition) Put definition in set.void
Resolve extended instances.toString()
Get String representation.
-
Field Details
-
definitions
Defined definitions.
-
-
Constructor Details
-
XmlDefinitionsSet
public XmlDefinitionsSet()Constructor.
-
-
Method Details
-
putDefinition
Put definition in set.- Parameters:
definition
- Definition to add.
-
getDefinition
Get requested definition.- Parameters:
name
- Definition name.
-
getDefinitions
Get definitions map. -
resolveInheritances
Resolve extended instances.- Throws:
NoSuchDefinitionException
-
extend
Add definitions from specified child definitions set. For each definition in child, look if it already exists in this set. If not, add it, if yes, overload parent's definition with child definition.- Parameters:
child
- Definition used to overload this object.
-
toString
Get String representation.
-