svn-gvsig-desktop / tags / v1_0_1_RELEASE / libraries / libRemoteServices / src / org / gvsig / remoteClient / gml / schemas / XMLSchema.java @ 9531
History | View | Annotate | Download (2.46 KB)
1 |
package org.gvsig.remoteClient.gml.schemas; |
---|---|
2 |
|
3 |
import java.util.Vector; |
4 |
|
5 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
6 |
*
|
7 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
8 |
*
|
9 |
* This program is free software; you can redistribute it and/or
|
10 |
* modify it under the terms of the GNU General Public License
|
11 |
* as published by the Free Software Foundation; either version 2
|
12 |
* of the License, or (at your option) any later version.
|
13 |
*
|
14 |
* This program is distributed in the hope that it will be useful,
|
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
* GNU General Public License for more details.
|
18 |
*
|
19 |
* You should have received a copy of the GNU General Public License
|
20 |
* along with this program; if not, write to the Free Software
|
21 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
22 |
*
|
23 |
* For more information, contact:
|
24 |
*
|
25 |
* Generalitat Valenciana
|
26 |
* Conselleria d'Infraestructures i Transport
|
27 |
* Av. Blasco Ib??ez, 50
|
28 |
* 46010 VALENCIA
|
29 |
* SPAIN
|
30 |
*
|
31 |
* +34 963862235
|
32 |
* gvsig@gva.es
|
33 |
* www.gvsig.gva.es
|
34 |
*
|
35 |
* or
|
36 |
*
|
37 |
* IVER T.I. S.A
|
38 |
* Salamanca 50
|
39 |
* 46005 Valencia
|
40 |
* Spain
|
41 |
*
|
42 |
* +34 963163400
|
43 |
* dac@iver.es
|
44 |
*/
|
45 |
/* CVS MESSAGES:
|
46 |
*
|
47 |
* $Id: XMLSchema.java 9531 2007-01-03 17:07:37Z $
|
48 |
* $Log$
|
49 |
* Revision 1.1 2006-08-10 12:00:49 jorpiell
|
50 |
* Primer commit del driver de Gml
|
51 |
*
|
52 |
*
|
53 |
*/
|
54 |
/**
|
55 |
* This class represent a XSD schema file
|
56 |
* @author Jorge Piera Llodr? (piera_jor@gva.es)
|
57 |
*/
|
58 |
public class XMLSchema { |
59 |
private XMLSchema parent = null; |
60 |
private Vector children = null; |
61 |
private String name = null; |
62 |
private String location = null; |
63 |
|
64 |
public XMLSchema(String name,String location) { |
65 |
super();
|
66 |
this.name = name;
|
67 |
this.location = location;
|
68 |
children = new Vector(); |
69 |
} |
70 |
|
71 |
/**
|
72 |
* @return Returns the children.
|
73 |
*/
|
74 |
public Vector getChildren() { |
75 |
return children;
|
76 |
} |
77 |
|
78 |
/**
|
79 |
* @return Returns the location.
|
80 |
*/
|
81 |
public String getLocation() { |
82 |
return location;
|
83 |
} |
84 |
|
85 |
/**
|
86 |
* @return Returns the name.
|
87 |
*/
|
88 |
public String getName() { |
89 |
return name;
|
90 |
} |
91 |
|
92 |
/**
|
93 |
* @return Returns the parent.
|
94 |
*/
|
95 |
public XMLSchema getParent() {
|
96 |
return parent;
|
97 |
} |
98 |
|
99 |
/**
|
100 |
* @param location The location to set.
|
101 |
*/
|
102 |
public void setLocation(String location) { |
103 |
this.location = location;
|
104 |
} |
105 |
|
106 |
/**
|
107 |
* @param parent The parent to set.
|
108 |
*/
|
109 |
public void setParent(XMLSchema parent) { |
110 |
this.parent = parent;
|
111 |
} |
112 |
|
113 |
public void addChidren(XMLSchema schema){ |
114 |
this.children.add(schema);
|
115 |
} |
116 |
} |