2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2.descriptors;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import jalview.schemabinding.version2.HiddenColumns;
17 * Class HiddenColumnsDescriptor.
19 * @version $Revision$ $Date$
21 public class HiddenColumnsDescriptor extends
22 org.exolab.castor.xml.util.XMLClassDescriptorImpl
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
30 * Field _elementDefinition.
32 private boolean _elementDefinition;
37 private java.lang.String _nsPrefix;
42 private java.lang.String _nsURI;
47 private java.lang.String _xmlName;
53 public HiddenColumnsDescriptor()
56 _nsURI = "www.jalview.org";
57 _xmlName = "hiddenColumns";
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
65 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
66 java.lang.Integer.TYPE, "_start", "start",
67 org.exolab.castor.xml.NodeType.Attribute);
68 handler = new org.exolab.castor.xml.XMLFieldHandler()
70 public java.lang.Object getValue(java.lang.Object object)
71 throws IllegalStateException
73 HiddenColumns target = (HiddenColumns) object;
74 if (!target.hasStart())
78 return new java.lang.Integer(target.getStart());
81 public void setValue(java.lang.Object object, java.lang.Object value)
82 throws IllegalStateException, IllegalArgumentException
86 HiddenColumns target = (HiddenColumns) object;
87 // if null, use delete method for optional primitives
93 target.setStart(((java.lang.Integer) value).intValue());
94 } catch (java.lang.Exception ex)
96 throw new IllegalStateException(ex.toString());
100 public java.lang.Object newInstance(java.lang.Object parent)
105 desc.setHandler(handler);
106 desc.setMultivalued(false);
107 addFieldDescriptor(desc);
109 // -- validation code for: _start
110 fieldValidator = new org.exolab.castor.xml.FieldValidator();
112 org.exolab.castor.xml.validators.IntValidator typeValidator;
113 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
114 fieldValidator.setValidator(typeValidator);
115 typeValidator.setMinInclusive(-2147483648);
116 typeValidator.setMaxInclusive(2147483647);
118 desc.setValidator(fieldValidator);
120 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
121 java.lang.Integer.TYPE, "_end", "end",
122 org.exolab.castor.xml.NodeType.Attribute);
123 handler = new org.exolab.castor.xml.XMLFieldHandler()
125 public java.lang.Object getValue(java.lang.Object object)
126 throws IllegalStateException
128 HiddenColumns target = (HiddenColumns) object;
129 if (!target.hasEnd())
133 return new java.lang.Integer(target.getEnd());
136 public void setValue(java.lang.Object object, java.lang.Object value)
137 throws IllegalStateException, IllegalArgumentException
141 HiddenColumns target = (HiddenColumns) object;
142 // if null, use delete method for optional primitives
148 target.setEnd(((java.lang.Integer) value).intValue());
149 } catch (java.lang.Exception ex)
151 throw new IllegalStateException(ex.toString());
155 public java.lang.Object newInstance(java.lang.Object parent)
160 desc.setHandler(handler);
161 desc.setMultivalued(false);
162 addFieldDescriptor(desc);
164 // -- validation code for: _end
165 fieldValidator = new org.exolab.castor.xml.FieldValidator();
167 org.exolab.castor.xml.validators.IntValidator typeValidator;
168 typeValidator = new org.exolab.castor.xml.validators.IntValidator();
169 fieldValidator.setValidator(typeValidator);
170 typeValidator.setMinInclusive(-2147483648);
171 typeValidator.setMaxInclusive(2147483647);
173 desc.setValidator(fieldValidator);
174 // -- initialize element descriptors
183 * Method getAccessMode.
185 * @return the access mode specified for this class.
187 public org.exolab.castor.mapping.AccessMode getAccessMode()
193 * Method getIdentity.
195 * @return the identity field, null if this class has no identity.
197 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
199 return super.getIdentity();
203 * Method getJavaClass.
205 * @return the Java class represented by this descriptor.
207 public java.lang.Class getJavaClass()
209 return jalview.schemabinding.version2.HiddenColumns.class;
213 * Method getNameSpacePrefix.
215 * @return the namespace prefix to use when marshaling as XML.
217 public java.lang.String getNameSpacePrefix()
223 * Method getNameSpaceURI.
225 * @return the namespace URI used when marshaling and unmarshaling as XML.
227 public java.lang.String getNameSpaceURI()
233 * Method getValidator.
235 * @return a specific validator for the class described by this
238 public org.exolab.castor.xml.TypeValidator getValidator()
246 * @return the XML Name for the Class being described.
248 public java.lang.String getXMLName()
254 * Method isElementDefinition.
256 * @return true if XML schema definition of this Class is that of a global
257 * element or element with anonymous type definition.
259 public boolean isElementDefinition()
261 return _elementDefinition;