You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ha...@apache.org on 2002/11/30 11:21:39 UTC

cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/modules/input SimpleMappingMetaModule.java AbstractJXPathModule.java

haul        2002/11/30 02:21:39

  Modified:    src/java/org/apache/cocoon/components/modules/input Tag:
                        cocoon_2_0_3_branch AbstractJXPathModule.java
  Added:       src/java/org/apache/cocoon/components/modules/input Tag:
                        cocoon_2_0_3_branch SimpleMappingMetaModule.java
  Log:
    <action dev="CH" type="add">
     New InputModule to map parameter names to / from another name. Uses translation
     table and additional prefix / suffix.
    </action>
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.2   +4 -4      xml-cocoon2/src/java/org/apache/cocoon/components/modules/input/AbstractJXPathModule.java
  
  Index: AbstractJXPathModule.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/modules/input/AbstractJXPathModule.java,v
  retrieving revision 1.3.2.1
  retrieving revision 1.3.2.2
  diff -u -r1.3.2.1 -r1.3.2.2
  --- AbstractJXPathModule.java	17 Nov 2002 19:12:49 -0000	1.3.2.1
  +++ AbstractJXPathModule.java	30 Nov 2002 10:21:39 -0000	1.3.2.2
  @@ -220,8 +220,8 @@
                                  Map objectModel)
           throws ConfigurationException {
   
  +        Object contextObj = getContextObject(modeConf, objectModel);
           try {
  -            Object contextObj = getContextObject(modeConf, objectModel);
               JXPathContext jxContext = JXPathContext.newContext(contextObj);
               setupExtensions(jxContext, modeConf);
               return jxContext.getValue(name);
  @@ -259,8 +259,8 @@
       public Object[] getAttributeValues(String name, Configuration modeConf, Map objectModel)
           throws ConfigurationException {
   
  +        Object contextObj = getContextObject(modeConf, objectModel);
           try {
  -            Object contextObj = getContextObject(modeConf, objectModel);
               JXPathContext jxContext = JXPathContext.newContext(contextObj);
               List values = new LinkedList();
               setupExtensions(jxContext, modeConf);
  @@ -284,5 +284,5 @@
        * Examples are: request, session and application context objects.
        */
       protected abstract Object getContextObject(Configuration modeConf,
  -                                               Map objectModel);
  +                                               Map objectModel) throws ConfigurationException;
   }
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +306 -0    xml-cocoon2/src/java/org/apache/cocoon/components/modules/input/Attic/SimpleMappingMetaModule.java
  
  
  
  

----------------------------------------------------------------------
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