2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
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 of the License, or (at your option) any later version.
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.
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.
19 package jalview.schemabinding.version2.descriptors;
21 //---------------------------------/
22 //- Imported classes and packages -/
23 //---------------------------------/
25 import jalview.schemabinding.version2.UserColourScheme;
28 * Class UserColourSchemeDescriptor.
30 * @version $Revision$ $Date$
32 public class UserColourSchemeDescriptor
34 jalview.schemabinding.version2.descriptors.JalviewUserColoursDescriptor
37 // --------------------------/
38 // - Class/Member Variables -/
39 // --------------------------/
42 * Field _elementDefinition.
44 private boolean _elementDefinition;
49 private java.lang.String _nsPrefix;
54 private java.lang.String _nsURI;
59 private java.lang.String _xmlName;
65 public UserColourSchemeDescriptor()
68 setExtendsWithoutFlatten(new jalview.schemabinding.version2.descriptors.JalviewUserColoursDescriptor());
69 _nsURI = "www.jalview.org";
70 _xmlName = "UserColourScheme";
71 _elementDefinition = true;
79 * Method getAccessMode.
81 * @return the access mode specified for this class.
83 public org.exolab.castor.mapping.AccessMode getAccessMode()
91 * @return the identity field, null if this class has no identity.
93 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
95 return super.getIdentity();
99 * Method getJavaClass.
101 * @return the Java class represented by this descriptor.
103 public java.lang.Class getJavaClass()
105 return jalview.schemabinding.version2.UserColourScheme.class;
109 * Method getNameSpacePrefix.
111 * @return the namespace prefix to use when marshaling as XML.
113 public java.lang.String getNameSpacePrefix()
119 * Method getNameSpaceURI.
121 * @return the namespace URI used when marshaling and unmarshaling as XML.
123 public java.lang.String getNameSpaceURI()
129 * Method getValidator.
131 * @return a specific validator for the class described by this
134 public org.exolab.castor.xml.TypeValidator getValidator()
142 * @return the XML Name for the Class being described.
144 public java.lang.String getXMLName()
150 * Method isElementDefinition.
152 * @return true if XML schema definition of this Class is that of a global
153 * element or element with anonymous type definition.
155 public boolean isElementDefinition()
157 return _elementDefinition;