svn-gvsig-desktop / trunk / libraries / libWMSv0 / src / com / iver / wmsclient / wms_1_1_0 / capabilities / DataURLDescriptor.java @ 150
History | View | Annotate | Download (6.24 KB)
1 | 150 | fernando | /*
|
---|---|---|---|
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 com.iver.wmsclient.wms_1_1_0.capabilities; |
||
9 | |||
10 | //---------------------------------/
|
||
11 | //- Imported classes and packages -/
|
||
12 | //---------------------------------/
|
||
13 | |||
14 | |||
15 | /**
|
||
16 | * Class DataURLDescriptor.
|
||
17 | *
|
||
18 | * @version $Revision$ $Date$
|
||
19 | */
|
||
20 | public class DataURLDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { |
||
21 | |||
22 | |||
23 | //--------------------------/
|
||
24 | //- Class/Member Variables -/
|
||
25 | //--------------------------/
|
||
26 | |||
27 | /**
|
||
28 | * Field nsPrefix
|
||
29 | */
|
||
30 | private java.lang.String nsPrefix;
|
||
31 | |||
32 | /**
|
||
33 | * Field nsURI
|
||
34 | */
|
||
35 | private java.lang.String nsURI;
|
||
36 | |||
37 | /**
|
||
38 | * Field xmlName
|
||
39 | */
|
||
40 | private java.lang.String xmlName;
|
||
41 | |||
42 | /**
|
||
43 | * Field identity
|
||
44 | */
|
||
45 | private org.exolab.castor.xml.XMLFieldDescriptor identity;
|
||
46 | |||
47 | |||
48 | //----------------/
|
||
49 | //- Constructors -/
|
||
50 | //----------------/
|
||
51 | |||
52 | public DataURLDescriptor() {
|
||
53 | super();
|
||
54 | xmlName = "DataURL";
|
||
55 | |||
56 | //-- set grouping compositor
|
||
57 | setCompositorAsSequence(); |
||
58 | org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
|
||
59 | org.exolab.castor.xml.XMLFieldHandler handler = null;
|
||
60 | org.exolab.castor.xml.FieldValidator fieldValidator = null;
|
||
61 | //-- initialize attribute descriptors
|
||
62 | |||
63 | //-- initialize element descriptors
|
||
64 | |||
65 | //-- _format
|
||
66 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.wmsclient.wms_1_1_0.capabilities.Format.class, "_format", "Format", org.exolab.castor.xml.NodeType.Element); |
||
67 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
68 | public java.lang.Object getValue( java.lang.Object object )
|
||
69 | throws IllegalStateException |
||
70 | { |
||
71 | DataURL target = (DataURL) object; |
||
72 | return target.getFormat();
|
||
73 | } |
||
74 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
75 | throws IllegalStateException, IllegalArgumentException |
||
76 | { |
||
77 | try {
|
||
78 | DataURL target = (DataURL) object; |
||
79 | target.setFormat( (com.iver.wmsclient.wms_1_1_0.capabilities.Format) value); |
||
80 | } |
||
81 | catch (java.lang.Exception ex) {
|
||
82 | throw new IllegalStateException(ex.toString()); |
||
83 | } |
||
84 | } |
||
85 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
86 | return new com.iver.wmsclient.wms_1_1_0.capabilities.Format(); |
||
87 | } |
||
88 | } ); |
||
89 | desc.setHandler(handler); |
||
90 | desc.setRequired(true);
|
||
91 | desc.setMultivalued(false);
|
||
92 | addFieldDescriptor(desc); |
||
93 | |||
94 | //-- validation code for: _format
|
||
95 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
96 | fieldValidator.setMinOccurs(1);
|
||
97 | { //-- local scope
|
||
98 | } |
||
99 | desc.setValidator(fieldValidator); |
||
100 | //-- _onlineResource
|
||
101 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.wmsclient.wms_1_1_0.capabilities.OnlineResource.class, "_onlineResource", "OnlineResource", org.exolab.castor.xml.NodeType.Element); |
||
102 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
103 | public java.lang.Object getValue( java.lang.Object object )
|
||
104 | throws IllegalStateException |
||
105 | { |
||
106 | DataURL target = (DataURL) object; |
||
107 | return target.getOnlineResource();
|
||
108 | } |
||
109 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
110 | throws IllegalStateException, IllegalArgumentException |
||
111 | { |
||
112 | try {
|
||
113 | DataURL target = (DataURL) object; |
||
114 | target.setOnlineResource( (com.iver.wmsclient.wms_1_1_0.capabilities.OnlineResource) value); |
||
115 | } |
||
116 | catch (java.lang.Exception ex) {
|
||
117 | throw new IllegalStateException(ex.toString()); |
||
118 | } |
||
119 | } |
||
120 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
121 | return new com.iver.wmsclient.wms_1_1_0.capabilities.OnlineResource(); |
||
122 | } |
||
123 | } ); |
||
124 | desc.setHandler(handler); |
||
125 | desc.setRequired(true);
|
||
126 | desc.setMultivalued(false);
|
||
127 | addFieldDescriptor(desc); |
||
128 | |||
129 | //-- validation code for: _onlineResource
|
||
130 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
131 | fieldValidator.setMinOccurs(1);
|
||
132 | { //-- local scope
|
||
133 | } |
||
134 | desc.setValidator(fieldValidator); |
||
135 | } //-- com.iver.wmsclient.wms_1_1_0.capabilities.DataURLDescriptor()
|
||
136 | |||
137 | |||
138 | //-----------/
|
||
139 | //- Methods -/
|
||
140 | //-----------/
|
||
141 | |||
142 | /**
|
||
143 | * Method getAccessMode
|
||
144 | */
|
||
145 | public org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
146 | { |
||
147 | return null; |
||
148 | } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
149 | |||
150 | /**
|
||
151 | * Method getExtends
|
||
152 | */
|
||
153 | public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
154 | { |
||
155 | return null; |
||
156 | } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
157 | |||
158 | /**
|
||
159 | * Method getIdentity
|
||
160 | */
|
||
161 | public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
162 | { |
||
163 | return identity;
|
||
164 | } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
165 | |||
166 | /**
|
||
167 | * Method getJavaClass
|
||
168 | */
|
||
169 | public java.lang.Class getJavaClass()
|
||
170 | { |
||
171 | return com.iver.wmsclient.wms_1_1_0.capabilities.DataURL.class;
|
||
172 | } //-- java.lang.Class getJavaClass()
|
||
173 | |||
174 | /**
|
||
175 | * Method getNameSpacePrefix
|
||
176 | */
|
||
177 | public java.lang.String getNameSpacePrefix()
|
||
178 | { |
||
179 | return nsPrefix;
|
||
180 | } //-- java.lang.String getNameSpacePrefix()
|
||
181 | |||
182 | /**
|
||
183 | * Method getNameSpaceURI
|
||
184 | */
|
||
185 | public java.lang.String getNameSpaceURI()
|
||
186 | { |
||
187 | return nsURI;
|
||
188 | } //-- java.lang.String getNameSpaceURI()
|
||
189 | |||
190 | /**
|
||
191 | * Method getValidator
|
||
192 | */
|
||
193 | public org.exolab.castor.xml.TypeValidator getValidator()
|
||
194 | { |
||
195 | return this; |
||
196 | } //-- org.exolab.castor.xml.TypeValidator getValidator()
|
||
197 | |||
198 | /**
|
||
199 | * Method getXMLName
|
||
200 | */
|
||
201 | public java.lang.String getXMLName()
|
||
202 | { |
||
203 | return xmlName;
|
||
204 | } //-- java.lang.String getXMLName()
|
||
205 | |||
206 | } |