svn-gvsig-desktop / trunk / frameworks / _fwAndami / src / com / iver / andami / config / generate / Andami.java @ 11032
History | View | Annotate | Download (3.56 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: Andami.java 11032 2007-04-03 16:44:23Z cesar $
|
6 |
*/
|
7 |
|
8 |
package com.iver.andami.config.generate; |
9 |
|
10 |
//---------------------------------/
|
11 |
//- Imported classes and packages -/
|
12 |
//---------------------------------/
|
13 |
|
14 |
import java.io.IOException; |
15 |
import java.io.Reader; |
16 |
import java.io.Serializable; |
17 |
import java.io.Writer; |
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; |
23 |
|
24 |
/**
|
25 |
* Class Andami.
|
26 |
*
|
27 |
* @version $Revision: 11032 $ $Date: 2007-04-03 18:44:23 +0200 (Tue, 03 Apr 2007) $
|
28 |
*/
|
29 |
public class Andami implements java.io.Serializable { |
30 |
|
31 |
|
32 |
//--------------------------/
|
33 |
//- Class/Member Variables -/
|
34 |
//--------------------------/
|
35 |
|
36 |
/**
|
37 |
* Field _update
|
38 |
*/
|
39 |
private boolean _update; |
40 |
|
41 |
/**
|
42 |
* keeps track of state for field: _update
|
43 |
*/
|
44 |
private boolean _has_update; |
45 |
|
46 |
|
47 |
//----------------/
|
48 |
//- Constructors -/
|
49 |
//----------------/
|
50 |
|
51 |
public Andami() {
|
52 |
super();
|
53 |
} //-- com.iver.andami.config.generate.Andami()
|
54 |
|
55 |
|
56 |
//-----------/
|
57 |
//- Methods -/
|
58 |
//-----------/
|
59 |
|
60 |
/**
|
61 |
* Method deleteUpdate
|
62 |
*/
|
63 |
public void deleteUpdate() |
64 |
{ |
65 |
this._has_update= false; |
66 |
} //-- void deleteUpdate()
|
67 |
|
68 |
/**
|
69 |
* Returns the value of field 'update'.
|
70 |
*
|
71 |
* @return the value of field 'update'.
|
72 |
*/
|
73 |
public boolean getUpdate() |
74 |
{ |
75 |
return this._update; |
76 |
} //-- boolean getUpdate()
|
77 |
|
78 |
/**
|
79 |
* Method hasUpdate
|
80 |
*/
|
81 |
public boolean hasUpdate() |
82 |
{ |
83 |
return this._has_update; |
84 |
} //-- boolean hasUpdate()
|
85 |
|
86 |
/**
|
87 |
* Method isValid
|
88 |
*/
|
89 |
public boolean isValid() |
90 |
{ |
91 |
try {
|
92 |
validate(); |
93 |
} |
94 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
95 |
return false; |
96 |
} |
97 |
return true; |
98 |
} //-- boolean isValid()
|
99 |
|
100 |
/**
|
101 |
* Method marshal
|
102 |
*
|
103 |
* @param out
|
104 |
*/
|
105 |
public void marshal(java.io.Writer out) |
106 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
107 |
{ |
108 |
|
109 |
Marshaller.marshal(this, out);
|
110 |
} //-- void marshal(java.io.Writer)
|
111 |
|
112 |
/**
|
113 |
* Method marshal
|
114 |
*
|
115 |
* @param handler
|
116 |
*/
|
117 |
public void marshal(org.xml.sax.ContentHandler handler) |
118 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
119 |
{ |
120 |
|
121 |
Marshaller.marshal(this, handler);
|
122 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
123 |
|
124 |
/**
|
125 |
* Sets the value of field 'update'.
|
126 |
*
|
127 |
* @param update the value of field 'update'.
|
128 |
*/
|
129 |
public void setUpdate(boolean update) |
130 |
{ |
131 |
this._update = update;
|
132 |
this._has_update = true; |
133 |
} //-- void setUpdate(boolean)
|
134 |
|
135 |
/**
|
136 |
* Method unmarshal
|
137 |
*
|
138 |
* @param reader
|
139 |
*/
|
140 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
141 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
142 |
{ |
143 |
return (com.iver.andami.config.generate.Andami) Unmarshaller.unmarshal(com.iver.andami.config.generate.Andami.class, reader);
|
144 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
145 |
|
146 |
/**
|
147 |
* Method validate
|
148 |
*/
|
149 |
public void validate() |
150 |
throws org.exolab.castor.xml.ValidationException
|
151 |
{ |
152 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
153 |
validator.validate(this);
|
154 |
} //-- void validate()
|
155 |
|
156 |
} |