Jalview 2.6 source licence
[jalview.git] / src / jalview / schemabinding / version2 / descriptors / FeaturesDescriptor.java
1 /*\r
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)\r
3  * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle\r
4  * \r
5  * This file is part of Jalview.\r
6  * \r
7  * Jalview is free software: you can redistribute it and/or\r
8  * modify it under the terms of the GNU General Public License \r
9  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\r
10  * \r
11  * Jalview is distributed in the hope that it will be useful, but \r
12  * WITHOUT ANY WARRANTY; without even the implied warranty \r
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR \r
14  * PURPOSE.  See the GNU General Public License for more details.\r
15  * \r
16  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.\r
17  */\r
18 package jalview.schemabinding.version2.descriptors;\r
19 \r
20 //---------------------------------/\r
21 //- Imported classes and packages -/\r
22 //---------------------------------/\r
23 \r
24 import jalview.schemabinding.version2.Features;\r
25 \r
26 /**\r
27  * Class FeaturesDescriptor.\r
28  * \r
29  * @version $Revision$ $Date$\r
30  */\r
31 public class FeaturesDescriptor extends\r
32         jalview.schemabinding.version2.descriptors.FeatureDescriptor\r
33 {\r
34 \r
35   // --------------------------/\r
36   // - Class/Member Variables -/\r
37   // --------------------------/\r
38 \r
39   /**\r
40    * Field _elementDefinition.\r
41    */\r
42   private boolean _elementDefinition;\r
43 \r
44   /**\r
45    * Field _nsPrefix.\r
46    */\r
47   private java.lang.String _nsPrefix;\r
48 \r
49   /**\r
50    * Field _nsURI.\r
51    */\r
52   private java.lang.String _nsURI;\r
53 \r
54   /**\r
55    * Field _xmlName.\r
56    */\r
57   private java.lang.String _xmlName;\r
58 \r
59   // ----------------/\r
60   // - Constructors -/\r
61   // ----------------/\r
62 \r
63   public FeaturesDescriptor()\r
64   {\r
65     super();\r
66     setExtendsWithoutFlatten(new jalview.schemabinding.version2.descriptors.FeatureDescriptor());\r
67     _nsURI = "www.jalview.org";\r
68     _xmlName = "features";\r
69     _elementDefinition = true;\r
70   }\r
71 \r
72   // -----------/\r
73   // - Methods -/\r
74   // -----------/\r
75 \r
76   /**\r
77    * Method getAccessMode.\r
78    * \r
79    * @return the access mode specified for this class.\r
80    */\r
81   public org.exolab.castor.mapping.AccessMode getAccessMode()\r
82   {\r
83     return null;\r
84   }\r
85 \r
86   /**\r
87    * Method getIdentity.\r
88    * \r
89    * @return the identity field, null if this class has no identity.\r
90    */\r
91   public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
92   {\r
93     return super.getIdentity();\r
94   }\r
95 \r
96   /**\r
97    * Method getJavaClass.\r
98    * \r
99    * @return the Java class represented by this descriptor.\r
100    */\r
101   public java.lang.Class getJavaClass()\r
102   {\r
103     return jalview.schemabinding.version2.Features.class;\r
104   }\r
105 \r
106   /**\r
107    * Method getNameSpacePrefix.\r
108    * \r
109    * @return the namespace prefix to use when marshaling as XML.\r
110    */\r
111   public java.lang.String getNameSpacePrefix()\r
112   {\r
113     return _nsPrefix;\r
114   }\r
115 \r
116   /**\r
117    * Method getNameSpaceURI.\r
118    * \r
119    * @return the namespace URI used when marshaling and unmarshaling as XML.\r
120    */\r
121   public java.lang.String getNameSpaceURI()\r
122   {\r
123     return _nsURI;\r
124   }\r
125 \r
126   /**\r
127    * Method getValidator.\r
128    * \r
129    * @return a specific validator for the class described by this\r
130    *         ClassDescriptor.\r
131    */\r
132   public org.exolab.castor.xml.TypeValidator getValidator()\r
133   {\r
134     return this;\r
135   }\r
136 \r
137   /**\r
138    * Method getXMLName.\r
139    * \r
140    * @return the XML Name for the Class being described.\r
141    */\r
142   public java.lang.String getXMLName()\r
143   {\r
144     return _xmlName;\r
145   }\r
146 \r
147   /**\r
148    * Method isElementDefinition.\r
149    * \r
150    * @return true if XML schema definition of this Class is that of a global\r
151    *         element or element with anonymous type definition.\r
152    */\r
153   public boolean isElementDefinition()\r
154   {\r
155     return _elementDefinition;\r
156   }\r
157 \r
158 }\r