svn-gvsig-desktop / trunk / libraries / libWMSv0 / src / com / iver / wmsclient / wms_1_1_1 / capabilities / KeywordListDescriptor.java @ 150
History | View | Annotate | Download (4.65 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: KeywordListDescriptor.java 150 2004-09-23 09:35:29Z fernando $
|
6 |
*/
|
7 |
|
8 |
package com.iver.wmsclient.wms_1_1_1.capabilities; |
9 |
|
10 |
//---------------------------------/
|
11 |
//- Imported classes and packages -/
|
12 |
//---------------------------------/
|
13 |
|
14 |
|
15 |
/**
|
16 |
* Class KeywordListDescriptor.
|
17 |
*
|
18 |
* @version $Revision: 150 $ $Date: 2004-09-23 11:35:29 +0200 (Thu, 23 Sep 2004) $
|
19 |
*/
|
20 |
public class KeywordListDescriptor 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 KeywordListDescriptor() {
|
53 |
super();
|
54 |
xmlName = "KeywordList";
|
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 |
//-- _keywordList
|
66 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.wmsclient.wms_1_1_1.capabilities.Keyword.class, "_keywordList", "Keyword", 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 |
KeywordList target = (KeywordList) object; |
72 |
return target.getKeyword();
|
73 |
} |
74 |
public void setValue( java.lang.Object object, java.lang.Object value) |
75 |
throws IllegalStateException, IllegalArgumentException |
76 |
{ |
77 |
try {
|
78 |
KeywordList target = (KeywordList) object; |
79 |
target.addKeyword( (com.iver.wmsclient.wms_1_1_1.capabilities.Keyword) 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_1.capabilities.Keyword(); |
87 |
} |
88 |
} ); |
89 |
desc.setHandler(handler); |
90 |
desc.setMultivalued(true);
|
91 |
addFieldDescriptor(desc); |
92 |
|
93 |
//-- validation code for: _keywordList
|
94 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
95 |
fieldValidator.setMinOccurs(0);
|
96 |
{ //-- local scope
|
97 |
} |
98 |
desc.setValidator(fieldValidator); |
99 |
} //-- com.iver.wmsclient.wms_1_1_1.capabilities.KeywordListDescriptor()
|
100 |
|
101 |
|
102 |
//-----------/
|
103 |
//- Methods -/
|
104 |
//-----------/
|
105 |
|
106 |
/**
|
107 |
* Method getAccessMode
|
108 |
*/
|
109 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
110 |
{ |
111 |
return null; |
112 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
113 |
|
114 |
/**
|
115 |
* Method getExtends
|
116 |
*/
|
117 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
118 |
{ |
119 |
return null; |
120 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
121 |
|
122 |
/**
|
123 |
* Method getIdentity
|
124 |
*/
|
125 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
126 |
{ |
127 |
return identity;
|
128 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
129 |
|
130 |
/**
|
131 |
* Method getJavaClass
|
132 |
*/
|
133 |
public java.lang.Class getJavaClass()
|
134 |
{ |
135 |
return com.iver.wmsclient.wms_1_1_1.capabilities.KeywordList.class;
|
136 |
} //-- java.lang.Class getJavaClass()
|
137 |
|
138 |
/**
|
139 |
* Method getNameSpacePrefix
|
140 |
*/
|
141 |
public java.lang.String getNameSpacePrefix()
|
142 |
{ |
143 |
return nsPrefix;
|
144 |
} //-- java.lang.String getNameSpacePrefix()
|
145 |
|
146 |
/**
|
147 |
* Method getNameSpaceURI
|
148 |
*/
|
149 |
public java.lang.String getNameSpaceURI()
|
150 |
{ |
151 |
return nsURI;
|
152 |
} //-- java.lang.String getNameSpaceURI()
|
153 |
|
154 |
/**
|
155 |
* Method getValidator
|
156 |
*/
|
157 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
158 |
{ |
159 |
return this; |
160 |
} //-- org.exolab.castor.xml.TypeValidator getValidator()
|
161 |
|
162 |
/**
|
163 |
* Method getXMLName
|
164 |
*/
|
165 |
public java.lang.String getXMLName()
|
166 |
{ |
167 |
return xmlName;
|
168 |
} //-- java.lang.String getXMLName()
|
169 |
|
170 |
} |