2 * This file is part of the Vamsas Client version 0.1.
\r
3 * Copyright 2009 by Jim Procter, Iain Milne, Pierre Marguerite,
\r
4 * Andrew Waterhouse and Dominik Lindner.
\r
6 * Earlier versions have also been incorporated into Jalview version 2.4
\r
7 * since 2008, and TOPALi version 2 since 2007.
\r
9 * The Vamsas Client is free software: you can redistribute it and/or modify
\r
10 * it under the terms of the GNU Lesser General Public License as published by
\r
11 * the Free Software Foundation, either version 3 of the License, or
\r
12 * (at your option) any later version.
\r
14 * The Vamsas Client is distributed in the hope that it will be useful,
\r
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
17 * GNU Lesser General Public License for more details.
\r
19 * You should have received a copy of the GNU Lesser General Public License
\r
20 * along with the Vamsas Client. If not, see <http://www.gnu.org/licenses/>.
\r
22 package uk.ac.vamsas.objects.core.descriptors;
\r
24 //---------------------------------/
\r
25 //- Imported classes and packages -/
\r
26 //---------------------------------/
\r
28 import uk.ac.vamsas.objects.core.Vxref;
\r
31 * Class VxrefDescriptor.
\r
33 * @version $Revision$ $Date$
\r
35 public class VxrefDescriptor extends
\r
36 uk.ac.vamsas.objects.core.descriptors.ReferenceTypeDescriptor {
\r
38 // --------------------------/
\r
39 // - Class/Member Variables -/
\r
40 // --------------------------/
\r
43 * Field _elementDefinition.
\r
45 private boolean _elementDefinition;
\r
50 private java.lang.String _nsPrefix;
\r
55 private java.lang.String _nsURI;
\r
60 private java.lang.String _xmlName;
\r
62 // ----------------/
\r
63 // - Constructors -/
\r
64 // ----------------/
\r
66 public VxrefDescriptor() {
\r
68 setExtendsWithoutFlatten(new uk.ac.vamsas.objects.core.descriptors.ReferenceTypeDescriptor());
\r
69 _nsURI = "http://www.vamsas.ac.uk/schemas/1.0/vamsasTypes";
\r
71 _elementDefinition = true;
\r
79 * Method getAccessMode.
\r
81 * @return the access mode specified for this class.
\r
83 public org.exolab.castor.mapping.AccessMode getAccessMode() {
\r
88 * Method getIdentity.
\r
90 * @return the identity field, null if this class has no identity.
\r
92 public org.exolab.castor.mapping.FieldDescriptor getIdentity() {
\r
93 return super.getIdentity();
\r
97 * Method getJavaClass.
\r
99 * @return the Java class represented by this descriptor.
\r
101 public java.lang.Class getJavaClass() {
\r
102 return uk.ac.vamsas.objects.core.Vxref.class;
\r
106 * Method getNameSpacePrefix.
\r
108 * @return the namespace prefix to use when marshaling as XML.
\r
110 public java.lang.String getNameSpacePrefix() {
\r
115 * Method getNameSpaceURI.
\r
117 * @return the namespace URI used when marshaling and unmarshaling as XML.
\r
119 public java.lang.String getNameSpaceURI() {
\r
124 * Method getValidator.
\r
126 * @return a specific validator for the class described by this
\r
129 public org.exolab.castor.xml.TypeValidator getValidator() {
\r
134 * Method getXMLName.
\r
136 * @return the XML Name for the Class being described.
\r
138 public java.lang.String getXMLName() {
\r
143 * Method isElementDefinition.
\r
145 * @return true if XML schema definition of this Class is that of a global
\r
146 * element or element with anonymous type definition.
\r
148 public boolean isElementDefinition() {
\r
149 return _elementDefinition;
\r