objects from refactored schema.
[vamsas.git] / src / org / vamsas / objects / core / SequenceDescriptor.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package org.vamsas.objects.core;
9
10   //---------------------------------/
11  //- Imported classes and packages -/
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 SequenceDescriptor.
21  * 
22  * @version $Revision$ $Date$
23  */
24 public class SequenceDescriptor extends org.vamsas.objects.core.SequenceTypeDescriptor {
25
26
27       //--------------------------/
28      //- Class/Member Variables -/
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      //- Constructors -/
54     //----------------/
55
56     public SequenceDescriptor() 
57      {
58         super();
59         setExtendsWithoutFlatten(new org.vamsas.objects.core.SequenceTypeDescriptor());
60         nsURI = "http://www.vamsas.org";
61         xmlName = "Sequence";
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         //-- _dictionary
68         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_dictionary", "dictionary", org.exolab.castor.xml.NodeType.Attribute);
69         desc.setImmutable(true);
70         handler = new org.exolab.castor.xml.XMLFieldHandler() {
71             public java.lang.Object getValue( java.lang.Object object ) 
72                 throws IllegalStateException
73             {
74                 Sequence target = (Sequence) object;
75                 return target.getDictionary();
76             }
77             public void setValue( java.lang.Object object, java.lang.Object value) 
78                 throws IllegalStateException, IllegalArgumentException
79             {
80                 try {
81                     Sequence target = (Sequence) object;
82                     target.setDictionary( (java.lang.String) value);
83                 }
84                 catch (java.lang.Exception ex) {
85                     throw new IllegalStateException(ex.toString());
86                 }
87             }
88             public java.lang.Object newInstance( java.lang.Object parent ) {
89                 return null;
90             }
91         };
92         desc.setHandler(handler);
93         desc.setMultivalued(false);
94         addFieldDescriptor(desc);
95         
96         //-- validation code for: _dictionary
97         fieldValidator = new org.exolab.castor.xml.FieldValidator();
98         { //-- local scope
99             StringValidator typeValidator = new StringValidator();
100             typeValidator.setWhiteSpace("preserve");
101             fieldValidator.setValidator(typeValidator);
102         }
103         desc.setValidator(fieldValidator);
104         //-- initialize element descriptors
105         
106     } //-- org.vamsas.objects.core.SequenceDescriptor()
107
108
109       //-----------/
110      //- Methods -/
111     //-----------/
112
113     /**
114      * Method getAccessMode
115      * 
116      * 
117      * 
118      * @return AccessMode
119      */
120     public org.exolab.castor.mapping.AccessMode getAccessMode()
121     {
122         return null;
123     } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
124
125     /**
126      * Method getExtends
127      * 
128      * 
129      * 
130      * @return ClassDescriptor
131      */
132     public org.exolab.castor.mapping.ClassDescriptor getExtends()
133     {
134         return super.getExtends();
135     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
136
137     /**
138      * Method getIdentity
139      * 
140      * 
141      * 
142      * @return FieldDescriptor
143      */
144     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
145     {
146         if (identity == null)
147             return super.getIdentity();
148         return identity;
149     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
150
151     /**
152      * Method getJavaClass
153      * 
154      * 
155      * 
156      * @return Class
157      */
158     public java.lang.Class getJavaClass()
159     {
160         return org.vamsas.objects.core.Sequence.class;
161     } //-- java.lang.Class getJavaClass() 
162
163     /**
164      * Method getNameSpacePrefix
165      * 
166      * 
167      * 
168      * @return String
169      */
170     public java.lang.String getNameSpacePrefix()
171     {
172         return nsPrefix;
173     } //-- java.lang.String getNameSpacePrefix() 
174
175     /**
176      * Method getNameSpaceURI
177      * 
178      * 
179      * 
180      * @return String
181      */
182     public java.lang.String getNameSpaceURI()
183     {
184         return nsURI;
185     } //-- java.lang.String getNameSpaceURI() 
186
187     /**
188      * Method getValidator
189      * 
190      * 
191      * 
192      * @return TypeValidator
193      */
194     public org.exolab.castor.xml.TypeValidator getValidator()
195     {
196         return this;
197     } //-- org.exolab.castor.xml.TypeValidator getValidator() 
198
199     /**
200      * Method getXMLName
201      * 
202      * 
203      * 
204      * @return String
205      */
206     public java.lang.String getXMLName()
207     {
208         return xmlName;
209     } //-- java.lang.String getXMLName() 
210
211 }