2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4.0.b2)
\r
3 * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
19 package jalview.schemabinding.version2.descriptors;
\r
21 // ---------------------------------/
\r
22 // - Imported classes and packages -/
\r
23 // ---------------------------------/
\r
25 import jalview.schemabinding.version2.Features;
\r
28 * Class FeaturesDescriptor.
\r
30 * @version $Revision$ $Date$
\r
32 public class FeaturesDescriptor extends
\r
33 jalview.schemabinding.version2.descriptors.FeatureDescriptor
\r
36 // --------------------------/
\r
37 // - Class/Member Variables -/
\r
38 // --------------------------/
\r
41 * Field _elementDefinition.
\r
43 private boolean _elementDefinition;
\r
48 private java.lang.String _nsPrefix;
\r
53 private java.lang.String _nsURI;
\r
58 private java.lang.String _xmlName;
\r
60 // ----------------/
\r
61 // - Constructors -/
\r
62 // ----------------/
\r
64 public FeaturesDescriptor()
\r
67 setExtendsWithoutFlatten(new jalview.schemabinding.version2.descriptors.FeatureDescriptor());
\r
68 _nsURI = "www.jalview.org";
\r
69 _xmlName = "features";
\r
70 _elementDefinition = true;
\r
78 * Method getAccessMode.
\r
80 * @return the access mode specified for this class.
\r
82 public org.exolab.castor.mapping.AccessMode getAccessMode()
\r
88 * Method getIdentity.
\r
90 * @return the identity field, null if this class has no identity.
\r
92 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
\r
94 return super.getIdentity();
\r
98 * Method getJavaClass.
\r
100 * @return the Java class represented by this descriptor.
\r
102 public java.lang.Class getJavaClass()
\r
104 return jalview.schemabinding.version2.Features.class;
\r
108 * Method getNameSpacePrefix.
\r
110 * @return the namespace prefix to use when marshaling as XML.
\r
112 public java.lang.String getNameSpacePrefix()
\r
118 * Method getNameSpaceURI.
\r
120 * @return the namespace URI used when marshaling and unmarshaling as XML.
\r
122 public java.lang.String getNameSpaceURI()
\r
128 * Method getValidator.
\r
130 * @return a specific validator for the class described by this
\r
133 public org.exolab.castor.xml.TypeValidator getValidator()
\r
139 * Method getXMLName.
\r
141 * @return the XML Name for the Class being described.
\r
143 public java.lang.String getXMLName()
\r
149 * Method isElementDefinition.
\r
151 * @return true if XML schema definition of this Class is that of a global
\r
152 * element or element with anonymous type definition.
\r
154 public boolean isElementDefinition()
\r
156 return _elementDefinition;
\r