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/12 11:33:06 UTC

cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester SetNestedPropertiesRule.java

skitching    2005/01/12 02:33:06

  Modified:    digester/src/java/org/apache/commons/digester
                        SetNestedPropertiesRule.java
  Log:
  Improve toString method. Also fix minor javadoc error. Patch provided
  by Wendy Smoak.
  
  Revision  Changes    Path
  1.10      +13 -5     jakarta-commons/digester/src/java/org/apache/commons/digester/SetNestedPropertiesRule.java
  
  Index: SetNestedPropertiesRule.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/SetNestedPropertiesRule.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SetNestedPropertiesRule.java	30 Nov 2004 04:40:54 -0000	1.9
  +++ SetNestedPropertiesRule.java	12 Jan 2005 10:33:06 -0000	1.10
  @@ -210,10 +210,11 @@
        * When set to false, any child element for which there is no
        * corresponding object property will cause an error to be reported.
        * <p>
  -     * When set to false, any child element for which there is no
  +     * When set to true, any child element for which there is no
        * corresponding object property will simply be ignored.
        * <p>
  -     * The default value of this attribute is false (not allowed).
  +     * The default value of this attribute is false (unknown child elements
  +     * are not allowed).
        */
       public void setAllowUnknownChildElements(boolean allowUnknownChildElements) {
           this.allowUnknownChildElements = allowUnknownChildElements;
  @@ -268,8 +269,15 @@
        * Render a printable version of this Rule.
        */
       public String toString() {
  -
  -        return ("SetNestedPropertiesRule");
  +        StringBuffer sb = new StringBuffer("SetNestedPropertiesRule[");
  +        sb.append("allowUnknownChildElements=");
  +        sb.append(allowUnknownChildElements);
  +        sb.append(", trimData=");
  +        sb.append(trimData);
  +        sb.append(", elementNames=");
  +        sb.append(elementNames);
  +        sb.append("]");
  +        return sb.toString();    
       }
   
       //----------------------------------------- local classes 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org