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