/*\r
- * This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 1.1</a>, using an XML\r
- * Schema.\r
- * $Id$\r
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4.1)\r
+ * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ * \r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ * \r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+ * GNU General Public License for more details.\r
+ * \r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\r
*/\r
-\r
package jalview.schemabinding.version2.descriptors;\r
\r
//---------------------------------/\r
desc.setValidator(fieldValidator);\r
//-- _viewId\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_viewId", "viewId", org.exolab.castor.xml.NodeType.Attribute);\r
- super.setIdentity(desc);\r
+ desc.setImmutable(true);\r
handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
}\r
}\r
public java.lang.Object newInstance(java.lang.Object parent) {\r
- return new java.lang.String();\r
+ return null;\r
}\r
};\r
desc.setHandler(handler);\r
//-- validation code for: _viewId\r
fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
{ //-- local scope\r
- org.exolab.castor.xml.validators.IdValidator typeValidator;\r
- typeValidator = new org.exolab.castor.xml.validators.IdValidator();\r
+ org.exolab.castor.xml.validators.StringValidator typeValidator;\r
+ typeValidator = new org.exolab.castor.xml.validators.StringValidator();\r
fieldValidator.setValidator(typeValidator);\r
+ typeValidator.setWhiteSpace("preserve");\r
}\r
desc.setValidator(fieldValidator);\r
//-- initialize element descriptors\r