01: /*
02: * This file or a portion of this file is licensed under the terms of
03: * the Globus Toolkit Public License, found in file ../GTPL, or at
04: * http://www.globus.org/toolkit/download/license.html. This notice must
05: * appear in redistributions of this file, with or without modification.
06: *
07: * Redistributions of this Software, with or without modification, must
08: * reproduce the GTPL in: (1) the Software, or (2) the Documentation or
09: * some other similar material which is provided with the Software (if
10: * any).
11: *
12: * Copyright 1999-2004 University of Chicago and The University of
13: * Southern California. All rights reserved.
14: */
15: package org.griphyn.vdl.classes;
16:
17: import org.griphyn.vdl.classes.*;
18: import java.util.*;
19: import java.io.Serializable;
20:
21: /**
22: * <code>Leaf</code> is an abstract base class for leaf nodes in the
23: * instance tree. FIXME: The content value is actually handled in the
24: * child classes, and needs to be unified into this class.
25: *
26: * @author Jens-S. Vöckler
27: * @author Yong Zhao
28: * @version $Revision: 50 $
29: *
30: * @see Text
31: * @see Use
32: * @see LFN
33: */
34: public abstract class Leaf extends VDL implements Cloneable,
35: Serializable {
36: /**
37: * Creates and returns a copy of this object.
38: * @return a new instance.
39: */
40: public abstract Object clone();
41:
42: /**
43: * This is the name for a value element.
44: * @deprecated Originally we thought to employ this value, but it is
45: * currently unused.
46: */
47: transient private String m_value;
48:
49: /**
50: * Accessor method. Obtains the current state of the thus named attribute.
51: *
52: * @return the current state of the m_name attribute.
53: * @see #setValue(String)
54: * @deprecated the attribute is currently unused.
55: */
56: public String getValue() {
57: return this .m_value;
58: }
59:
60: /**
61: * Accessor method. Sets the attribute of same name to a new value.
62: *
63: * @param value is the new value to overwrite the current state with.
64: * @see #getValue()
65: * @deprecated the name attribute is currently unused.
66: */
67: public void setValue(String value) {
68: this.m_value = value;
69: }
70: }
|