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 @ 893
History | View | Annotate | Download (3.9 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 final int primitive1; |
47 |
private final int primitive2; |
48 |
private boolean exception; |
49 |
private final String description; |
50 |
private final String data; |
51 |
private final Geometry errorGeometry; |
52 |
|
53 |
DefaultTopologyReportLine(DefaultTopologyReport report, |
54 |
TopologyRule rule, |
55 |
TopologyDataSet dataSet1, |
56 |
TopologyDataSet dataSet2, |
57 |
Geometry geometry, |
58 |
Geometry error, |
59 |
FeatureReference feature1, |
60 |
FeatureReference feature2, |
61 |
int primitive1,
|
62 |
int primitive2,
|
63 |
boolean exception,
|
64 |
String description,
|
65 |
String data
|
66 |
) { |
67 |
this.report = report;
|
68 |
this.rule = rule;
|
69 |
this.dataSet1 = dataSet1;
|
70 |
this.dataSet2 = dataSet2;
|
71 |
this.geometry = geometry;
|
72 |
this.feature1 = feature1;
|
73 |
this.feature2 = feature2;
|
74 |
this.primitive1 = primitive1;
|
75 |
this.primitive2 = primitive2;
|
76 |
this.exception = exception;
|
77 |
this.description = description;
|
78 |
this.errorGeometry = error;
|
79 |
this.data = data;
|
80 |
} |
81 |
|
82 |
@Override
|
83 |
public TopologyRule getRule() {
|
84 |
return this.rule; |
85 |
} |
86 |
|
87 |
@Override
|
88 |
public TopologyDataSet getDataSet1() {
|
89 |
return this.dataSet1; |
90 |
} |
91 |
|
92 |
@Override
|
93 |
public TopologyDataSet getDataSet2() {
|
94 |
return this.dataSet2; |
95 |
} |
96 |
|
97 |
@Override
|
98 |
public Geometry getGeometry() {
|
99 |
return this.geometry; |
100 |
} |
101 |
|
102 |
@Override
|
103 |
public FeatureReference getFeature1() {
|
104 |
return this.feature1; |
105 |
} |
106 |
|
107 |
@Override
|
108 |
public FeatureReference getFeature2() {
|
109 |
return this.feature2; |
110 |
} |
111 |
|
112 |
@Override
|
113 |
public boolean isException() { |
114 |
return this.exception; |
115 |
} |
116 |
|
117 |
public void setException(boolean exception) { |
118 |
this.exception = exception;
|
119 |
} |
120 |
|
121 |
@Override
|
122 |
public String getDescription() { |
123 |
return description;
|
124 |
} |
125 |
|
126 |
@Override
|
127 |
public Geometry getError() {
|
128 |
return this.errorGeometry; |
129 |
} |
130 |
|
131 |
@Override
|
132 |
public int getPrimitiveNumber1() { |
133 |
return this.primitive1; |
134 |
} |
135 |
|
136 |
@Override
|
137 |
public int getPrimitiveNumber2() { |
138 |
return this.primitive2; |
139 |
} |
140 |
|
141 |
@Override
|
142 |
public String getData() { |
143 |
return this.data; |
144 |
} |
145 |
} |