org.apache.commons.digester
クラス Rule

java.lang.Object
  |
  +--org.apache.commons.digester.Rule
直系の既知のサブクラス:
CallMethodRule, CallParamRule, FactoryCreateRule, ObjectCreateRule, SetNextRule, SetPropertiesRule, SetPropertyRule, SetTopRule

public abstract class Rule
extends java.lang.Object

Concrete implementations of this class implement actions to be taken when a corresponding nested pattern of XML elements has been matched.

バージョン:
$Revision: 1.4 $ $Date: 2001/08/26 22:13:44 $
作成者:
Craig McClanahan

フィールドの概要
protected  Digester digester
          The Digester with which this Rule is associated.
protected  java.lang.String namespaceURI
          The namespace URI for which this Rule is relevant, if any.
 
コンストラクタの概要
Rule(Digester digester)
          Default constructor sets only the the associated Digester.
 
メソッドの概要
 void begin(org.xml.sax.Attributes attributes)
          This method is called when the beginning of a matching XML element is encountered.
 void body(java.lang.String text)
          This method is called when the body of a matching XML element is encountered.
 void end()
          This method is called when the end of a matching XML element is encountered.
 void finish()
          This method is called after all parsing methods have been called, to allow Rules to remove temporary data.
 Digester getDigester()
          Return the Digester with which this Rule is associated.
 java.lang.String getNamespaceURI()
          Return the namespace URI for which this Rule is relevant, if any.
 void setNamespaceURI(java.lang.String namespaceURI)
          Set the namespace URI for which this Rule is relevant, if any.
 
クラス java.lang.Object から継承したメソッド
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

フィールドの詳細

digester

protected Digester digester
The Digester with which this Rule is associated.

namespaceURI

protected java.lang.String namespaceURI
The namespace URI for which this Rule is relevant, if any.
コンストラクタの詳細

Rule

public Rule(Digester digester)
Default constructor sets only the the associated Digester.
パラメータ:
digester - The digester with which this rule is associated
メソッドの詳細

getDigester

public Digester getDigester()
Return the Digester with which this Rule is associated.

getNamespaceURI

public java.lang.String getNamespaceURI()
Return the namespace URI for which this Rule is relevant, if any.

setNamespaceURI

public void setNamespaceURI(java.lang.String namespaceURI)
Set the namespace URI for which this Rule is relevant, if any.
パラメータ:
namespaceURI - Namespace URI for which this Rule is relevant, or null to match independent of namespace.

begin

public void begin(org.xml.sax.Attributes attributes)
           throws java.lang.Exception
This method is called when the beginning of a matching XML element is encountered.
パラメータ:
attributes - The attribute list of this element

body

public void body(java.lang.String text)
          throws java.lang.Exception
This method is called when the body of a matching XML element is encountered. If the element has no body, this method is not called at all.
パラメータ:
text - The text of the body of this element

end

public void end()
         throws java.lang.Exception
This method is called when the end of a matching XML element is encountered.

finish

public void finish()
            throws java.lang.Exception
This method is called after all parsing methods have been called, to allow Rules to remove temporary data.


Copyright (c) 2001 - Apache Software Foundation