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 2004/02/15 20:06:52 UTC

cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/modules/input AbstractMetaModule.java

haul        2004/02/15 11:06:52

  Modified:    src/java/org/apache/cocoon/components/modules/input
                        AbstractMetaModule.java
  Log:
  more helpers
  
  Revision  Changes    Path
  1.7       +16 -1     cocoon-2.1/src/java/org/apache/cocoon/components/modules/input/AbstractMetaModule.java
  
  Index: AbstractMetaModule.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/modules/input/AbstractMetaModule.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AbstractMetaModule.java	23 Dec 2003 15:28:33 -0000	1.6
  +++ AbstractMetaModule.java	15 Feb 2004 19:06:52 -0000	1.7
  @@ -258,6 +258,21 @@
           return (Iterator) this.get(OP_NAMES, null, objectModel, staticMod, staticModName, staticModConf, dynamicMod, dynamicModName, dynamicModConf);
       }
   
  +    protected Object getValue(String attr, Map objectModel, ModuleHolder holder) throws ConfigurationException{
  +        return this.getValue(attr, objectModel, holder.input, holder.name, holder.config);
  +    }
  +
  +    protected Object getValue(String attr, Map objectModel, ModuleHolder staticHolder, ModuleHolder dynamicHolder) throws ConfigurationException{
  +        return this.getValue(attr, objectModel, staticHolder.input, staticHolder.name, dynamicHolder.config);
  +    }
  +
  +    protected Object[] getValues(String attr, Map objectModel, ModuleHolder holder) throws ConfigurationException{
  +        return this.getValues(attr, objectModel, holder.input, holder.name, holder.config);
  +    }
  +
  +    protected Object[] getValues(String attr, Map objectModel, ModuleHolder staticHolder, ModuleHolder dynamicHolder) throws ConfigurationException{
  +        return this.getValues(attr, objectModel, staticHolder.input, staticHolder.name, dynamicHolder.config);
  +    }
   
       /**
        * Get an attribute's value from a (usually statically assigned) Input