svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.framework / org.gvsig.andami / src / main / java / org / gvsig / andami / persistence / generate / Bookmarks.java @ 40596
History | View | Annotate | Download (4.22 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
/*
|
25 |
* This class was automatically generated with
|
26 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
|
27 |
* Schema.
|
28 |
* $Id: Bookmarks.java 29593 2009-06-29 15:54:31Z jpiera $
|
29 |
*/
|
30 |
|
31 |
package org.gvsig.andami.persistence.generate; |
32 |
|
33 |
//---------------------------------/
|
34 |
//- Imported classes and packages -/
|
35 |
//---------------------------------/
|
36 |
|
37 |
import org.exolab.castor.xml.Marshaller; |
38 |
import org.exolab.castor.xml.Unmarshaller; |
39 |
|
40 |
/**
|
41 |
* Class Bookmarks.
|
42 |
*
|
43 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $
|
44 |
*/
|
45 |
public class Bookmarks implements java.io.Serializable { |
46 |
|
47 |
|
48 |
//--------------------------/
|
49 |
//- Class/Member Variables -/
|
50 |
//--------------------------/
|
51 |
|
52 |
/**
|
53 |
* Field _bookmark
|
54 |
*/
|
55 |
private org.gvsig.andami.persistence.generate.Bookmark _bookmark;
|
56 |
|
57 |
|
58 |
//----------------/
|
59 |
//- Constructors -/
|
60 |
//----------------/
|
61 |
|
62 |
public Bookmarks() {
|
63 |
super();
|
64 |
} //-- com.iver.andami.persistence.generate.Bookmarks()
|
65 |
|
66 |
|
67 |
//-----------/
|
68 |
//- Methods -/
|
69 |
//-----------/
|
70 |
|
71 |
/**
|
72 |
* Returns the value of field 'bookmark'.
|
73 |
*
|
74 |
* @return the value of field 'bookmark'.
|
75 |
*/
|
76 |
public org.gvsig.andami.persistence.generate.Bookmark getBookmark()
|
77 |
{ |
78 |
return this._bookmark; |
79 |
} //-- com.iver.andami.persistence.generate.Bookmark getBookmark()
|
80 |
|
81 |
/**
|
82 |
* Method isValid
|
83 |
*/
|
84 |
public boolean isValid() |
85 |
{ |
86 |
try {
|
87 |
validate(); |
88 |
} |
89 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
90 |
return false; |
91 |
} |
92 |
return true; |
93 |
} //-- boolean isValid()
|
94 |
|
95 |
/**
|
96 |
* Method marshal
|
97 |
*
|
98 |
* @param out
|
99 |
*/
|
100 |
public void marshal(java.io.Writer out) |
101 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
102 |
{ |
103 |
|
104 |
Marshaller.marshal(this, out);
|
105 |
} //-- void marshal(java.io.Writer)
|
106 |
|
107 |
/**
|
108 |
* Method marshal
|
109 |
*
|
110 |
* @param handler
|
111 |
*/
|
112 |
public void marshal(org.xml.sax.ContentHandler handler) |
113 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
114 |
{ |
115 |
|
116 |
Marshaller.marshal(this, handler);
|
117 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
118 |
|
119 |
/**
|
120 |
* Sets the value of field 'bookmark'.
|
121 |
*
|
122 |
* @param bookmark the value of field 'bookmark'.
|
123 |
*/
|
124 |
public void setBookmark(org.gvsig.andami.persistence.generate.Bookmark bookmark) |
125 |
{ |
126 |
this._bookmark = bookmark;
|
127 |
} //-- void setBookmark(com.iver.andami.persistence.generate.Bookmark)
|
128 |
|
129 |
/**
|
130 |
* Method unmarshal
|
131 |
*
|
132 |
* @param reader
|
133 |
*/
|
134 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
135 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
136 |
{ |
137 |
return (org.gvsig.andami.persistence.generate.Bookmarks) Unmarshaller.unmarshal(org.gvsig.andami.persistence.generate.Bookmarks.class, reader);
|
138 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
139 |
|
140 |
/**
|
141 |
* Method validate
|
142 |
*/
|
143 |
public void validate() |
144 |
throws org.exolab.castor.xml.ValidationException
|
145 |
{ |
146 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
147 |
validator.validate(this);
|
148 |
} //-- void validate()
|
149 |
|
150 |
} |