org.apache.commons.digester
クラス CallMethodRule

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

public class CallMethodRule
extends Rule

Rule implementation that calls a method on the top (parent) object, passing arguments collected from subsequent CallParamRule rules or from the body of this element.

バージョン:
$Revision: 1.9 $ $Date: 2001/08/25 20:30:16 $
作成者:
Craig McClanahan, Scott Sanders

フィールドの概要
protected  java.lang.String bodyText
          The body text collected from this element.
protected  java.lang.String methodName
          The method name to call on the parent object.
protected  int paramCount
          The number of parameters to collect from MethodParam rules.
protected  java.lang.Class[] paramTypes
          The parameter types of the parameters to be collected.
 
クラス org.apache.commons.digester.Rule から継承したフィールド
digester, namespaceURI
 
コンストラクタの概要
CallMethodRule(Digester digester, java.lang.String methodName, int paramCount)
          Construct a "call method" rule with the specified method name.
CallMethodRule(Digester digester, java.lang.String methodName, int paramCount, java.lang.Class[] paramTypes)
          Construct a "call method" rule with the specified method name.
CallMethodRule(Digester digester, java.lang.String methodName, int paramCount, java.lang.String[] paramTypes)
          Construct a "call method" rule with the specified method name.
 
メソッドの概要
 void begin(org.xml.sax.Attributes attributes)
          Process the start of this element.
 void body(java.lang.String bodyText)
          Process the body text of this element.
 void end()
          Process the end of this element.
 void finish()
          Clean up after parsing is complete.
 java.lang.String toString()
          Render a printable version of this Rule.
 
クラス org.apache.commons.digester.Rule から継承したメソッド
getDigester, getNamespaceURI, setNamespaceURI
 
クラス java.lang.Object から継承したメソッド
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

フィールドの詳細

bodyText

protected java.lang.String bodyText
The body text collected from this element.

methodName

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

paramCount

protected int paramCount
The number of parameters to collect from MethodParam rules. If this value is zero, a single parameter will be collected from the body of this element.

paramTypes

protected java.lang.Class[] paramTypes
The parameter types of the parameters to be collected.
コンストラクタの詳細

CallMethodRule

public CallMethodRule(Digester digester,
                      java.lang.String methodName,
                      int paramCount)
Construct a "call method" rule with the specified method name. The parameter types (if any) default to java.lang.String.
パラメータ:
digester - The associated Digester
methodName - Method name of the parent method to call
paramCount - The number of parameters to collect, or zero for a single argument from the body of this element.

CallMethodRule

public CallMethodRule(Digester digester,
                      java.lang.String methodName,
                      int paramCount,
                      java.lang.String[] paramTypes)
Construct a "call method" rule with the specified method name.
パラメータ:
digester - The associated Digester
methodName - Method name of the parent method to call
paramCount - The number of parameters to collect, or zero for a single argument from the body of ths element
paramTypes - The Java class names of the arguments (if you wish to use a primitive type, specify the corresonding Java wrapper class instead, such as java.lang.Boolean for a boolean parameter)

CallMethodRule

public CallMethodRule(Digester digester,
                      java.lang.String methodName,
                      int paramCount,
                      java.lang.Class[] paramTypes)
Construct a "call method" rule with the specified method name.
パラメータ:
digester - The associated Digester
methodName - Method name of the parent method to call
paramCount - The number of parameters to collect, or zero for a single argument from the body of ths element
paramTypes - The Java classes that represent the parameter types of the method arguments (if you wish to use a primitive type, specify the corresonding Java wrapper class instead, such as java.lang.Boolean.TYPE for a boolean parameter)
メソッドの詳細

begin

public void begin(org.xml.sax.Attributes attributes)
           throws java.lang.Exception
Process the start of this element.
オーバーライド:
クラス Rule 内の begin
パラメータ:
attributes - The attribute list for this element

body

public void body(java.lang.String bodyText)
          throws java.lang.Exception
Process the body text of this element.
オーバーライド:
クラス Rule 内の body
パラメータ:
bodyText - The body text of this element

end

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

finish

public void finish()
            throws java.lang.Exception
Clean up after parsing is complete.
オーバーライド:
クラス Rule 内の finish

toString

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


Copyright (c) 2001 - Apache Software Foundation