01: package csdl.jblanket.util;
02:
03: /**
04: * Provides constant values used by JBlanket.
05: *
06: * @author Joy M. Agustin
07: * @version $Id: XmlLabel.java,v 1.1 2004/11/07 00:32:24 timshadel Exp $
08: */
09: public final class XmlLabel {
10:
11: /** Name of label */
12: private String 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(
29: "package");
30: /** "size" attribute name */
31: public static final XmlLabel SIZE_ATTRIBUTE = new XmlLabel("size");
32: /** "timestamp" attribute name */
33: public static final XmlLabel TIMESTAMP_ATTRIBUTE = new XmlLabel(
34: "timestamp");
35: /** "value" attribute name */
36: public static final XmlLabel VALUE_ATTRIBUTE = new XmlLabel("value");
37: /** "class" attribute name */
38: public static final XmlLabel CLASS_ATTRIBUTE = new XmlLabel("class");
39: /** "method" attribute name */
40: public static final XmlLabel METHOD_ATTRIBUTE = new XmlLabel(
41: "method");
42: /** "type" attribute name */
43: public static final XmlLabel TYPE_ATTRIBUTE = new XmlLabel("type");
44:
45: /** Tab used to format output */
46: public static final XmlLabel TAB = new XmlLabel(" ");
47:
48: /**
49: * Constructs a new XmlLabel instance.
50: *
51: * @param label the name of the label.
52: */
53: private XmlLabel(String label) {
54: this .label = label;
55: }
56:
57: /**
58: * Returns a String representation of this XmlLabel.
59: *
60: * @return String representation of this DefaultFileName.
61: */
62:
63: public String toString() {
64: return this.label;
65: }
66: }
|