org.apache.commons.digester
クラス CallParamRule

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

public class CallParamRule
extends Rule

Rule implementation that saves a parameter from either an attribute of this element, or from the element body, to be used in a call generated by a surrounding CallMethodRule rule.

バージョン:
$Revision: 1.5 $ $Date: 2001/08/20 19:18:42 $
作成者:
Craig McClanahan

フィールドの概要
protected  java.lang.String attributeName
          The attribute from which to save the parameter value
protected  java.lang.String bodyText
          The body text collected from this element.
protected  int paramIndex
          The zero-relative index of the parameter we are saving.
 
クラス org.apache.commons.digester.Rule から継承したフィールド
digester, namespaceURI
 
コンストラクタの概要
CallParamRule(Digester digester, int paramIndex)
          Construct a "call parameter" rule that will save the body text of this element as the parameter value.
CallParamRule(Digester digester, int paramIndex, java.lang.String attributeName)
          Construct a "call parameter" rule that will save the value of the specified attribute as the parameter value.
 
メソッドの概要
 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
 

フィールドの詳細

attributeName

protected java.lang.String attributeName
The attribute from which to save the parameter value

bodyText

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

paramIndex

protected int paramIndex
The zero-relative index of the parameter we are saving.
コンストラクタの詳細

CallParamRule

public CallParamRule(Digester digester,
                     int paramIndex)
Construct a "call parameter" rule that will save the body text of this element as the parameter value.
パラメータ:
digester - The associated Digester
paramIndex - The zero-relative parameter number

CallParamRule

public CallParamRule(Digester digester,
                     int paramIndex,
                     java.lang.String attributeName)
Construct a "call parameter" rule that will save the value of the specified attribute as the parameter value.
パラメータ:
digester - The associated Digester
paramIndex - The zero-relative parameter number
attributeName - The name of the attribute to save
メソッドの詳細

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