Statistics
| Revision:

root / trunk / libraries / libTopology / uml-jude / org / gvsig / topology / ITopologyErrorContainer.java @ 13263

History | View | Annotate | Download (967 Bytes)

1
package org.gvsig.topology;
2

    
3
import com.iver.cit.gvsig.fmap.layers.FLyrVect;
4
import org.cresques.cts.IProjection;
5

    
6

    
7
/**
8
 *All the classes that contains TopologyError must 
9
 *implement this interface.
10
 */
11
public interface ITopologyErrorContainer {
12
 
13
        public static final int ONLY_ERRORS = 0;
14
         
15
        public static final int ONLY_EXCEPTIONS = 1;
16
         
17
        public static final int BOTH_ERROR_EXCEPTIONS = 2;
18
         
19
        public void addTopologyError(TopologyError topologyError);
20
        /**
21
         *Returns the errors contained. In function
22
         *of the specified params, returned errors 
23
         *will be reprojected, filtered by rule, geometry type,
24
         *etc.
25
         */
26
        public TopologyError[] getTopologyErrors(String ruleName, int shapeType, FLyrVect sourceLayer, IProjection desiredProjection, int includeExceptions);
27
        /**
28
         *Marks the specified feature as the
29
         *specified status (exception or not exception)
30
         */
31
        public void markAsTopologyException(TopologyError topologyError, boolean markAsException);
32
}
33