View Javadoc

1   package net.sf.tomp.xtcl.command;
2   
3   /***
4    * Label, marker, just has a name
5    * 
6    * @author tomp
7    */
8   public class Label extends AbstractCommand {
9   	
10      /*** the label name */
11      protected String name;
12  
13      /***
14       * sets the label name
15       * 
16       * @param n the label name
17       */
18      public void setName(String n) {
19          name = n;
20      }
21  
22      /***
23       * @return "LABEL " + name;
24       */
25      public String toString() {
26          return "LABEL " + name;
27      }
28  }
29  
30  /*
31   * The contents of this file are subject to the Mozilla Public License Version
32   * 1.1 (the "License"); you may not use this file except in compliance with the
33   * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
34   * Software distributed under the License is distributed on an "AS IS" basis,
35   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
36   * the specific language governing rights and limitations under the License. The
37   * Original Code is: all this file. The Initial Developer of the Original Code
38   * is: Tomas Pitner, Masaryk University in Brno, Czech Republic. Contributor(s):
39   */