KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > servlet > http > jsp > tagext > tree > IndentedObject


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.servlet.http.jsp.tagext.tree;
8
9
10 /**
11  * Description of the Class
12  *
13  * @author Laurent Etiemble
14  * @version $Revision: 1.1 $
15  */

16 public class IndentedObject
17 {
18    /** Description of the Field */
19    protected String JavaDoc depth = null;
20    /** Description of the Field */
21    protected boolean last = false;
22    /** Description of the Field */
23    protected Object JavaDoc o = null;
24
25
26    /** Constructor for the IndentedObject object */
27    public IndentedObject() { }
28
29
30    /**
31     * Gets the depth attribute of the IndentedObject object
32     *
33     * @return The depth value
34     */

35    public String JavaDoc getDepth()
36    {
37       return this.depth;
38    }
39
40
41    /**
42     * Gets the object attribute of the IndentedObject object
43     *
44     * @return The object value
45     */

46    public Object JavaDoc getObject()
47    {
48       return this.o;
49    }
50
51
52    /**
53     * Gets the last attribute of the IndentedObject object
54     *
55     * @return The last value
56     */

57    public boolean isLast()
58    {
59       return this.last;
60    }
61
62
63    /**
64     * Sets the depth attribute of the IndentedObject object
65     *
66     * @param depth The new depth value
67     */

68    public void setDepth(String JavaDoc depth)
69    {
70       this.depth = depth;
71    }
72
73
74    /**
75     * Sets the last attribute of the IndentedObject object
76     *
77     * @param last The new last value
78     */

79    public void setLast(boolean last)
80    {
81       this.last = last;
82    }
83
84
85    /**
86     * Sets the object attribute of the IndentedObject object
87     *
88     * @param o The new object value
89     */

90    public void setObject(Object JavaDoc o)
91    {
92       this.o = o;
93    }
94
95
96    /**
97     * Description of the Method
98     *
99     * @return Description of the Return Value
100     */

101    public String JavaDoc toString()
102    {
103       return "D=" + depth + " L=" + last + " O=" + o;
104    }
105 }
106
Popular Tags