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
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/>.
18 package jalview.schemabinding.version2.descriptors;
20 //---------------------------------/
21 //- Imported classes and packages -/
22 //---------------------------------/
24 import jalview.schemabinding.version2.VamsasModel;
27 * Class VamsasModelDescriptor.
29 * @version $Revision$ $Date$
31 public class VamsasModelDescriptor extends
32 jalview.schemabinding.version2.descriptors.VAMSASDescriptor
35 // --------------------------/
36 // - Class/Member Variables -/
37 // --------------------------/
40 * Field _elementDefinition.
42 private boolean _elementDefinition;
47 private java.lang.String _nsPrefix;
52 private java.lang.String _nsURI;
57 private java.lang.String _xmlName;
63 public VamsasModelDescriptor()
66 setExtendsWithoutFlatten(new jalview.schemabinding.version2.descriptors.VAMSASDescriptor());
67 _nsURI = "www.jalview.org";
68 _xmlName = "vamsasModel";
69 _elementDefinition = true;
77 * Method getAccessMode.
79 * @return the access mode specified for this class.
81 public org.exolab.castor.mapping.AccessMode getAccessMode()
89 * @return the identity field, null if this class has no identity.
91 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
93 return super.getIdentity();
97 * Method getJavaClass.
99 * @return the Java class represented by this descriptor.
101 public java.lang.Class getJavaClass()
103 return jalview.schemabinding.version2.VamsasModel.class;
107 * Method getNameSpacePrefix.
109 * @return the namespace prefix to use when marshaling as XML.
111 public java.lang.String getNameSpacePrefix()
117 * Method getNameSpaceURI.
119 * @return the namespace URI used when marshaling and unmarshaling as XML.
121 public java.lang.String getNameSpaceURI()
127 * Method getValidator.
129 * @return a specific validator for the class described by this
132 public org.exolab.castor.xml.TypeValidator getValidator()
140 * @return the XML Name for the Class being described.
142 public java.lang.String getXMLName()
148 * Method isElementDefinition.
150 * @return true if XML schema definition of this Class is that of a global
151 * element or element with anonymous type definition.
153 public boolean isElementDefinition()
155 return _elementDefinition;