/* * This class was automatically generated with * <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML * Schema. * $Id: ToolBarsDescriptor.java 5275 2006-05-19 06:41:50Z jaume $ */ /* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana * * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. * * For more information, contact: * * Generalitat Valenciana * Conselleria d'Infraestructures i Transport * Av. Blasco Ib��ez, 50 * 46010 VALENCIA * SPAIN * * +34 963862235 * gvsig@gva.es * www.gvsig.gva.es * * or * * IVER T.I. S.A * Salamanca 50 * 46005 Valencia * Spain * * +34 963163400 * dac@iver.es */ package com.iver.andami.persistence.generate; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ /** * Class ToolBarsDescriptor. * * @version $Revision: 5275 $ $Date: 2006-05-19 08:41:50 +0200 (Fri, 19 May * 2006) $ */ public class ToolBarsDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { // --------------------------/ // - Class/Member Variables -/ // --------------------------/ /** * Field nsPrefix */ private java.lang.String nsPrefix; /** * Field nsURI */ private java.lang.String nsURI; /** * Field xmlName */ private java.lang.String xmlName; /** * Field identity */ private org.exolab.castor.xml.XMLFieldDescriptor identity; // ----------------/ // - Constructors -/ // ----------------/ public ToolBarsDescriptor() { super(); xmlName = "tool-bars"; // -- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.xml.XMLFieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; // -- initialize attribute descriptors // -- initialize element descriptors // -- _toolBarList desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl( com.iver.andami.persistence.generate.ToolBar.class, "_toolBarList", "tool-bar", org.exolab.castor.xml.NodeType.Element); handler = (new org.exolab.castor.xml.XMLFieldHandler() { public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException { ToolBars target = (ToolBars) object; return target.getToolBar(); } public void setValue(java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { ToolBars target = (ToolBars) object; target.addToolBar((com.iver.andami.persistence.generate.ToolBar) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } public java.lang.Object newInstance(java.lang.Object parent) { return new com.iver.andami.persistence.generate.ToolBar(); } }); desc.setHandler(handler); desc.setRequired(true); desc.setMultivalued(true); addFieldDescriptor(desc); // -- validation code for: _toolBarList fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { // -- local scope } desc.setValidator(fieldValidator); } // -- com.iver.andami.persistence.generate.ToolBarsDescriptor() // -----------/ // - Methods -/ // -----------/ /** * Method getAccessMode */ public org.exolab.castor.mapping.AccessMode getAccessMode() { return null; } // -- org.exolab.castor.mapping.AccessMode getAccessMode() /** * Method getExtends */ public org.exolab.castor.mapping.ClassDescriptor getExtends() { return null; } // -- org.exolab.castor.mapping.ClassDescriptor getExtends() /** * Method getIdentity */ public org.exolab.castor.mapping.FieldDescriptor getIdentity() { return identity; } // -- org.exolab.castor.mapping.FieldDescriptor getIdentity() /** * Method getJavaClass */ public java.lang.Class getJavaClass() { return com.iver.andami.persistence.generate.ToolBars.class; } // -- java.lang.Class getJavaClass() /** * Method getNameSpacePrefix */ public java.lang.String getNameSpacePrefix() { return nsPrefix; } // -- java.lang.String getNameSpacePrefix() /** * Method getNameSpaceURI */ public java.lang.String getNameSpaceURI() { return nsURI; } // -- java.lang.String getNameSpaceURI() /** * Method getValidator */ public org.exolab.castor.xml.TypeValidator getValidator() { return this; } // -- org.exolab.castor.xml.TypeValidator getValidator() /** * Method getXMLName */ public java.lang.String getXMLName() { return xmlName; } // -- java.lang.String getXMLName() }