1
2
3
4
5
6
7
8 package org.astrogrid.applications.beans.v1.parameters;
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 XhtmlDocumentationDescriptor.
21 *
22 * @version $Revision: 1.36 $ $Date: 2007/01/04 16:26:33 $
23 */
24 public class XhtmlDocumentationDescriptor 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 XhtmlDocumentationDescriptor() {
57 super();
58 nsURI = "http://www.astrogrid.org/schema/AGParameterDefinition/v1";
59 xmlName = "xhtmlDocumentation";
60 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
61 org.exolab.castor.xml.XMLFieldHandler handler = null;
62 org.exolab.castor.xml.FieldValidator fieldValidator = null;
63
64 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
65 desc.setImmutable(true);
66 handler = (new org.exolab.castor.xml.XMLFieldHandler() {
67 public java.lang.Object getValue( java.lang.Object object )
68 throws IllegalStateException
69 {
70 XhtmlDocumentation target = (XhtmlDocumentation) object;
71 return target.getContent();
72 }
73 public void setValue( java.lang.Object object, java.lang.Object value)
74 throws IllegalStateException, IllegalArgumentException
75 {
76 try {
77 XhtmlDocumentation target = (XhtmlDocumentation) object;
78 target.setContent( (java.lang.String) value);
79 }
80 catch (java.lang.Exception ex) {
81 throw new IllegalStateException(ex.toString());
82 }
83 }
84 public java.lang.Object newInstance( java.lang.Object parent ) {
85 return null;
86 }
87 } );
88 desc.setHandler(handler);
89 addFieldDescriptor(desc);
90
91
92 fieldValidator = new org.exolab.castor.xml.FieldValidator();
93 {
94 StringValidator typeValidator = new StringValidator();
95 typeValidator.setWhiteSpace("preserve");
96 fieldValidator.setValidator(typeValidator);
97 }
98 desc.setValidator(fieldValidator);
99
100
101
102
103 }
104
105
106
107
108
109
110 /***
111 * Method getAccessMode
112 */
113 public org.exolab.castor.mapping.AccessMode getAccessMode()
114 {
115 return null;
116 }
117
118 /***
119 * Method getExtends
120 */
121 public org.exolab.castor.mapping.ClassDescriptor getExtends()
122 {
123 return null;
124 }
125
126 /***
127 * Method getIdentity
128 */
129 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
130 {
131 return identity;
132 }
133
134 /***
135 * Method getJavaClass
136 */
137 public java.lang.Class getJavaClass()
138 {
139 return org.astrogrid.applications.beans.v1.parameters.XhtmlDocumentation.class;
140 }
141
142 /***
143 * Method getNameSpacePrefix
144 */
145 public java.lang.String getNameSpacePrefix()
146 {
147 return nsPrefix;
148 }
149
150 /***
151 * Method getNameSpaceURI
152 */
153 public java.lang.String getNameSpaceURI()
154 {
155 return nsURI;
156 }
157
158 /***
159 * Method getValidator
160 */
161 public org.exolab.castor.xml.TypeValidator getValidator()
162 {
163 return this;
164 }
165
166 /***
167 * Method getXMLName
168 */
169 public java.lang.String getXMLName()
170 {
171 return xmlName;
172 }
173
174 }