Merge branch 'feature/JAL-3063JAXB' into feature/JAL-3063jaxbNoCastor
[jalview.git] / src / jalview / schemabinding / version2 / descriptors / AlcodMapDescriptor.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package jalview.schemabinding.version2.descriptors;
9
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
13
14 import jalview.schemabinding.version2.AlcodMap;
15
16 /**
17  * Class AlcodMapDescriptor.
18  * 
19  * @version $Revision$ $Date$
20  */
21 public class AlcodMapDescriptor extends
22         org.exolab.castor.xml.util.XMLClassDescriptorImpl
23 {
24
25   // --------------------------/
26   // - Class/Member Variables -/
27   // --------------------------/
28
29   /**
30    * Field _elementDefinition.
31    */
32   private boolean _elementDefinition;
33
34   /**
35    * Field _nsPrefix.
36    */
37   private java.lang.String _nsPrefix;
38
39   /**
40    * Field _nsURI.
41    */
42   private java.lang.String _nsURI;
43
44   /**
45    * Field _xmlName.
46    */
47   private java.lang.String _xmlName;
48
49   // ----------------/
50   // - Constructors -/
51   // ----------------/
52
53   public AlcodMapDescriptor()
54   {
55     super();
56     _nsURI = "www.vamsas.ac.uk/jalview/version2";
57     _xmlName = "alcodMap";
58     _elementDefinition = true;
59
60     // -- set grouping compositor
61     setCompositorAsSequence();
62     org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
63     org.exolab.castor.mapping.FieldHandler handler = null;
64     org.exolab.castor.xml.FieldValidator fieldValidator = null;
65     // -- initialize attribute descriptors
66
67     // -- _dnasq
68     desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
69             java.lang.String.class, "_dnasq", "dnasq",
70             org.exolab.castor.xml.NodeType.Attribute);
71     desc.setImmutable(true);
72     handler = new org.exolab.castor.xml.XMLFieldHandler()
73     {
74       public java.lang.Object getValue(java.lang.Object object)
75               throws IllegalStateException
76       {
77         AlcodMap target = (AlcodMap) object;
78         return target.getDnasq();
79       }
80
81       public void setValue(java.lang.Object object, java.lang.Object value)
82               throws IllegalStateException, IllegalArgumentException
83       {
84         try
85         {
86           AlcodMap target = (AlcodMap) object;
87           target.setDnasq((java.lang.String) value);
88         } catch (java.lang.Exception ex)
89         {
90           throw new IllegalStateException(ex.toString());
91         }
92       }
93
94       public java.lang.Object newInstance(java.lang.Object parent)
95       {
96         return null;
97       }
98     };
99     desc.setHandler(handler);
100     desc.setRequired(true);
101     desc.setMultivalued(false);
102     addFieldDescriptor(desc);
103
104     // -- validation code for: _dnasq
105     fieldValidator = new org.exolab.castor.xml.FieldValidator();
106     fieldValidator.setMinOccurs(1);
107     { // -- local scope
108       org.exolab.castor.xml.validators.StringValidator typeValidator;
109       typeValidator = new org.exolab.castor.xml.validators.StringValidator();
110       fieldValidator.setValidator(typeValidator);
111       typeValidator.setWhiteSpace("preserve");
112     }
113     desc.setValidator(fieldValidator);
114     // -- initialize element descriptors
115
116     // -- _mapping
117     desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
118             jalview.schemabinding.version2.Mapping.class, "_mapping",
119             "Mapping", org.exolab.castor.xml.NodeType.Element);
120     handler = new org.exolab.castor.xml.XMLFieldHandler()
121     {
122       public java.lang.Object getValue(java.lang.Object object)
123               throws IllegalStateException
124       {
125         AlcodMap target = (AlcodMap) object;
126         return target.getMapping();
127       }
128
129       public void setValue(java.lang.Object object, java.lang.Object value)
130               throws IllegalStateException, IllegalArgumentException
131       {
132         try
133         {
134           AlcodMap target = (AlcodMap) object;
135           target.setMapping((jalview.schemabinding.version2.Mapping) value);
136         } catch (java.lang.Exception ex)
137         {
138           throw new IllegalStateException(ex.toString());
139         }
140       }
141
142       public java.lang.Object newInstance(java.lang.Object parent)
143       {
144         return new jalview.schemabinding.version2.Mapping();
145       }
146     };
147     desc.setHandler(handler);
148     desc.setNameSpaceURI("www.vamsas.ac.uk/jalview/version2");
149     desc.setRequired(true);
150     desc.setMultivalued(false);
151     addFieldDescriptor(desc);
152
153     // -- validation code for: _mapping
154     fieldValidator = new org.exolab.castor.xml.FieldValidator();
155     fieldValidator.setMinOccurs(1);
156     { // -- local scope
157     }
158     desc.setValidator(fieldValidator);
159   }
160
161   // -----------/
162   // - Methods -/
163   // -----------/
164
165   /**
166    * Method getAccessMode.
167    * 
168    * @return the access mode specified for this class.
169    */
170   public org.exolab.castor.mapping.AccessMode getAccessMode()
171   {
172     return null;
173   }
174
175   /**
176    * Method getIdentity.
177    * 
178    * @return the identity field, null if this class has no identity.
179    */
180   public org.exolab.castor.mapping.FieldDescriptor getIdentity()
181   {
182     return super.getIdentity();
183   }
184
185   /**
186    * Method getJavaClass.
187    * 
188    * @return the Java class represented by this descriptor.
189    */
190   public java.lang.Class getJavaClass()
191   {
192     return jalview.schemabinding.version2.AlcodMap.class;
193   }
194
195   /**
196    * Method getNameSpacePrefix.
197    * 
198    * @return the namespace prefix to use when marshaling as XML.
199    */
200   public java.lang.String getNameSpacePrefix()
201   {
202     return _nsPrefix;
203   }
204
205   /**
206    * Method getNameSpaceURI.
207    * 
208    * @return the namespace URI used when marshaling and unmarshaling as XML.
209    */
210   public java.lang.String getNameSpaceURI()
211   {
212     return _nsURI;
213   }
214
215   /**
216    * Method getValidator.
217    * 
218    * @return a specific validator for the class described by this
219    *         ClassDescriptor.
220    */
221   public org.exolab.castor.xml.TypeValidator getValidator()
222   {
223     return this;
224   }
225
226   /**
227    * Method getXMLName.
228    * 
229    * @return the XML Name for the Class being described.
230    */
231   public java.lang.String getXMLName()
232   {
233     return _xmlName;
234   }
235
236   /**
237    * Method isElementDefinition.
238    * 
239    * @return true if XML schema definition of this Class is that of a global
240    *         element or element with anonymous type definition.
241    */
242   public boolean isElementDefinition()
243   {
244     return _elementDefinition;
245   }
246
247 }