Statistics
| Revision:

root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / config / generate / Andami.java @ 29593

History | View | Annotate | Download (3.33 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 29593 2009-06-29 15:54:31Z jpiera $
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 Andami.
19
 * 
20
 * @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (Mon, 29 Jun 2009) $
21
 */
22
public class Andami implements java.io.Serializable {
23

    
24

    
25
      //--------------------------/
26
     //- Class/Member Variables -/
27
    //--------------------------/
28

    
29
    /**
30
     * Field _update
31
     */
32
    private boolean _update;
33

    
34
    /**
35
     * keeps track of state for field: _update
36
     */
37
    private boolean _has_update;
38

    
39

    
40
      //----------------/
41
     //- Constructors -/
42
    //----------------/
43

    
44
    public Andami() {
45
        super();
46
    } //-- com.iver.andami.config.generate.Andami()
47

    
48

    
49
      //-----------/
50
     //- Methods -/
51
    //-----------/
52

    
53
    /**
54
     * Method deleteUpdate
55
     */
56
    public void deleteUpdate()
57
    {
58
        this._has_update= false;
59
    } //-- void deleteUpdate() 
60

    
61
    /**
62
     * Returns the value of field 'update'.
63
     * 
64
     * @return the value of field 'update'.
65
     */
66
    public boolean getUpdate()
67
    {
68
        return this._update;
69
    } //-- boolean getUpdate() 
70

    
71
    /**
72
     * Method hasUpdate
73
     */
74
    public boolean hasUpdate()
75
    {
76
        return this._has_update;
77
    } //-- boolean hasUpdate() 
78

    
79
    /**
80
     * Method isValid
81
     */
82
    public boolean isValid()
83
    {
84
        try {
85
            validate();
86
        }
87
        catch (org.exolab.castor.xml.ValidationException vex) {
88
            return false;
89
        }
90
        return true;
91
    } //-- boolean isValid() 
92

    
93
    /**
94
     * Method marshal
95
     * 
96
     * @param out
97
     */
98
    public void marshal(java.io.Writer out)
99
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
100
    {
101
        
102
        Marshaller.marshal(this, out);
103
    } //-- void marshal(java.io.Writer) 
104

    
105
    /**
106
     * Method marshal
107
     * 
108
     * @param handler
109
     */
110
    public void marshal(org.xml.sax.ContentHandler handler)
111
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
112
    {
113
        
114
        Marshaller.marshal(this, handler);
115
    } //-- void marshal(org.xml.sax.ContentHandler) 
116

    
117
    /**
118
     * Sets the value of field 'update'.
119
     * 
120
     * @param update the value of field 'update'.
121
     */
122
    public void setUpdate(boolean update)
123
    {
124
        this._update = update;
125
        this._has_update = true;
126
    } //-- void setUpdate(boolean) 
127

    
128
    /**
129
     * Method unmarshal
130
     * 
131
     * @param reader
132
     */
133
    public static java.lang.Object unmarshal(java.io.Reader reader)
134
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
135
    {
136
        return (org.gvsig.andami.config.generate.Andami) Unmarshaller.unmarshal(org.gvsig.andami.config.generate.Andami.class, reader);
137
    } //-- java.lang.Object unmarshal(java.io.Reader) 
138

    
139
    /**
140
     * Method validate
141
     */
142
    public void validate()
143
        throws org.exolab.castor.xml.ValidationException
144
    {
145
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
146
        validator.validate(this);
147
    } //-- void validate() 
148

    
149
}