home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Java / allaire / util / template / UCaseFunction.class (.txt) < prev   
Encoding:
Java Class File  |  1999-04-12  |  770 b   |  16 lines

  1. package allaire.util.template;
  2.  
  3. import allaire.util.TypelessValue;
  4. import netscape.util.Vector;
  5.  
  6. class UCaseFunction extends Function {
  7.    UCaseFunction() {
  8.       super(new FunctionInfo("UCase", 1, false, 1, -1, -1, -1));
  9.    }
  10.  
  11.    public TypelessValue doIt(Vector var1) throws FunctionCallException {
  12.       String var2 = ((Function)this).getArgumentAsString(var1, 0);
  13.       return new TypelessValue(var2.toUpperCase());
  14.    }
  15. }
  16.