| java.lang.Object org.apache.struts.tiles.ComponentDefinition org.apache.struts.tiles.xmlDefinition.XmlDefinition
Field Summary | |
protected static Log | log Commons Logging instance. |
log | protected static Log log(Code) | | Commons Logging instance.
|
XmlDefinition | public XmlDefinition()(Code) | | Constructor.
|
addAttribute | public void addAttribute(XmlAttribute attribute)(Code) | | Add an attribute to this component.
Parameters: attribute - Attribute to add. |
getExtends | public String getExtends()(Code) | | Get extends.
Name of the extended definition. |
isExtending | public boolean isExtending()(Code) | | Get extends flag.
|
overload | public void overload(XmlDefinition child)(Code) | | 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.
Parameters: child - Child used to overload this definition. |
resolveInheritance | public void resolveInheritance(XmlDefinitionsSet definitionsSet) throws NoSuchDefinitionException(Code) | | 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.
throws: NoSuchDefinitionException - If an inheritance can not be solved. |
setExtends | public void setExtends(String name)(Code) | | Set extends.
Parameters: name - Name of the extended definition. |
setIsVisited | public void setIsVisited(boolean isVisited)(Code) | | Set isVisited.
|
Methods inherited from org.apache.struts.tiles.ComponentDefinition | public static Controller createController(String name, String controllerType) throws InstantiationException(Code)(Java Doc) public static Controller createControllerFromClassname(String classname) throws InstantiationException(Code)(Java Doc) public Object getAttribute(String key)(Code)(Java Doc) public Map getAttributes()(Code)(Java Doc) public String getController()(Code)(Java Doc) public Controller getControllerInstance()(Code)(Java Doc) public String getControllerType()(Code)(Java Doc) public String getName()(Code)(Java Doc) public Controller getOrCreateController() throws InstantiationException(Code)(Java Doc) public String getPage()(Code)(Java Doc) public String getPath()(Code)(Java Doc) public String getRole()(Code)(Java Doc) public String getTemplate()(Code)(Java Doc) public void put(String name, Object content)(Code)(Java Doc) public void put(String name, Object content, boolean direct)(Code)(Java Doc) public void put(String name, Object content, boolean direct, String role)(Code)(Java Doc) public void put(String name, Object content, String type, String role)(Code)(Java Doc) public void putAttribute(String key, Object value)(Code)(Java Doc) public void setController(String url)(Code)(Java Doc) public void setControllerClass(String controller)(Code)(Java Doc) public void setControllerInstance(Controller controller)(Code)(Java Doc) public void setControllerType(String controllerType)(Code)(Java Doc) public void setControllerUrl(String controller)(Code)(Java Doc) public void setName(String aName)(Code)(Java Doc) public void setPage(String page)(Code)(Java Doc) public void setPath(String aPath)(Code)(Java Doc) public void setRole(String role)(Code)(Java Doc) public void setTemplate(String template)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|