|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.tiles.ComponentDefinition | +--org.apache.struts.tiles.xmlDefinition.XmlDefinition
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 |
private java.lang.String inherit
protected static org.apache.commons.logging.Log log
private boolean isVisited
Constructor Detail |
public XmlDefinition()
Method Detail |
public void addAttribute(XmlAttribute attribute)
attribute
- Attribute to add.public void setExtends(java.lang.String name)
name
- Name of the extended definition.public java.lang.String getExtends()
public boolean isExtending()
public void setIsVisited(boolean isVisited)
public void resolveInheritance(XmlDefinitionsSet definitionsSet) throws NoSuchDefinitionException
NoSuchDefinitionException
- If an inheritance can not be solved.public void overload(XmlDefinition child)
child
- Child used to overload this definition.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |