root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / config / generate / Option.java @ 29593
History | View | Annotate | Download (3.47 KB)
1 |
/*
|
---|---|
2 |
* This class was automatically generated with
|
3 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
|
4 |
* Schema.
|
5 |
* $Id$
|
6 |
*/
|
7 |
|
8 |
package org.gvsig.andami.config.generate; |
9 |
|
10 |
//---------------------------------/
|
11 |
//- Imported classes and packages -/
|
12 |
//---------------------------------/
|
13 |
|
14 |
import org.exolab.castor.xml.Marshaller; |
15 |
import org.exolab.castor.xml.Unmarshaller; |
16 |
|
17 |
/**
|
18 |
* Class Option.
|
19 |
*
|
20 |
* @version $Revision$ $Date$
|
21 |
*/
|
22 |
public class Option implements java.io.Serializable { |
23 |
|
24 |
|
25 |
//--------------------------/
|
26 |
//- Class/Member Variables -/
|
27 |
//--------------------------/
|
28 |
|
29 |
/**
|
30 |
* Field _name
|
31 |
*/
|
32 |
private java.lang.String _name;
|
33 |
|
34 |
/**
|
35 |
* Field _value
|
36 |
*/
|
37 |
private java.lang.String _value;
|
38 |
|
39 |
|
40 |
//----------------/
|
41 |
//- Constructors -/
|
42 |
//----------------/
|
43 |
|
44 |
public Option() { |
45 |
super();
|
46 |
} //-- com.iver.andami.config.generate.Option()
|
47 |
|
48 |
|
49 |
//-----------/
|
50 |
//- Methods -/
|
51 |
//-----------/
|
52 |
|
53 |
/**
|
54 |
* Returns the value of field 'name'.
|
55 |
*
|
56 |
* @return the value of field 'name'.
|
57 |
*/
|
58 |
public java.lang.String getName()
|
59 |
{ |
60 |
return this._name; |
61 |
} //-- java.lang.String getName()
|
62 |
|
63 |
/**
|
64 |
* Returns the value of field 'value'.
|
65 |
*
|
66 |
* @return the value of field 'value'.
|
67 |
*/
|
68 |
public java.lang.String getValue()
|
69 |
{ |
70 |
return this._value; |
71 |
} //-- java.lang.String getValue()
|
72 |
|
73 |
/**
|
74 |
* Method isValid
|
75 |
*/
|
76 |
public boolean isValid() |
77 |
{ |
78 |
try {
|
79 |
validate(); |
80 |
} |
81 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
82 |
return false; |
83 |
} |
84 |
return true; |
85 |
} //-- boolean isValid()
|
86 |
|
87 |
/**
|
88 |
* Method marshal
|
89 |
*
|
90 |
* @param out
|
91 |
*/
|
92 |
public void marshal(java.io.Writer out) |
93 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
94 |
{ |
95 |
|
96 |
Marshaller.marshal(this, out);
|
97 |
} //-- void marshal(java.io.Writer)
|
98 |
|
99 |
/**
|
100 |
* Method marshal
|
101 |
*
|
102 |
* @param handler
|
103 |
*/
|
104 |
public void marshal(org.xml.sax.ContentHandler handler) |
105 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
106 |
{ |
107 |
|
108 |
Marshaller.marshal(this, handler);
|
109 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
110 |
|
111 |
/**
|
112 |
* Sets the value of field 'name'.
|
113 |
*
|
114 |
* @param name the value of field 'name'.
|
115 |
*/
|
116 |
public void setName(java.lang.String name) |
117 |
{ |
118 |
this._name = name;
|
119 |
} //-- void setName(java.lang.String)
|
120 |
|
121 |
/**
|
122 |
* Sets the value of field 'value'.
|
123 |
*
|
124 |
* @param value the value of field 'value'.
|
125 |
*/
|
126 |
public void setValue(java.lang.String value) |
127 |
{ |
128 |
this._value = value;
|
129 |
} //-- void setValue(java.lang.String)
|
130 |
|
131 |
/**
|
132 |
* Method unmarshal
|
133 |
*
|
134 |
* @param reader
|
135 |
*/
|
136 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
137 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
138 |
{ |
139 |
return (org.gvsig.andami.config.generate.Option) Unmarshaller.unmarshal(org.gvsig.andami.config.generate.Option.class, reader);
|
140 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
141 |
|
142 |
/**
|
143 |
* Method validate
|
144 |
*/
|
145 |
public void validate() |
146 |
throws org.exolab.castor.xml.ValidationException
|
147 |
{ |
148 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
149 |
validator.validate(this);
|
150 |
} //-- void validate()
|
151 |
|
152 |
} |