Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
c1c27a52
Commit
c1c27a52
authored
Nov 13, 2020
by
Matthias Betz
Browse files
Writing minVertexDistance in reports again
parent
edf34af4
Pipeline
#1278
failed with stage
in 1 minute and 28 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorCheckResult/src/main/java/de/hft/stuttgart/citydoctor2/checkresult/ValidationPlan.java
View file @
c1c27a52
...
@@ -33,9 +33,19 @@ public class ValidationPlan {
...
@@ -33,9 +33,19 @@ public class ValidationPlan {
@XmlElement
(
name
=
"schematron_file"
,
required
=
false
)
@XmlElement
(
name
=
"schematron_file"
,
required
=
false
)
private
String
schematronFile
;
private
String
schematronFile
;
private
double
minVertexDistance
;
@XmlElement
(
name
=
"check"
,
required
=
true
)
@XmlElement
(
name
=
"check"
,
required
=
true
)
private
List
<
PlanCheck
>
checks
;
private
List
<
PlanCheck
>
checks
;
public
void
setMinVertexDistance
(
double
minVertexDistance
)
{
this
.
minVertexDistance
=
minVertexDistance
;
}
public
double
getMinVertexDistance
()
{
return
minVertexDistance
;
}
public
void
setSchematronFile
(
String
schematronFile
)
{
public
void
setSchematronFile
(
String
schematronFile
)
{
this
.
schematronFile
=
schematronFile
;
this
.
schematronFile
=
schematronFile
;
...
...
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/reporting/XmlStreamReporter.java
View file @
c1c27a52
...
@@ -111,6 +111,7 @@ public class XmlStreamReporter implements StreamReporter {
...
@@ -111,6 +111,7 @@ public class XmlStreamReporter implements StreamReporter {
private
ValidationPlan
createValidationPlan
()
{
private
ValidationPlan
createValidationPlan
()
{
ValidationPlan
plan
=
new
ValidationPlan
();
ValidationPlan
plan
=
new
ValidationPlan
();
plan
.
setMinVertexDistance
(
config
.
getMinVertexDistance
());
plan
.
setNumberOfRoundingPlaces
(
config
.
getNumberOfRoundingPlaces
());
plan
.
setNumberOfRoundingPlaces
(
config
.
getNumberOfRoundingPlaces
());
List
<
PlanCheck
>
checkConfigs
=
new
ArrayList
<>();
List
<
PlanCheck
>
checkConfigs
=
new
ArrayList
<>();
plan
.
setChecks
(
checkConfigs
);
plan
.
setChecks
(
checkConfigs
);
...
...
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/reporting/pdf/PdfStreamReporter.java
View file @
c1c27a52
...
@@ -131,6 +131,7 @@ public class PdfStreamReporter implements StreamReporter {
...
@@ -131,6 +131,7 @@ public class PdfStreamReporter implements StreamReporter {
private
void
writeValidationPlan
()
{
private
void
writeValidationPlan
()
{
Section
vp
=
report
.
createSection
(
"Validation Plan"
,
true
);
Section
vp
=
report
.
createSection
(
"Validation Plan"
,
true
);
vp
.
addTextElement
(
"numberOfRoundingPlaces = "
+
config
.
getNumberOfRoundingPlaces
());
vp
.
addTextElement
(
"numberOfRoundingPlaces = "
+
config
.
getNumberOfRoundingPlaces
());
vp
.
addTextElement
(
"minVertexDistance = "
+
config
.
getMinVertexDistance
());
if
(
config
.
getSchematronFilePath
()
!=
null
&&
!
config
.
getSchematronFilePath
().
isEmpty
())
{
if
(
config
.
getSchematronFilePath
()
!=
null
&&
!
config
.
getSchematronFilePath
().
isEmpty
())
{
vp
.
addTextElement
(
"Schematron file: "
+
config
.
getSchematronFilePath
());
vp
.
addTextElement
(
"Schematron file: "
+
config
.
getSchematronFilePath
());
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment