1
2
3
4
5
6
7
8 package org.hardcode.juf.update;
9
10
11
12
13
14 import org.exolab.castor.mapping.AccessMode;
15 import org.exolab.castor.xml.TypeValidator;
16 import org.exolab.castor.xml.XMLFieldDescriptor;
17 import org.exolab.castor.xml.validators.*;
18
19 /***
20 * Class FeatureDescriptor.
21 *
22 * @version $Revision$ $Date$
23 */
24 public class FeatureDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
25
26
27
28
29
30
31 /***
32 * Field nsPrefix
33 */
34 private java.lang.String nsPrefix;
35
36 /***
37 * Field nsURI
38 */
39 private java.lang.String nsURI;
40
41 /***
42 * Field xmlName
43 */
44 private java.lang.String xmlName;
45
46 /***
47 * Field identity
48 */
49 private org.exolab.castor.xml.XMLFieldDescriptor identity;
50
51
52
53
54
55
56 public FeatureDescriptor() {
57 super();
58 xmlName = "feature";
59 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
60 org.exolab.castor.xml.XMLFieldHandler handler = null;
61 org.exolab.castor.xml.FieldValidator fieldValidator = null;
62
63 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
64 desc.setImmutable(true);
65 handler = (new org.exolab.castor.xml.XMLFieldHandler() {
66 public java.lang.Object getValue( java.lang.Object object )
67 throws IllegalStateException
68 {
69 Feature target = (Feature) object;
70 return target.getContent();
71 }
72 public void setValue( java.lang.Object object, java.lang.Object value)
73 throws IllegalStateException, IllegalArgumentException
74 {
75 try {
76 Feature target = (Feature) object;
77 target.setContent( (java.lang.String) value);
78 }
79 catch (java.lang.Exception ex) {
80 throw new IllegalStateException(ex.toString());
81 }
82 }
83 public java.lang.Object newInstance( java.lang.Object parent ) {
84 return null;
85 }
86 } );
87 desc.setHandler(handler);
88 addFieldDescriptor(desc);
89
90
91 fieldValidator = new org.exolab.castor.xml.FieldValidator();
92 {
93 StringValidator typeValidator = new StringValidator();
94 typeValidator.setWhiteSpace("preserve");
95 fieldValidator.setValidator(typeValidator);
96 }
97 desc.setValidator(fieldValidator);
98
99
100
101
102 }
103
104
105
106
107
108
109 /***
110 * Method getAccessMode
111 */
112 public org.exolab.castor.mapping.AccessMode getAccessMode()
113 {
114 return null;
115 }
116
117 /***
118 * Method getExtends
119 */
120 public org.exolab.castor.mapping.ClassDescriptor getExtends()
121 {
122 return null;
123 }
124
125 /***
126 * Method getIdentity
127 */
128 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
129 {
130 return identity;
131 }
132
133 /***
134 * Method getJavaClass
135 */
136 public java.lang.Class getJavaClass()
137 {
138 return org.hardcode.juf.update.Feature.class;
139 }
140
141 /***
142 * Method getNameSpacePrefix
143 */
144 public java.lang.String getNameSpacePrefix()
145 {
146 return nsPrefix;
147 }
148
149 /***
150 * Method getNameSpaceURI
151 */
152 public java.lang.String getNameSpaceURI()
153 {
154 return nsURI;
155 }
156
157 /***
158 * Method getValidator
159 */
160 public org.exolab.castor.xml.TypeValidator getValidator()
161 {
162 return this;
163 }
164
165 /***
166 * Method getXMLName
167 */
168 public java.lang.String getXMLName()
169 {
170 return xmlName;
171 }
172
173 }