org.apache.struts.tiles.xmlDefinition
Class XmlDefinitionsSet
java.lang.Object
|
+--org.apache.struts.tiles.xmlDefinition.XmlDefinitionsSet
- public class XmlDefinitionsSet
- extends java.lang.Object
A set of definitions read from XML definitions file.
Field Summary |
protected java.util.Map |
definitions
Defined definitions. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
definitions
protected java.util.Map definitions
- Defined definitions.
XmlDefinitionsSet
public XmlDefinitionsSet()
- Constructor.
putDefinition
public void putDefinition(XmlDefinition definition)
- Put definition in set.
- Parameters:
definition
- Definition to add.
getDefinition
public XmlDefinition getDefinition(java.lang.String name)
- Get requested definition.
- Parameters:
name
- Definition name.
getDefinitions
public java.util.Map getDefinitions()
- Get definitions map.
resolveInheritances
public void resolveInheritances()
throws NoSuchDefinitionException
- Resolve extended instances.
extend
public void extend(XmlDefinitionsSet child)
- 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
public java.lang.String toString()
- Get String representation.
- Overrides:
toString
in class java.lang.Object
Copyright © 2000-2005 - The Apache Software Foundation