Merge branch 'feature/JAL-3063JAXB' into feature/JAL-3063jaxbNoCastor
[jalview.git] / src / jalview / schemabinding / version2 / descriptors / SequenceSetPropertiesDescriptor.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.SequenceSetProperties;
15
16 /**
17  * Class SequenceSetPropertiesDescriptor.
18  * 
19  * @version $Revision$ $Date$
20  */
21 public class SequenceSetPropertiesDescriptor 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 SequenceSetPropertiesDescriptor()
54   {
55     super();
56     _nsURI = "www.vamsas.ac.uk/jalview/version2";
57     _xmlName = "sequenceSetProperties";
58     _elementDefinition = true;
59     org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
60     org.exolab.castor.mapping.FieldHandler handler = null;
61     org.exolab.castor.xml.FieldValidator fieldValidator = null;
62     // -- initialize attribute descriptors
63
64     // -- _key
65     desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
66             java.lang.String.class, "_key", "key",
67             org.exolab.castor.xml.NodeType.Attribute);
68     desc.setImmutable(true);
69     handler = new org.exolab.castor.xml.XMLFieldHandler()
70     {
71       public java.lang.Object getValue(java.lang.Object object)
72               throws IllegalStateException
73       {
74         SequenceSetProperties target = (SequenceSetProperties) object;
75         return target.getKey();
76       }
77
78       public void setValue(java.lang.Object object, java.lang.Object value)
79               throws IllegalStateException, IllegalArgumentException
80       {
81         try
82         {
83           SequenceSetProperties target = (SequenceSetProperties) object;
84           target.setKey((java.lang.String) value);
85         } catch (java.lang.Exception ex)
86         {
87           throw new IllegalStateException(ex.toString());
88         }
89       }
90
91       public java.lang.Object newInstance(java.lang.Object parent)
92       {
93         return null;
94       }
95     };
96     desc.setHandler(handler);
97     desc.setMultivalued(false);
98     addFieldDescriptor(desc);
99
100     // -- validation code for: _key
101     fieldValidator = new org.exolab.castor.xml.FieldValidator();
102     { // -- local scope
103       org.exolab.castor.xml.validators.StringValidator typeValidator;
104       typeValidator = new org.exolab.castor.xml.validators.StringValidator();
105       fieldValidator.setValidator(typeValidator);
106       typeValidator.setWhiteSpace("preserve");
107     }
108     desc.setValidator(fieldValidator);
109     // -- _value
110     desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
111             java.lang.String.class, "_value", "value",
112             org.exolab.castor.xml.NodeType.Attribute);
113     desc.setImmutable(true);
114     handler = new org.exolab.castor.xml.XMLFieldHandler()
115     {
116       public java.lang.Object getValue(java.lang.Object object)
117               throws IllegalStateException
118       {
119         SequenceSetProperties target = (SequenceSetProperties) object;
120         return target.getValue();
121       }
122
123       public void setValue(java.lang.Object object, java.lang.Object value)
124               throws IllegalStateException, IllegalArgumentException
125       {
126         try
127         {
128           SequenceSetProperties target = (SequenceSetProperties) object;
129           target.setValue((java.lang.String) value);
130         } catch (java.lang.Exception ex)
131         {
132           throw new IllegalStateException(ex.toString());
133         }
134       }
135
136       public java.lang.Object newInstance(java.lang.Object parent)
137       {
138         return null;
139       }
140     };
141     desc.setHandler(handler);
142     desc.setMultivalued(false);
143     addFieldDescriptor(desc);
144
145     // -- validation code for: _value
146     fieldValidator = new org.exolab.castor.xml.FieldValidator();
147     { // -- local scope
148       org.exolab.castor.xml.validators.StringValidator typeValidator;
149       typeValidator = new org.exolab.castor.xml.validators.StringValidator();
150       fieldValidator.setValidator(typeValidator);
151       typeValidator.setWhiteSpace("preserve");
152     }
153     desc.setValidator(fieldValidator);
154     // -- initialize element descriptors
155
156   }
157
158   // -----------/
159   // - Methods -/
160   // -----------/
161
162   /**
163    * Method getAccessMode.
164    * 
165    * @return the access mode specified for this class.
166    */
167   public org.exolab.castor.mapping.AccessMode getAccessMode()
168   {
169     return null;
170   }
171
172   /**
173    * Method getIdentity.
174    * 
175    * @return the identity field, null if this class has no identity.
176    */
177   public org.exolab.castor.mapping.FieldDescriptor getIdentity()
178   {
179     return super.getIdentity();
180   }
181
182   /**
183    * Method getJavaClass.
184    * 
185    * @return the Java class represented by this descriptor.
186    */
187   public java.lang.Class getJavaClass()
188   {
189     return jalview.schemabinding.version2.SequenceSetProperties.class;
190   }
191
192   /**
193    * Method getNameSpacePrefix.
194    * 
195    * @return the namespace prefix to use when marshaling as XML.
196    */
197   public java.lang.String getNameSpacePrefix()
198   {
199     return _nsPrefix;
200   }
201
202   /**
203    * Method getNameSpaceURI.
204    * 
205    * @return the namespace URI used when marshaling and unmarshaling as XML.
206    */
207   public java.lang.String getNameSpaceURI()
208   {
209     return _nsURI;
210   }
211
212   /**
213    * Method getValidator.
214    * 
215    * @return a specific validator for the class described by this
216    *         ClassDescriptor.
217    */
218   public org.exolab.castor.xml.TypeValidator getValidator()
219   {
220     return this;
221   }
222
223   /**
224    * Method getXMLName.
225    * 
226    * @return the XML Name for the Class being described.
227    */
228   public java.lang.String getXMLName()
229   {
230     return _xmlName;
231   }
232
233   /**
234    * Method isElementDefinition.
235    * 
236    * @return true if XML schema definition of this Class is that of a global
237    *         element or element with anonymous type definition.
238    */
239   public boolean isElementDefinition()
240   {
241     return _elementDefinition;
242   }
243
244 }