Statistics
| Revision:

svn-gvsig-desktop / tags / v10_RC2c / libraries / libRemoteServices / src / org / gvsig / remoteClient / gml / schemas / XMLComplexType.java @ 8745

History | View | Annotate | Download (2.89 KB)

1
package org.gvsig.remoteClient.gml.schemas;
2

    
3
import java.util.Hashtable;
4
import java.util.Vector;
5

    
6
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
7
 *
8
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
9
 *
10
 * This program is free software; you can redistribute it and/or
11
 * modify it under the terms of the GNU General Public License
12
 * as published by the Free Software Foundation; either version 2
13
 * of the License, or (at your option) any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
23
 *
24
 * For more information, contact:
25
 *
26
 *  Generalitat Valenciana
27
 *   Conselleria d'Infraestructures i Transport
28
 *   Av. Blasco Ib??ez, 50
29
 *   46010 VALENCIA
30
 *   SPAIN
31
 *
32
 *      +34 963862235
33
 *   gvsig@gva.es
34
 *      www.gvsig.gva.es
35
 *
36
 *    or
37
 *
38
 *   IVER T.I. S.A
39
 *   Salamanca 50
40
 *   46005 Valencia
41
 *   Spain
42
 *
43
 *   +34 963163400
44
 *   dac@iver.es
45
 */
46
/* CVS MESSAGES:
47
 *
48
 * $Id: XMLComplexType.java 8745 2006-11-14 13:14:23Z  $
49
 * $Log$
50
 * Revision 1.2.2.1  2006-09-19 12:23:15  jorpiell
51
 * Ya no se depende de geotools
52
 *
53
 * Revision 1.3  2006/09/18 12:08:55  jorpiell
54
 * Se han hecho algunas modificaciones que necesitaba el WFS
55
 *
56
 * Revision 1.2  2006/08/29 08:43:13  jorpiell
57
 * Dos peque?os cambios para tener en cuenta las referencias
58
 *
59
 * Revision 1.1  2006/08/10 12:00:49  jorpiell
60
 * Primer commit del driver de Gml
61
 *
62
 *
63
 */
64
/**
65
 * This class implements an XSD complex type
66
 * 
67
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
68
 */
69
public class XMLComplexType implements IXMLType {
70
        private String type = null;
71
        private Hashtable elements = null;
72
        private Vector vElements = null;
73
                
74
        public XMLComplexType(String type) {
75
                super();
76
                this.type = type;
77
                elements = new Hashtable();
78
                vElements = new Vector();
79
        }
80
        
81
        /*
82
         *  (non-Javadoc)
83
         * @see org.gvsig.remoteClient.gml.schemas.IXMLType#getType()
84
         */
85
        public int getType() {
86
                return IXMLType.COMPLEX;
87
        }
88
        
89
        /*
90
         *  (non-Javadoc)
91
         * @see org.gvsig.remoteClient.gml.schemas.IXMLType#getName()
92
         */
93
        public String getName() {
94
                return type;
95
        }
96
        
97
        /**
98
         * @return Returns the subtypes.
99
         */
100
        public Hashtable getSubtypes() {
101
                return elements;
102
        }
103
        
104
        /**
105
         * @param subtypes The subtypes to set.
106
         */
107
        public void addSubtypes(XMLElement element) {
108
                if (element.getName() != null){
109
                        this.elements.put(element.getName(),element);
110
                }
111
        }
112
        
113
        /**
114
         * 
115
         * @param name
116
         * @return
117
         */
118
        public XMLElement getElement(String name){
119
                return (XMLElement)elements.get(name);
120
        }
121

    
122
        /**
123
         * @return Returns the vElements.
124
         */
125
        public Vector getVElements() {
126
                return vElements;
127
        }
128
        
129
        
130
        
131
}