JAL-1432 updated copyright notices
[jalview.git] / src / jalview / schemabinding / version2 / descriptors / FeaturesDescriptor.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3  * Copyright (C) 2014 The Jalview Authors
4  * 
5  * This file is part of Jalview.
6  * 
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.
10  *  
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.
15  * 
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.
18  */
19 package jalview.schemabinding.version2.descriptors;
20
21 //---------------------------------/
22 //- Imported classes and packages -/
23 //---------------------------------/
24
25 import jalview.schemabinding.version2.Features;
26
27 /**
28  * Class FeaturesDescriptor.
29  * 
30  * @version $Revision$ $Date$
31  */
32 public class FeaturesDescriptor extends
33         jalview.schemabinding.version2.descriptors.FeatureDescriptor
34 {
35
36   // --------------------------/
37   // - Class/Member Variables -/
38   // --------------------------/
39
40   /**
41    * Field _elementDefinition.
42    */
43   private boolean _elementDefinition;
44
45   /**
46    * Field _nsPrefix.
47    */
48   private java.lang.String _nsPrefix;
49
50   /**
51    * Field _nsURI.
52    */
53   private java.lang.String _nsURI;
54
55   /**
56    * Field _xmlName.
57    */
58   private java.lang.String _xmlName;
59
60   // ----------------/
61   // - Constructors -/
62   // ----------------/
63
64   public FeaturesDescriptor()
65   {
66     super();
67     setExtendsWithoutFlatten(new jalview.schemabinding.version2.descriptors.FeatureDescriptor());
68     _nsURI = "www.jalview.org";
69     _xmlName = "features";
70     _elementDefinition = true;
71   }
72
73   // -----------/
74   // - Methods -/
75   // -----------/
76
77   /**
78    * Method getAccessMode.
79    * 
80    * @return the access mode specified for this class.
81    */
82   public org.exolab.castor.mapping.AccessMode getAccessMode()
83   {
84     return null;
85   }
86
87   /**
88    * Method getIdentity.
89    * 
90    * @return the identity field, null if this class has no identity.
91    */
92   public org.exolab.castor.mapping.FieldDescriptor getIdentity()
93   {
94     return super.getIdentity();
95   }
96
97   /**
98    * Method getJavaClass.
99    * 
100    * @return the Java class represented by this descriptor.
101    */
102   public java.lang.Class getJavaClass()
103   {
104     return jalview.schemabinding.version2.Features.class;
105   }
106
107   /**
108    * Method getNameSpacePrefix.
109    * 
110    * @return the namespace prefix to use when marshaling as XML.
111    */
112   public java.lang.String getNameSpacePrefix()
113   {
114     return _nsPrefix;
115   }
116
117   /**
118    * Method getNameSpaceURI.
119    * 
120    * @return the namespace URI used when marshaling and unmarshaling as XML.
121    */
122   public java.lang.String getNameSpaceURI()
123   {
124     return _nsURI;
125   }
126
127   /**
128    * Method getValidator.
129    * 
130    * @return a specific validator for the class described by this
131    *         ClassDescriptor.
132    */
133   public org.exolab.castor.xml.TypeValidator getValidator()
134   {
135     return this;
136   }
137
138   /**
139    * Method getXMLName.
140    * 
141    * @return the XML Name for the Class being described.
142    */
143   public java.lang.String getXMLName()
144   {
145     return _xmlName;
146   }
147
148   /**
149    * Method isElementDefinition.
150    * 
151    * @return true if XML schema definition of this Class is that of a global
152    *         element or element with anonymous type definition.
153    */
154   public boolean isElementDefinition()
155   {
156     return _elementDefinition;
157   }
158
159 }