source: release-kits/wirk3/ant-scripts/tasks/antelope/src/ise/antelope/tasks/typedefs/string/Length.java@ 15023

Last change on this file since 15023 was 15023, checked in by oranfry, 16 years ago

did the bulk of the work on wirk3

File size: 348 bytes
Line 
1package ise.antelope.tasks.typedefs.string;
2
3/**
4 * Copyright 2003
5 *
6 * @version $Revision: 1.1 $
7 */
8public class Length implements StringOp {
9
10 public String execute(String s) {
11 if (s == null)
12 throw new IllegalArgumentException("string cannot be null");
13 return String.valueOf(s.length());
14
15 }
16}
17
18
Note: See TracBrowser for help on using the repository browser.