2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
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
10 * of the License, or (at your option) any later version.
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.
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.
21 package jalview.schemabinding.version2.descriptors;
23 //---------------------------------/
24 //- Imported classes and packages -/
25 //---------------------------------/
27 import jalview.schemabinding.version2.UserColourScheme;
30 * Class UserColourSchemeDescriptor.
32 * @version $Revision$ $Date$
34 public class UserColourSchemeDescriptor
36 jalview.schemabinding.version2.descriptors.JalviewUserColoursDescriptor
39 // --------------------------/
40 // - Class/Member Variables -/
41 // --------------------------/
44 * Field _elementDefinition.
46 private boolean _elementDefinition;
51 private java.lang.String _nsPrefix;
56 private java.lang.String _nsURI;
61 private java.lang.String _xmlName;
67 public UserColourSchemeDescriptor()
70 setExtendsWithoutFlatten(new jalview.schemabinding.version2.descriptors.JalviewUserColoursDescriptor());
71 _nsURI = "www.jalview.org";
72 _xmlName = "UserColourScheme";
73 _elementDefinition = true;
81 * Method getAccessMode.
83 * @return the access mode specified for this class.
85 public org.exolab.castor.mapping.AccessMode getAccessMode()
93 * @return the identity field, null if this class has no identity.
95 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
97 return super.getIdentity();
101 * Method getJavaClass.
103 * @return the Java class represented by this descriptor.
105 public java.lang.Class getJavaClass()
107 return jalview.schemabinding.version2.UserColourScheme.class;
111 * Method getNameSpacePrefix.
113 * @return the namespace prefix to use when marshaling as XML.
115 public java.lang.String getNameSpacePrefix()
121 * Method getNameSpaceURI.
123 * @return the namespace URI used when marshaling and unmarshaling as XML.
125 public java.lang.String getNameSpaceURI()
131 * Method getValidator.
133 * @return a specific validator for the class described by this
136 public org.exolab.castor.xml.TypeValidator getValidator()
144 * @return the XML Name for the Class being described.
146 public java.lang.String getXMLName()
152 * Method isElementDefinition.
154 * @return true if XML schema definition of this Class is that of a global
155 * element or element with anonymous type definition.
157 public boolean isElementDefinition()
159 return _elementDefinition;