You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sk...@apache.org on 2005/02/09 13:11:53 UTC
svn commit: r153049 - in
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2:
AbstractRuleManager.java RuleManager.java
Author: skitching
Date: Wed Feb 9 04:11:52 2005
New Revision: 153049
URL: http://svn.apache.org/viewcvs?view=rev&rev=153049
Log:
Added method getActions
Modified:
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractRuleManager.java
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/RuleManager.java
Modified: jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractRuleManager.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractRuleManager.java?view=diff&r1=153048&r2=153049
==============================================================================
--- jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractRuleManager.java (original)
+++ jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractRuleManager.java Wed Feb 9 04:11:52 2005
@@ -43,8 +43,7 @@
/**
* Invoked before parsing each input document, this method gives the
- * RuleManager and the managed Action objects the opportunity to do
- * per-parse initialisation if required.
+ * RuleManager the opportunity to do per-parse initialisation if required.
*/
public void startParse(Context context) throws DigestionException {}
@@ -75,6 +74,16 @@
public abstract void addRule(String pattern, Action action)
throws InvalidRuleException;
+ /**
+ * Return a List of all registered Action instances, or a zero-length List
+ * if there are no registered Action instances.
+ * <p>
+ * The rules are returned in the order they were added. If an Action
+ * instance has been added multiple times, then its order is set by the
+ * first time it was added.
+ */
+ public abstract List getActions();
+
/**
* Return a List of all registered Action instances that match the specified
* nesting pattern, or a zero-length List if there are no matches. If more
Modified: jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/RuleManager.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/RuleManager.java?view=diff&r1=153048&r2=153049
==============================================================================
--- jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/RuleManager.java (original)
+++ jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/RuleManager.java Wed Feb 9 04:11:52 2005
@@ -52,15 +52,13 @@
/**
* Invoked before parsing each input document, this method gives the
- * RuleManager and the managed Action objects the opportunity to do
- * per-parse initialisation if required.
+ * RuleManager opportunity to do per-parse initialisation if required.
*/
public void startParse(Context context) throws DigestionException;
/**
* Invoked after parsing each input document, this method gives the
- * RuleManager and the managed Action objects the opportunity to do
- * per-parse cleanup if required.
+ * RuleManager the opportunity to do per-parse cleanup if required.
*/
public void finishParse(Context context) throws DigestionException;
@@ -83,6 +81,16 @@
*/
public void addRule(String pattern, Action action) throws InvalidRuleException;
+ /**
+ * Return a List of all registered Action instances, or a zero-length List
+ * if there are no registered Action instances.
+ * <p>
+ * The rules are returned in the order they were added. If an Action
+ * instance has been added multiple times, then its order is set by the
+ * first time it was added.
+ */
+ public List getActions();
+
/**
* Return a List of all registered Action instances that match the specified
* nesting pattern, or a zero-length List if there are no matches. If more
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org