org.apache.commons.digester
クラス SetTopRule

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

public class SetTopRule
extends Rule

Rule implementation that calls a method on the top (parent) object, passing the (top-1) (child) object as an argument.

バージョン:
$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
 
コンストラクタの概要
SetTopRule(Digester digester, java.lang.String methodName)
          Construct a "set parent" rule with the specified method name.
SetTopRule(Digester digester, java.lang.String methodName, java.lang.String paramType)
          Construct a "set parent" 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.
コンストラクタの詳細

SetTopRule

public SetTopRule(Digester digester,
                  java.lang.String methodName)
Construct a "set parent" rule with the specified method name. The parent 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

SetTopRule

public SetTopRule(Digester digester,
                  java.lang.String methodName,
                  java.lang.String paramType)
Construct a "set parent" 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