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