KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > csdl > jblanket > util > XmlLabel


1 package csdl.jblanket.util;
2
3 /**
4  * Provides constant values used by JBlanket.
5  *
6  * @author Joy M. Agustin
7  * @version $Id: XmlLabel.java,v 1.1 2004/11/07 00:32:24 timshadel Exp $
8  */

9 public final class XmlLabel {
10
11   /** Name of label */
12   private String JavaDoc label;
13
14   /** "MethodSets" element name */
15   public static final XmlLabel METHODSETS = new XmlLabel("MethodSets");
16   /** "MethodSet" element name */
17   public static final XmlLabel METHODSET = new XmlLabel("MethodSet");
18   /** "Methods" element name */
19   public static final XmlLabel METHODS = new XmlLabel("Methods");
20   /** "Method" element name */
21   public static final XmlLabel METHOD = new XmlLabel("Method");
22   /** "Parameter" element name */
23   public static final XmlLabel PARAMETER = new XmlLabel("Parameter");
24
25   /** "name" attribute name */
26   public static final XmlLabel NAME_ATTRIBUTE = new XmlLabel("name");
27   /** "package" attribute name */
28   public static final XmlLabel PACKAGE_ATTRIBUTE = new XmlLabel("package");
29   /** "size" attribute name */
30   public static final XmlLabel SIZE_ATTRIBUTE = new XmlLabel("size");
31   /** "timestamp" attribute name */
32   public static final XmlLabel TIMESTAMP_ATTRIBUTE = new XmlLabel("timestamp");
33   /** "value" attribute name */
34   public static final XmlLabel VALUE_ATTRIBUTE = new XmlLabel("value");
35   /** "class" attribute name */
36   public static final XmlLabel CLASS_ATTRIBUTE = new XmlLabel("class");
37   /** "method" attribute name */
38   public static final XmlLabel METHOD_ATTRIBUTE = new XmlLabel("method");
39   /** "type" attribute name */
40   public static final XmlLabel TYPE_ATTRIBUTE = new XmlLabel("type");
41
42   /** Tab used to format output */
43   public static final XmlLabel TAB = new XmlLabel(" ");
44
45   /**
46    * Constructs a new XmlLabel instance.
47    *
48    * @param label the name of the label.
49    */

50   private XmlLabel(String JavaDoc label) {
51     this.label = label;
52   }
53   
54   /**
55    * Returns a String representation of this XmlLabel.
56    *
57    * @return String representation of this DefaultFileName.
58    */

59
60   public String JavaDoc toString() {
61     return this.label;
62   }
63 }
64
Popular Tags