org.apache.struts.tiles.xmlDefinition
クラス XmlDefinition

java.lang.Object
  拡張org.apache.struts.tiles.ComponentDefinition
      拡張org.apache.struts.tiles.xmlDefinition.XmlDefinition
すべての実装インタフェース:
java.io.Serializable

public class XmlDefinition
extends ComponentDefinition

A definition read from an XML definitions file.

関連項目:
直列化された形式

フィールドの概要
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.
 
クラス org.apache.struts.tiles.ComponentDefinition から継承したフィールド
ACTION, attributes, controller, CONTROLLER, controllerType, name, path, role, URL
 
コンストラクタの概要
XmlDefinition()
          Constructor.
 
メソッドの概要
 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.
 
クラス 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
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

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.

コンストラクタの詳細

XmlDefinition

public XmlDefinition()
Constructor.

メソッドの詳細

addAttribute

public void addAttribute(XmlAttribute attribute)
Add an attribute to this component.

パラメータ:
attribute - Attribute to add.

setExtends

public void setExtends(java.lang.String name)
Set extends.

パラメータ:
name - Name of the extended definition.

getExtends

public java.lang.String getExtends()
Get extends.

戻り値:
Name of the extended definition.

isExtending

public boolean isExtending()
Get extends flag.


setIsVisited

public void setIsVisited(boolean isVisited)
Set isVisited.


resolveInheritance

public void resolveInheritance(XmlDefinitionsSet definitionsSet)
                        throws 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.

例外:
NoSuchDefinitionException - If an inheritance can not be solved.

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.

パラメータ:
child - Child used to overload this definition.


このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2004 - Apache Software Foundation