|
|||||||||
| Home >> All >> org >> apache >> struts >> tiles >> [ xmlDefinition overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.struts.tiles.xmlDefinition
Class XmlDefinition

java.lang.Objectorg.apache.struts.tiles.ComponentDefinition
org.apache.struts.tiles.xmlDefinition.XmlDefinition
- All Implemented Interfaces:
- java.io.Serializable
- public class XmlDefinition
- extends org.apache.struts.tiles.ComponentDefinition
A definition read from an XML definitions file.
| Field Summary | |
private java.lang.String |
inherit
Extends attribute value. |
private boolean |
isVisited
Used for resolving inheritance. |
protected static org.apache.commons.logging.Log |
log
Commons Logging instance. |
| Fields inherited from class org.apache.struts.tiles.ComponentDefinition |
ACTION, attributes, controller, CONTROLLER, controllerType, name, path, role, URL |
| Constructor Summary | |
XmlDefinition()
Constructor. |
|
| Method Summary | |
void |
addAttribute(XmlAttribute attribute)
Add an attribute to this component. |
java.lang.String |
getExtends()
Get extends. |
boolean |
isExtending()
Get extends flag. |
void |
overload(XmlDefinition child)
Overload this definition with passed child. |
void |
resolveInheritance(XmlDefinitionsSet definitionsSet)
Resolve inheritance. |
void |
setExtends(java.lang.String name)
Set extends. |
void |
setIsVisited(boolean isVisited)
Set isVisited. |
| Methods inherited from class org.apache.struts.tiles.ComponentDefinition |
createController, createControllerFromClassname, getAttribute, getAttributes, getController, getControllerInstance, getControllerType, getName, getOrCreateController, getPage, getPath, getRole, getTemplate, put, put, put, put, putAttribute, setController, setControllerClass, setControllerInstance, setControllerType, setControllerUrl, setName, setPage, setPath, setRole, setTemplate, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
inherit
private java.lang.String inherit
- Extends attribute value.
log
protected static org.apache.commons.logging.Log log
- Commons Logging instance.
isVisited
private boolean isVisited
- Used for resolving inheritance.
| Constructor Detail |
XmlDefinition
public XmlDefinition()
- Constructor.
| Method Detail |
addAttribute
public void addAttribute(XmlAttribute attribute)
- Add an attribute to this component.
setExtends
public void setExtends(java.lang.String name)
- Set extends.
getExtends
public java.lang.String getExtends()
- Get extends.
isExtending
public boolean isExtending()
- Get extends flag.
setIsVisited
public void setIsVisited(boolean isVisited)
- Set isVisited.
resolveInheritance
public void resolveInheritance(XmlDefinitionsSet definitionsSet) throws org.apache.struts.tiles.NoSuchDefinitionException
- Resolve inheritance.
First, resolve parent's inheritance, then set path to the parent's path.
Also copy attributes setted in parent, and not set in child
If instance doesn't extend anything, do nothing.
overload
public void overload(XmlDefinition child)
- Overload this definition with passed child.
All attributes from child are copied to this definition. Previous attributes with
same name are disguarded.
Special attribute 'path','role' and 'extends' are overloaded if defined in child.
|
|||||||||
| Home >> All >> org >> apache >> struts >> tiles >> [ xmlDefinition overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC