root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / persistence / generate / Bookmarks.java @ 29593
History | View | Annotate | Download (4.37 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: Bookmarks.java 29593 2009-06-29 15:54:31Z jpiera $
|
6 |
*/
|
7 |
|
8 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
9 |
*
|
10 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
11 |
*
|
12 |
* This program is free software; you can redistribute it and/or
|
13 |
* modify it under the terms of the GNU General Public License
|
14 |
* as published by the Free Software Foundation; either version 2
|
15 |
* of the License, or (at your option) any later version.
|
16 |
*
|
17 |
* This program is distributed in the hope that it will be useful,
|
18 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
* GNU General Public License for more details.
|
21 |
*
|
22 |
* You should have received a copy of the GNU General Public License
|
23 |
* along with this program; if not, write to the Free Software
|
24 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
25 |
*
|
26 |
* For more information, contact:
|
27 |
*
|
28 |
* Generalitat Valenciana
|
29 |
* Conselleria d'Infraestructures i Transport
|
30 |
* Av. Blasco Ib??ez, 50
|
31 |
* 46010 VALENCIA
|
32 |
* SPAIN
|
33 |
*
|
34 |
* +34 963862235
|
35 |
* gvsig@gva.es
|
36 |
* www.gvsig.gva.es
|
37 |
*
|
38 |
* or
|
39 |
*
|
40 |
* IVER T.I. S.A
|
41 |
* Salamanca 50
|
42 |
* 46005 Valencia
|
43 |
* Spain
|
44 |
*
|
45 |
* +34 963163400
|
46 |
* dac@iver.es
|
47 |
*/
|
48 |
package org.gvsig.andami.persistence.generate; |
49 |
|
50 |
//---------------------------------/
|
51 |
//- Imported classes and packages -/
|
52 |
//---------------------------------/
|
53 |
|
54 |
import org.exolab.castor.xml.Marshaller; |
55 |
import org.exolab.castor.xml.Unmarshaller; |
56 |
|
57 |
/**
|
58 |
* Class Bookmarks.
|
59 |
*
|
60 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (Mon, 29 Jun 2009) $
|
61 |
*/
|
62 |
public class Bookmarks implements java.io.Serializable { |
63 |
|
64 |
|
65 |
//--------------------------/
|
66 |
//- Class/Member Variables -/
|
67 |
//--------------------------/
|
68 |
|
69 |
/**
|
70 |
* Field _bookmark
|
71 |
*/
|
72 |
private org.gvsig.andami.persistence.generate.Bookmark _bookmark;
|
73 |
|
74 |
|
75 |
//----------------/
|
76 |
//- Constructors -/
|
77 |
//----------------/
|
78 |
|
79 |
public Bookmarks() {
|
80 |
super();
|
81 |
} //-- com.iver.andami.persistence.generate.Bookmarks()
|
82 |
|
83 |
|
84 |
//-----------/
|
85 |
//- Methods -/
|
86 |
//-----------/
|
87 |
|
88 |
/**
|
89 |
* Returns the value of field 'bookmark'.
|
90 |
*
|
91 |
* @return the value of field 'bookmark'.
|
92 |
*/
|
93 |
public org.gvsig.andami.persistence.generate.Bookmark getBookmark()
|
94 |
{ |
95 |
return this._bookmark; |
96 |
} //-- com.iver.andami.persistence.generate.Bookmark getBookmark()
|
97 |
|
98 |
/**
|
99 |
* Method isValid
|
100 |
*/
|
101 |
public boolean isValid() |
102 |
{ |
103 |
try {
|
104 |
validate(); |
105 |
} |
106 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
107 |
return false; |
108 |
} |
109 |
return true; |
110 |
} //-- boolean isValid()
|
111 |
|
112 |
/**
|
113 |
* Method marshal
|
114 |
*
|
115 |
* @param out
|
116 |
*/
|
117 |
public void marshal(java.io.Writer out) |
118 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
119 |
{ |
120 |
|
121 |
Marshaller.marshal(this, out);
|
122 |
} //-- void marshal(java.io.Writer)
|
123 |
|
124 |
/**
|
125 |
* Method marshal
|
126 |
*
|
127 |
* @param handler
|
128 |
*/
|
129 |
public void marshal(org.xml.sax.ContentHandler handler) |
130 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
131 |
{ |
132 |
|
133 |
Marshaller.marshal(this, handler);
|
134 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
135 |
|
136 |
/**
|
137 |
* Sets the value of field 'bookmark'.
|
138 |
*
|
139 |
* @param bookmark the value of field 'bookmark'.
|
140 |
*/
|
141 |
public void setBookmark(org.gvsig.andami.persistence.generate.Bookmark bookmark) |
142 |
{ |
143 |
this._bookmark = bookmark;
|
144 |
} //-- void setBookmark(com.iver.andami.persistence.generate.Bookmark)
|
145 |
|
146 |
/**
|
147 |
* Method unmarshal
|
148 |
*
|
149 |
* @param reader
|
150 |
*/
|
151 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
152 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
153 |
{ |
154 |
return (org.gvsig.andami.persistence.generate.Bookmarks) Unmarshaller.unmarshal(org.gvsig.andami.persistence.generate.Bookmarks.class, reader);
|
155 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
156 |
|
157 |
/**
|
158 |
* Method validate
|
159 |
*/
|
160 |
public void validate() |
161 |
throws org.exolab.castor.xml.ValidationException
|
162 |
{ |
163 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
164 |
validator.validate(this);
|
165 |
} //-- void validate()
|
166 |
|
167 |
} |