KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > reportdefinitions > MetricProperty


1 /*
2  * This class was automatically generated with
3  * <a HREF="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
4  * Schema.
5  * $Id$
6  */

7
8 package com.calipso.reportgenerator.reportdefinitions;
9
10   //---------------------------------/
11
//- Imported classes and packages -/
12
//---------------------------------/
13

14 import java.io.IOException JavaDoc;
15 import java.io.Reader JavaDoc;
16 import java.io.Serializable JavaDoc;
17 import java.io.Writer JavaDoc;
18 import org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.Marshaller;
20 import org.exolab.castor.xml.Unmarshaller;
21 import org.exolab.castor.xml.ValidationException;
22 import org.xml.sax.ContentHandler JavaDoc;
23
24 /**
25  * Class MetricProperty.
26  *
27  * @version $Revision$ $Date$
28  */

29 public class MetricProperty implements java.io.Serializable JavaDoc {
30
31
32       //--------------------------/
33
//- Class/Member Variables -/
34
//--------------------------/
35

36     /**
37      * Field _metricName
38      */

39     private java.lang.String JavaDoc _metricName;
40
41     /**
42      * Field _visible
43      */

44     private boolean _visible = true;
45
46     /**
47      * keeps track of state for field: _visible
48      */

49     private boolean _has_visible;
50
51
52       //----------------/
53
//- Constructors -/
54
//----------------/
55

56     public MetricProperty() {
57         super();
58     } //-- com.calipso.reportgenerator.reportdefinitions.MetricProperty()
59

60
61       //-----------/
62
//- Methods -/
63
//-----------/
64

65     /**
66      * Method deleteVisible
67      */

68     public void deleteVisible()
69     {
70         this._has_visible= false;
71     } //-- void deleteVisible()
72

73     /**
74      * Method getMetricNameReturns the value of field 'metricName'.
75      *
76      * @return the value of field 'metricName'.
77      */

78     public java.lang.String JavaDoc getMetricName()
79     {
80         return this._metricName;
81     } //-- java.lang.String getMetricName()
82

83     /**
84      * Method getVisibleReturns the value of field 'visible'.
85      *
86      * @return the value of field 'visible'.
87      */

88     public boolean getVisible()
89     {
90         return this._visible;
91     } //-- boolean getVisible()
92

93     /**
94      * Method hasVisible
95      */

96     public boolean hasVisible()
97     {
98         return this._has_visible;
99     } //-- boolean hasVisible()
100

101     /**
102      * Method isValid
103      */

104     public boolean isValid()
105     {
106         try {
107             validate();
108         }
109         catch (org.exolab.castor.xml.ValidationException vex) {
110             return false;
111         }
112         return true;
113     } //-- boolean isValid()
114

115     /**
116      * Method marshal
117      *
118      * @param out
119      */

120     public void marshal(java.io.Writer JavaDoc out)
121         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
122     {
123         
124         Marshaller.marshal(this, out);
125     } //-- void marshal(java.io.Writer)
126

127     /**
128      * Method marshal
129      *
130      * @param handler
131      */

132     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
133         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
134     {
135         
136         Marshaller.marshal(this, handler);
137     } //-- void marshal(org.xml.sax.ContentHandler)
138

139     /**
140      * Method setMetricNameSets the value of field 'metricName'.
141      *
142      * @param metricName the value of field 'metricName'.
143      */

144     public void setMetricName(java.lang.String JavaDoc metricName)
145     {
146         this._metricName = metricName;
147     } //-- void setMetricName(java.lang.String)
148

149     /**
150      * Method setVisibleSets the value of field 'visible'.
151      *
152      * @param visible the value of field 'visible'.
153      */

154     public void setVisible(boolean visible)
155     {
156         this._visible = visible;
157         this._has_visible = true;
158     } //-- void setVisible(boolean)
159

160     /**
161      * Method unmarshal
162      *
163      * @param reader
164      */

165     public static com.calipso.reportgenerator.reportdefinitions.MetricProperty unmarshal(java.io.Reader JavaDoc reader)
166         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
167     {
168         return (com.calipso.reportgenerator.reportdefinitions.MetricProperty) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.MetricProperty.class, reader);
169     } //-- com.calipso.reportgenerator.reportdefinitions.MetricProperty unmarshal(java.io.Reader)
170

171     /**
172      * Method validate
173      */

174     public void validate()
175         throws org.exolab.castor.xml.ValidationException
176     {
177         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
178         validator.validate(this);
179     } //-- void validate()
180

181 }
182
Popular Tags