You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@locus.apache.org on 2000/07/31 21:56:06 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/templates FuncDocument.java

mmidy       00/07/31 12:56:06

  Modified:    java/src/org/apache/xalan/templates FuncDocument.java
  Log:
  Allow one or two arguments in function document
  
  Revision  Changes    Path
  1.4       +10 -0     xml-xalan/java/src/org/apache/xalan/templates/FuncDocument.java
  
  Index: FuncDocument.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/FuncDocument.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FuncDocument.java	2000/07/05 14:40:24	1.3
  +++ FuncDocument.java	2000/07/31 19:56:05	1.4
  @@ -306,5 +306,15 @@
                            +"; column "+te.getColumnNumber());
       }
     }
  +  
  +  /*
  +   * Overide the superclass method to allow one or two arguments.
  +   */
  +  public void checkNumberArgs(int argNum)
  +    throws WrongNumberArgsException
  +  {
  +    if(argNum < 1 && argNum > 2)
  +      throw new WrongNumberArgsException("2");
  +  }
   
   }