commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester InvokeMethodRule.java InvokeParamFromAttrRule.java InvokeParamFromBodyRule.java InvokeParamFromDefaultsRule.java InvokeParamFromObjectRule.java InvokeParamFromPathRule.java InvokeParamFromStackRule.java InvokeParamRule.java MethodParams.java Digester.java
Date Fri, 09 Apr 2004 11:33:17 GMT
skitching    2004/04/09 04:33:17

  Modified:    digester/src/java/org/apache/commons/digester Tag:
                        DIGESTER_INVOKE_METHOD_BRANCH Digester.java
  Added:       digester/src/java/org/apache/commons/digester Tag:
                        DIGESTER_INVOKE_METHOD_BRANCH InvokeMethodRule.java
                        InvokeParamFromAttrRule.java
                        InvokeParamFromBodyRule.java
                        InvokeParamFromDefaultsRule.java
                        InvokeParamFromObjectRule.java
                        InvokeParamFromPathRule.java
                        InvokeParamFromStackRule.java InvokeParamRule.java
                        MethodParams.java
  Log:
  Added implementation of InvokeMethodRule and supporting classes.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.100.2.1 +97 -0     jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java
  
  Index: Digester.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java,v
  retrieving revision 1.100
  retrieving revision 1.100.2.1
  diff -u -r1.100 -r1.100.2.1
  --- Digester.java	8 Apr 2004 06:11:36 -0000	1.100
  +++ Digester.java	9 Apr 2004 11:33:17 -0000	1.100.2.1
  @@ -1922,6 +1922,103 @@
       }
       
       /**
  +     * Add an "invoke method" rule for a method.
  +     *
  +     * @param pattern Element matching pattern
  +     * @param methodName Method name to be called
  +     * @param paramCount Number of expected parameters (or -1 for a single
  +     *  parameter from the element body).
  +     * @see InvokeMethodRule
  +     */
  +    public void addInvokeMethod(String pattern, String methodName, 
  +                    int paramCount) {
  +
  +        addRule(
  +                pattern,
  +                new InvokeMethodRule(methodName, paramCount));
  +    }
  +
  +    /**
  +     * Add an "invoke method" rule for a method.
  +     *
  +     * @param pattern Element matching pattern
  +     * @param methodName Method name to be called
  +     * @param paramCount Number of expected parameters (or -1 for a single
  +     *  parameter from the element body).
  +     * @see InvokeMethodRule
  +     */
  +    public void addInvokeMethod(String pattern, String methodName, 
  +                            int paramCount, String[] types) {
  +
  +        addRule(
  +                pattern,
  +                new InvokeMethodRule(methodName, paramCount, types));
  +    }
  +
  +    /**
  +     * Add an "invoke method" rule for a method.
  +     *
  +     * @param pattern Element matching pattern
  +     * @param methodName Method name to be called
  +     * @param paramCount Number of expected parameters (or -1 for a single
  +     *  parameter from the element body).
  +     * @see InvokeMethodRule
  +     */
  +    public void addInvokeMethod(String pattern, String methodName, 
  +                        int paramCount, Class[] types) {
  +
  +        addRule(
  +                pattern,
  +                new InvokeMethodRule(methodName, paramCount, types));
  +    }
  +
  +    /** Add an InvokeParamFromAttr rule for the specified parameters. */
  +    public void addInvokeParamFromAttr(String pattern, int paramIndex, String attrName)
{
  +        addRule(pattern, new InvokeParamFromAttrRule(paramIndex, attrName));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromBody rule for the specified parameters. */
  +    public void addInvokeParamFromBody(String pattern, int paramIndex) {
  +        addRule(pattern, new InvokeParamFromBodyRule(paramIndex));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromObject rule for the specified parameters. */
  +    public void addInvokeParamFromObject(String pattern, int paramIndex,
  +                    Object obj) {
  +        addRule(pattern, new InvokeParamFromObjectRule(paramIndex, obj));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromStack rule for the specified parameters. */
  +    public void addInvokeParamFromStack(String pattern, int paramIndex) {
  +        addRule(pattern, new InvokeParamFromStackRule(paramIndex));
  +    }
  +
  +    /** Add an InvokeParamFromStack rule for the specified parameters. */
  +    public void addInvokeParamFromStack(String pattern, int paramIndex, int offset) {
  +        addRule(pattern, new InvokeParamFromStackRule(paramIndex, offset));
  +    }
  +
  +    /** Add an InvokeParamFromPath rule for the specified parameters. */
  +    public void addInvokeParamFromPath(String pattern, int paramIndex) {
  +        addRule(pattern, new InvokeParamFromPathRule(paramIndex));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromPath rule for the specified parameters. */
  +    public void addInvokeParamFromPath(String pattern, int paramIndex,
  +                    boolean passFullPath) {
  +        addRule(pattern, new InvokeParamFromPathRule(paramIndex, passFullPath));
  +    }
  +
  +    /** Add an InvokeParamFromDefaults rule for the specified parameters. */
  +    public void addInvokeParamFromDefaults(String pattern, Object[] defaults) {
  +        addRule(pattern, new InvokeParamFromDefaultsRule(defaults));
  +    }
  +
  +    /**
        * Add a "factory create" rule for the specified parameters.
        * Exceptions thrown during the object creation process will be propagated.
        *
  
  
  
  No                   revision
  
  Index: Digester.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java,v
  retrieving revision 1.100
  retrieving revision 1.100.2.1
  diff -u -r1.100 -r1.100.2.1
  --- Digester.java	8 Apr 2004 06:11:36 -0000	1.100
  +++ Digester.java	9 Apr 2004 11:33:17 -0000	1.100.2.1
  @@ -1922,6 +1922,103 @@
       }
       
       /**
  +     * Add an "invoke method" rule for a method.
  +     *
  +     * @param pattern Element matching pattern
  +     * @param methodName Method name to be called
  +     * @param paramCount Number of expected parameters (or -1 for a single
  +     *  parameter from the element body).
  +     * @see InvokeMethodRule
  +     */
  +    public void addInvokeMethod(String pattern, String methodName, 
  +                    int paramCount) {
  +
  +        addRule(
  +                pattern,
  +                new InvokeMethodRule(methodName, paramCount));
  +    }
  +
  +    /**
  +     * Add an "invoke method" rule for a method.
  +     *
  +     * @param pattern Element matching pattern
  +     * @param methodName Method name to be called
  +     * @param paramCount Number of expected parameters (or -1 for a single
  +     *  parameter from the element body).
  +     * @see InvokeMethodRule
  +     */
  +    public void addInvokeMethod(String pattern, String methodName, 
  +                            int paramCount, String[] types) {
  +
  +        addRule(
  +                pattern,
  +                new InvokeMethodRule(methodName, paramCount, types));
  +    }
  +
  +    /**
  +     * Add an "invoke method" rule for a method.
  +     *
  +     * @param pattern Element matching pattern
  +     * @param methodName Method name to be called
  +     * @param paramCount Number of expected parameters (or -1 for a single
  +     *  parameter from the element body).
  +     * @see InvokeMethodRule
  +     */
  +    public void addInvokeMethod(String pattern, String methodName, 
  +                        int paramCount, Class[] types) {
  +
  +        addRule(
  +                pattern,
  +                new InvokeMethodRule(methodName, paramCount, types));
  +    }
  +
  +    /** Add an InvokeParamFromAttr rule for the specified parameters. */
  +    public void addInvokeParamFromAttr(String pattern, int paramIndex, String attrName)
{
  +        addRule(pattern, new InvokeParamFromAttrRule(paramIndex, attrName));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromBody rule for the specified parameters. */
  +    public void addInvokeParamFromBody(String pattern, int paramIndex) {
  +        addRule(pattern, new InvokeParamFromBodyRule(paramIndex));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromObject rule for the specified parameters. */
  +    public void addInvokeParamFromObject(String pattern, int paramIndex,
  +                    Object obj) {
  +        addRule(pattern, new InvokeParamFromObjectRule(paramIndex, obj));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromStack rule for the specified parameters. */
  +    public void addInvokeParamFromStack(String pattern, int paramIndex) {
  +        addRule(pattern, new InvokeParamFromStackRule(paramIndex));
  +    }
  +
  +    /** Add an InvokeParamFromStack rule for the specified parameters. */
  +    public void addInvokeParamFromStack(String pattern, int paramIndex, int offset) {
  +        addRule(pattern, new InvokeParamFromStackRule(paramIndex, offset));
  +    }
  +
  +    /** Add an InvokeParamFromPath rule for the specified parameters. */
  +    public void addInvokeParamFromPath(String pattern, int paramIndex) {
  +        addRule(pattern, new InvokeParamFromPathRule(paramIndex));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromPath rule for the specified parameters. */
  +    public void addInvokeParamFromPath(String pattern, int paramIndex,
  +                    boolean passFullPath) {
  +        addRule(pattern, new InvokeParamFromPathRule(paramIndex, passFullPath));
  +    }
  +
  +    /** Add an InvokeParamFromDefaults rule for the specified parameters. */
  +    public void addInvokeParamFromDefaults(String pattern, Object[] defaults) {
  +        addRule(pattern, new InvokeParamFromDefaultsRule(defaults));
  +    }
  +
  +    /**
        * Add a "factory create" rule for the specified parameters.
        * Exceptions thrown during the object creation process will be propagated.
        *
  
  
  
  No                   revision
  
  Index: Digester.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java,v
  retrieving revision 1.100
  retrieving revision 1.100.2.1
  diff -u -r1.100 -r1.100.2.1
  --- Digester.java	8 Apr 2004 06:11:36 -0000	1.100
  +++ Digester.java	9 Apr 2004 11:33:17 -0000	1.100.2.1
  @@ -1922,6 +1922,103 @@
       }
       
       /**
  +     * Add an "invoke method" rule for a method.
  +     *
  +     * @param pattern Element matching pattern
  +     * @param methodName Method name to be called
  +     * @param paramCount Number of expected parameters (or -1 for a single
  +     *  parameter from the element body).
  +     * @see InvokeMethodRule
  +     */
  +    public void addInvokeMethod(String pattern, String methodName, 
  +                    int paramCount) {
  +
  +        addRule(
  +                pattern,
  +                new InvokeMethodRule(methodName, paramCount));
  +    }
  +
  +    /**
  +     * Add an "invoke method" rule for a method.
  +     *
  +     * @param pattern Element matching pattern
  +     * @param methodName Method name to be called
  +     * @param paramCount Number of expected parameters (or -1 for a single
  +     *  parameter from the element body).
  +     * @see InvokeMethodRule
  +     */
  +    public void addInvokeMethod(String pattern, String methodName, 
  +                            int paramCount, String[] types) {
  +
  +        addRule(
  +                pattern,
  +                new InvokeMethodRule(methodName, paramCount, types));
  +    }
  +
  +    /**
  +     * Add an "invoke method" rule for a method.
  +     *
  +     * @param pattern Element matching pattern
  +     * @param methodName Method name to be called
  +     * @param paramCount Number of expected parameters (or -1 for a single
  +     *  parameter from the element body).
  +     * @see InvokeMethodRule
  +     */
  +    public void addInvokeMethod(String pattern, String methodName, 
  +                        int paramCount, Class[] types) {
  +
  +        addRule(
  +                pattern,
  +                new InvokeMethodRule(methodName, paramCount, types));
  +    }
  +
  +    /** Add an InvokeParamFromAttr rule for the specified parameters. */
  +    public void addInvokeParamFromAttr(String pattern, int paramIndex, String attrName)
{
  +        addRule(pattern, new InvokeParamFromAttrRule(paramIndex, attrName));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromBody rule for the specified parameters. */
  +    public void addInvokeParamFromBody(String pattern, int paramIndex) {
  +        addRule(pattern, new InvokeParamFromBodyRule(paramIndex));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromObject rule for the specified parameters. */
  +    public void addInvokeParamFromObject(String pattern, int paramIndex,
  +                    Object obj) {
  +        addRule(pattern, new InvokeParamFromObjectRule(paramIndex, obj));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromStack rule for the specified parameters. */
  +    public void addInvokeParamFromStack(String pattern, int paramIndex) {
  +        addRule(pattern, new InvokeParamFromStackRule(paramIndex));
  +    }
  +
  +    /** Add an InvokeParamFromStack rule for the specified parameters. */
  +    public void addInvokeParamFromStack(String pattern, int paramIndex, int offset) {
  +        addRule(pattern, new InvokeParamFromStackRule(paramIndex, offset));
  +    }
  +
  +    /** Add an InvokeParamFromPath rule for the specified parameters. */
  +    public void addInvokeParamFromPath(String pattern, int paramIndex) {
  +        addRule(pattern, new InvokeParamFromPathRule(paramIndex));
  +      
  +    }
  +
  +    /** Add an InvokeParamFromPath rule for the specified parameters. */
  +    public void addInvokeParamFromPath(String pattern, int paramIndex,
  +                    boolean passFullPath) {
  +        addRule(pattern, new InvokeParamFromPathRule(paramIndex, passFullPath));
  +    }
  +
  +    /** Add an InvokeParamFromDefaults rule for the specified parameters. */
  +    public void addInvokeParamFromDefaults(String pattern, Object[] defaults) {
  +        addRule(pattern, new InvokeParamFromDefaultsRule(defaults));
  +    }
  +
  +    /**
        * Add a "factory create" rule for the specified parameters.
        * Exceptions thrown during the object creation process will be propagated.
        *
  
  
  
  1.1.2.1   +605 -0    jakarta-commons/digester/src/java/org/apache/commons/digester/Attic/InvokeMethodRule.java
  
  
  
  
  1.1.2.1   +117 -0    jakarta-commons/digester/src/java/org/apache/commons/digester/Attic/InvokeParamFromAttrRule.java
  
  
  
  
  1.1.2.1   +97 -0     jakarta-commons/digester/src/java/org/apache/commons/digester/Attic/InvokeParamFromBodyRule.java
  
  
  
  
  1.1.2.1   +103 -0    jakarta-commons/digester/src/java/org/apache/commons/digester/Attic/InvokeParamFromDefaultsRule.java
  
  
  
  
  1.1.2.1   +99 -0     jakarta-commons/digester/src/java/org/apache/commons/digester/Attic/InvokeParamFromObjectRule.java
  
  
  
  
  1.1.2.1   +131 -0    jakarta-commons/digester/src/java/org/apache/commons/digester/Attic/InvokeParamFromPathRule.java
  
  
  
  
  1.1.2.1   +122 -0    jakarta-commons/digester/src/java/org/apache/commons/digester/Attic/InvokeParamFromStackRule.java
  
  
  
  
  1.1.2.1   +119 -0    jakarta-commons/digester/src/java/org/apache/commons/digester/Attic/InvokeParamRule.java
  
  
  
  
  1.1.2.1   +130 -0    jakarta-commons/digester/src/java/org/apache/commons/digester/Attic/MethodParams.java
  
  
  
  

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


Mime
View raw message