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/01/17 11:56:50 UTC
cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester ExtendedBaseRules.java
skitching 2005/01/17 02:56:50
Modified: digester/src/java/org/apache/commons/digester
ExtendedBaseRules.java
Log:
Javadoc fixes, with thanks to Wendy Smoak.
Revision Changes Path
1.16 +28 -22 jakarta-commons/digester/src/java/org/apache/commons/digester/ExtendedBaseRules.java
Index: ExtendedBaseRules.java
===================================================================
RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/ExtendedBaseRules.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ExtendedBaseRules.java 10 May 2004 06:30:06 -0000 1.15
+++ ExtendedBaseRules.java 17 Jan 2005 10:56:50 -0000 1.16
@@ -105,27 +105,33 @@
*
* <h4>Using The Extended Rules</h4>
*
- * <p>The most important thing to remember
- * when using the extended rules is that universal
- * and non-universal patterns are completely independent.
- * Universal patterns are never effected by the addition of new patterns
- * or the removal of existing ones.
- * Non-universal patterns are never effected
- * by the addition of new <em>universal</em> patterns
- * or the removal of existing <em>universal</em> patterns.
- * As in the basic matching rules, non-universal (basic) patterns
- * <strong>can</strong> be effected
- * by the addition of new <em>non-universal</em> patterns
- * or the removal of existing <em>non-universal</em> patterns.
- * <p> This means that you can use universal patterns
- * to build up the simple parts of your structure
- * - for example defining universal creation and property setting rules.
- * More sophisticated and complex mapping will require non-universal patterns
- * and this might mean that some of the universal rules will need to be
- * replaced by a series of
- * special cases using non-universal rules.
- * But by using universal rules as your backbone,
- * these additions should not break your existing rules.</p>
+ * <p>By default, a Digester instance uses a {@link RulesBase} instance as
+ * its pattern matching engine. To use an ExtendedBaseRules instance, call
+ * the Digester.setRules method before adding any Rule objects to the digester
+ * instance:
+ * <pre>
+ * Digester digester = new Digester();
+ * digester.setRules( new ExtendedBaseRules() );
+ * </pre></p>
+ *
+ * <p>The most important thing to remember when using the extended rules is
+ * that universal and non-universal patterns are completely independent.
+ * Universal patterns are never affected by the addition of new patterns
+ * or the removal of existing ones. Non-universal patterns are never affected
+ * by the addition of new <em>universal</em> patterns or the removal of
+ * existing <em>universal</em> patterns. As in the basic matching rules,
+ * non-universal (basic) patterns <strong>can</strong> be affected by the
+ * addition of new <em>non-universal</em> patterns or the removal of existing
+ * <em>non-universal</em> patterns, because only rules associated with the
+ * "best matching" pattern for each xml element are executed.
+ *
+ * <p> This means that you can use universal patterns to build up the simple
+ * parts of your structure - for example defining universal creation and
+ * property setting rules. More sophisticated and complex mapping will require
+ * non-universal patterns and this might mean that some of the universal rules
+ * will need to be replaced by a series of special cases using non-universal
+ * rules. But by using universal rules as your backbone, these additions
+ * should not break your existing rules.</p>
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org