Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libTopology / src-test / org / gvsig / topology / util / TestTopologyErrorContainer.java @ 18997

History | View | Annotate | Download (4.15 KB)

1
package org.gvsig.topology.util;
2

    
3
/*
4
 * Created on 18-sep-2007
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
import java.util.ArrayList;
47
import java.util.List;
48

    
49
import org.cresques.cts.IProjection;
50
import org.gvsig.topology.ITopologyErrorContainer;
51
import org.gvsig.topology.Topology;
52
import org.gvsig.topology.TopologyError;
53

    
54
import com.iver.cit.gvsig.fmap.layers.FLyrVect;
55
import com.iver.cit.gvsig.fmap.layers.XMLException;
56
import com.iver.utiles.XMLEntity;
57

    
58
public class TestTopologyErrorContainer implements ITopologyErrorContainer{
59

    
60
                List<TopologyError> topologyErrors = new ArrayList<TopologyError>();
61
                
62
                public void addTopologyError(TopologyError topologyError) {
63
                        topologyError.setID(topologyErrors.size()+"");
64
                        topologyErrors.add(topologyError);
65
                }
66
                
67
                public Object clone(){
68
                        return null;
69
                }
70

    
71
                public List<TopologyError> getTopologyErrors(String ruleName, int shapeType, FLyrVect sourceLayer, IProjection desiredProjection, boolean includeExceptions) {
72
                        return null;
73
                }
74
                public List<TopologyError> getTopologyErrorsByRule(String ruleName, IProjection desiredProjection, boolean includeExceptions) {
75
                        return null;
76
                }
77

    
78
                public List<TopologyError> getTopologyErrorsByShapeType(int shapeType, IProjection desiredProjection, boolean includeExceptions) {
79
                        return null;
80
                }
81

    
82
                public List<TopologyError> getTopologyErrorsByLyr(FLyrVect layer, IProjection desiredProjection, boolean includeExceptions) {
83
                        return null;
84
                }
85

    
86
                public void markAsTopologyException(TopologyError topologyError) {
87
                        topologyError.setException(true);        
88
                }
89

    
90
                public void demoteToError(TopologyError topologyError) {
91
                        topologyError.setException(false);
92
                }
93

    
94
                public String getErrorFid() {
95
                        return topologyErrors.size() + "";
96
                }
97

    
98
                public int getNumberOfErrors() {
99
                        return topologyErrors.size();
100
                }
101

    
102
                public TopologyError getTopologyError(int index) {
103
                        return topologyErrors.get(index);
104
                }
105

    
106
                public void clear() {
107
                        // TODO Auto-generated method stub
108
                        
109
                }
110

    
111
                public int getNumberOfExceptions() {
112
                        // TODO Auto-generated method stub
113
                        return 0;
114
                }
115

    
116
                public XMLEntity getXMLEntity() throws XMLException {
117
                        // TODO Auto-generated method stub
118
                        return null;
119
                }
120

    
121
                public void setXMLEntity(XMLEntity xml) throws XMLException {
122
                        // TODO Auto-generated method stub
123
                        
124
                }
125

    
126
                public void removeErrorsByLayer(FLyrVect layer) {
127
                        // TODO Auto-generated method stub
128
                        
129
                }
130

    
131
                public void removeErrorsByRule(String ruleName) {
132
                        // TODO Auto-generated method stub
133
                        
134
                }
135

    
136
                public FLyrVect getAsFMapLayer() {
137
                        // TODO Auto-generated method stub
138
                        return null;
139
                }
140

    
141
                public FLyrVect getAsFMapLayer(String name, IProjection projection) {
142
                        // TODO Auto-generated method stub
143
                        return null;
144
                }
145

    
146
                public Topology getTopology() {
147
                        // TODO Auto-generated method stub
148
                        return null;
149
                }
150

    
151
                public void setTopology(Topology topology) {
152
                        // TODO Auto-generated method stub
153
                        
154
                }        
155
        }