2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.9M1</a>, using an XML
8 package org.vamsas.objects.core;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
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.*;
20 * Class AlignmentSequenceDescriptor.
22 * @version $Revision$ $Date$
24 public class AlignmentSequenceDescriptor extends org.vamsas.objects.core.SequenceTypeDescriptor {
27 //--------------------------/
28 //- Class/Member Variables -/
29 //--------------------------/
34 private java.lang.String nsPrefix;
39 private java.lang.String nsURI;
44 private java.lang.String xmlName;
49 private org.exolab.castor.xml.XMLFieldDescriptor identity;
56 public AlignmentSequenceDescriptor()
59 setExtendsWithoutFlatten(new org.vamsas.objects.core.SequenceTypeDescriptor());
60 nsURI = "http://www.vamsas.org";
61 xmlName = "alignmentSequence";
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
68 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_id", "id", org.exolab.castor.xml.NodeType.Attribute);
69 desc.setReference(true);
70 handler = new org.exolab.castor.xml.XMLFieldHandler() {
71 public java.lang.Object getValue( java.lang.Object object )
72 throws IllegalStateException
74 AlignmentSequence target = (AlignmentSequence) object;
75 return target.getId();
77 public void setValue( java.lang.Object object, java.lang.Object value)
78 throws IllegalStateException, IllegalArgumentException
81 AlignmentSequence target = (AlignmentSequence) object;
82 target.setId( (java.lang.Object) value);
84 catch (java.lang.Exception ex) {
85 throw new IllegalStateException(ex.toString());
88 public java.lang.Object newInstance( java.lang.Object parent ) {
89 return new java.lang.Object();
92 desc.setHandler(handler);
93 desc.setRequired(true);
94 desc.setMultivalued(false);
95 addFieldDescriptor(desc);
97 //-- validation code for: _id
98 fieldValidator = new org.exolab.castor.xml.FieldValidator();
99 fieldValidator.setMinOccurs(1);
102 desc.setValidator(fieldValidator);
103 //-- initialize element descriptors
105 } //-- org.vamsas.objects.core.AlignmentSequenceDescriptor()
113 * Method getAccessMode
119 public org.exolab.castor.mapping.AccessMode getAccessMode()
122 } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
129 * @return ClassDescriptor
131 public org.exolab.castor.mapping.ClassDescriptor getExtends()
133 return super.getExtends();
134 } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
141 * @return FieldDescriptor
143 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
145 if (identity == null)
146 return super.getIdentity();
148 } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
151 * Method getJavaClass
157 public java.lang.Class getJavaClass()
159 return org.vamsas.objects.core.AlignmentSequence.class;
160 } //-- java.lang.Class getJavaClass()
163 * Method getNameSpacePrefix
169 public java.lang.String getNameSpacePrefix()
172 } //-- java.lang.String getNameSpacePrefix()
175 * Method getNameSpaceURI
181 public java.lang.String getNameSpaceURI()
184 } //-- java.lang.String getNameSpaceURI()
187 * Method getValidator
191 * @return TypeValidator
193 public org.exolab.castor.xml.TypeValidator getValidator()
196 } //-- org.exolab.castor.xml.TypeValidator getValidator()
205 public java.lang.String getXMLName()
208 } //-- java.lang.String getXMLName()