org.apache.commons.digester
クラス SetNextRule

java.lang.Object
  |
  +--org.apache.commons.digester.Rule
        |
        +--org.apache.commons.digester.SetNextRule

public class SetNextRule
extends Rule

Rule implementation that calls a method on the (top-1) (parent) object, passing the top object (child) as an argument. It is commonly used to establish parent-child relationships.

バージョン:
$Revision: 1.6 $ $Date: 2001/08/20 18:28:40 $
作成者:
Craig McClanahan, Scott Sanders

フィールドの概要
protected  java.lang.String methodName
          The method name to call on the parent object.
protected  java.lang.String paramType
          The Java class name of the parameter type expected by the method.
 
クラス org.apache.commons.digester.Rule から継承したフィールド
digester, namespaceURI
 
コンストラクタの概要
SetNextRule(Digester digester, java.lang.String methodName)
          Construct a "set next" rule with the specified method name.
SetNextRule(Digester digester, java.lang.String methodName, java.lang.String paramType)
          Construct a "set next" rule with the specified method name.
 
メソッドの概要
 void end()
          Process the end of this element.
 java.lang.String toString()
          Render a printable version of this Rule.
 
クラス org.apache.commons.digester.Rule から継承したメソッド
begin, body, finish, getDigester, getNamespaceURI, setNamespaceURI
 
クラス java.lang.Object から継承したメソッド
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

フィールドの詳細

methodName

protected java.lang.String methodName
The method name to call on the parent object.

paramType

protected java.lang.String paramType
The Java class name of the parameter type expected by the method.
コンストラクタの詳細

SetNextRule

public SetNextRule(Digester digester,
                   java.lang.String methodName)
Construct a "set next" rule with the specified method name. The method's argument type is assumed to be the class of the child object.
パラメータ:
digester - The associated Digester
methodName - Method name of the parent method to call

SetNextRule

public SetNextRule(Digester digester,
                   java.lang.String methodName,
                   java.lang.String paramType)
Construct a "set next" rule with the specified method name.
パラメータ:
digester - The associated Digester
methodName - Method name of the parent method to call
paramType - Java class of the parent method's argument (if you wish to use a primitive type, specify the corresonding Java wrapper class instead, such as java.lang.Boolean for a boolean parameter)
メソッドの詳細

end

public void end()
         throws java.lang.Exception
Process the end of this element.
オーバーライド:
クラス Rule 内の end

toString

public java.lang.String toString()
Render a printable version of this Rule.
オーバーライド:
クラス java.lang.Object 内の toString


Copyright (c) 2001 - Apache Software Foundation