Statistics
| Revision:

gvsig-projects-pool / org.gvsig.topology / trunk / org.gvsig.topology / org.gvsig.topology.lib / org.gvsig.topology.lib.impl / src / main / java / org / gvsig / topology / lib / impl / DefaultTopologyReportLine.java @ 727

History | View | Annotate | Download (3.36 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.topology.lib.impl;
25

    
26
import org.gvsig.fmap.dal.feature.FeatureReference;
27
import org.gvsig.fmap.geom.Geometry;
28
import org.gvsig.topology.lib.api.TopologyDataSet;
29
import org.gvsig.topology.lib.api.TopologyReport;
30
import org.gvsig.topology.lib.api.TopologyReportLine;
31
import org.gvsig.topology.lib.api.TopologyRule;
32

    
33
/**
34
 *
35
 * @author jjdelcerro
36
 */
37
public class DefaultTopologyReportLine implements TopologyReportLine {
38
    
39
    private final TopologyReport report;
40
    private final TopologyRule rule;
41
    private final TopologyDataSet dataSet1;
42
    private final TopologyDataSet dataSet2;
43
    private final Geometry geometry;
44
    private final FeatureReference feature1;
45
    private final FeatureReference feature2;
46
    private boolean exception;
47
    private final String description;
48
    private Geometry errorGeometry;
49
    
50
    DefaultTopologyReportLine(DefaultTopologyReport report, 
51
            TopologyRule rule, 
52
            TopologyDataSet dataSet1, 
53
            TopologyDataSet dataSet2, 
54
            Geometry geometry,
55
            Geometry error,
56
            FeatureReference feature1, 
57
            FeatureReference feature2, 
58
            boolean exception,
59
            String description
60
        ) {
61
        this.report = report;
62
        this.rule = rule;
63
        this.dataSet1 = dataSet1;
64
        this.dataSet2 = dataSet2;
65
        this.geometry = geometry;
66
        this.feature1 = feature1;
67
        this.feature2 = feature2;
68
        this.exception = exception;
69
        this.description = description;
70
        this.errorGeometry = error;
71
    }
72

    
73
    @Override
74
    public TopologyRule getRule() {
75
        return this.rule;
76
    }
77

    
78
    @Override
79
    public TopologyDataSet getDataSet1() {
80
        return this.dataSet1;
81
    }
82

    
83
    @Override
84
    public TopologyDataSet getDataSet2() {
85
        return this.dataSet2;
86
    }
87

    
88
    @Override
89
    public Geometry getGeometry() {
90
        return this.geometry;
91
    }
92

    
93
    @Override
94
    public FeatureReference getFeature1() {
95
        return this.feature1;
96
    }
97

    
98
    @Override
99
    public FeatureReference getFeature2() {
100
        return this.feature2;
101
    }
102

    
103
    @Override
104
    public boolean isException() {
105
        return this.exception;
106
    }
107
    
108
    public void setException(boolean exception) {
109
        this.exception = exception;
110
    }
111

    
112
    @Override
113
    public String getDescription() {
114
        return description;
115
    }
116

    
117
    @Override
118
    public Geometry getError() {
119
        return this.errorGeometry;
120
    }
121
}