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