org.apache.commons.digester
クラス ObjectCreateRule

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

public class ObjectCreateRule
extends Rule

Rule implementation that creates a new object and pushes it onto the object stack. When the element is complete, the object will be popped

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

フィールドの概要
protected  java.lang.String attributeName
          The attribute containing an override class name if it is present.
protected  java.lang.String className
          The Java class name of the object to be created.
 
クラス org.apache.commons.digester.Rule から継承したフィールド
digester, namespaceURI
 
コンストラクタの概要
ObjectCreateRule(Digester digester, java.lang.String className)
          Construct an object create rule with the specified class name.
ObjectCreateRule(Digester digester, java.lang.String className, java.lang.String attributeName)
          Construct an object create rule with the specified class name and an optional attribute name containing an override.
 
メソッドの概要
 void begin(org.xml.sax.Attributes attributes)
          Process the beginning of this element.
 void end()
          Process the end of this element.
 java.lang.String toString()
          Render a printable version of this Rule.
 
クラス org.apache.commons.digester.Rule から継承したメソッド
body, finish, 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 containing an override class name if it is present.

className

protected java.lang.String className
The Java class name of the object to be created.
コンストラクタの詳細

ObjectCreateRule

public ObjectCreateRule(Digester digester,
                        java.lang.String className)
Construct an object create rule with the specified class name.
パラメータ:
digester - The associated Digester
className - Java class name of the object to be created

ObjectCreateRule

public ObjectCreateRule(Digester digester,
                        java.lang.String className,
                        java.lang.String attributeName)
Construct an object create rule with the specified class name and an optional attribute name containing an override.
パラメータ:
digester - The associated Digester
className - Java class name of the object to be created
attributeName - Attribute name which, if present, contains an override of the class name to create
メソッドの詳細

begin

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

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