cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/modules/input ChainMetaModule.java
Date Mon, 16 Dec 2002 09:50:54 GMT
haul        2002/12/16 01:50:54

  Modified:    src/java/org/apache/cocoon/components/modules/input
                        ChainMetaModule.java
  Log:
  added some debug statements
  
  Revision  Changes    Path
  1.4       +6 -1      xml-cocoon2/src/java/org/apache/cocoon/components/modules/input/ChainMetaModule.java
  
  Index: ChainMetaModule.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/modules/input/ChainMetaModule.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ChainMetaModule.java	17 Nov 2002 18:00:03 -0000	1.3
  +++ ChainMetaModule.java	16 Dec 2002 09:50:54 -0000	1.4
  @@ -199,6 +199,7 @@
               inputConfigs = modeConf.getChildren("input-modules");
               emptyAsNull = modeConf.getChild("empty-as-null").getValueAsBoolean(emptyAsNull);
               allValues = modeConf.getChild("all-values").getValueAsBoolean(allValues);
  +            if (inputConfigs.length == 0) inputConfigs = null;
           }
   
           Object[] value = null;
  @@ -236,6 +237,7 @@
                   i++;
               }
           }
  +        if (debug) getLogger().debug("result chaining for "+attr+" is "+(allValues? values.toArray()
: value));
           return (allValues? values.toArray() : value);
       }
   
  @@ -264,6 +266,7 @@
               inputConfigs = modeConf.getChildren("input-modules");
               emptyAsNull = modeConf.getChild("empty-as-null").getValueAsBoolean(emptyAsNull);
               allNames = modeConf.getChild("all-names").getValueAsBoolean(allNames);
  +            if (inputConfigs.length == 0) inputConfigs = null;
           }
   
           Iterator value = null;
  @@ -295,6 +298,7 @@
                   i++;
               }
           }
  +        if (debug) getLogger().debug("result chaining names is "+(allNames? values.iterator()
: value));
           return (allNames? values.iterator() : value);
        }
   
  @@ -303,6 +307,7 @@
           throws ConfigurationException {
   
           Object[] values = this.getAttributeValues(attr,modeConf,objectModel);
  +        if (getLogger().isDebugEnabled()) getLogger().debug("result chaining single for
"+attr+" is "+(values != null? values[0] : "null"));
           return (values != null? values[0] : null);
       }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message