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
0d3d43e0
Commit
0d3d43e0
authored
Jan 22, 2021
by
Matthias Betz
Browse files
updating jaxb dependencies to latest jakarta release
parent
b3aa90b9
Pipeline
#1888
passed with stage
in 1 minute and 56 seconds
Changes
32
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorCheckResult/src/main/java/de/hft/stuttgart/citydoctor2/checkresult/PolygonsReport.java
View file @
0d3d43e0
...
...
@@ -21,10 +21,10 @@ package de.hft.stuttgart.citydoctor2.checkresult;
import
java.util.ArrayList
;
import
java.util.List
;
import
ja
vax
.xml.bind.annotation.XmlAccessType
;
import
ja
vax
.xml.bind.annotation.XmlAccessorType
;
import
ja
vax
.xml.bind.annotation.XmlAttribute
;
import
ja
vax
.xml.bind.annotation.XmlElement
;
import
ja
karta
.xml.bind.annotation.XmlAccessType
;
import
ja
karta
.xml.bind.annotation.XmlAccessorType
;
import
ja
karta
.xml.bind.annotation.XmlAttribute
;
import
ja
karta
.xml.bind.annotation.XmlElement
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
PolygonsReport
{
...
...
CityDoctorParent/CityDoctorCheckResult/src/main/java/de/hft/stuttgart/citydoctor2/checkresult/RingReport.java
View file @
0d3d43e0
...
...
@@ -21,10 +21,10 @@ package de.hft.stuttgart.citydoctor2.checkresult;
import
java.util.ArrayList
;
import
java.util.List
;
import
ja
vax
.xml.bind.annotation.XmlAccessType
;
import
ja
vax
.xml.bind.annotation.XmlAccessorType
;
import
ja
vax
.xml.bind.annotation.XmlAttribute
;
import
ja
vax
.xml.bind.annotation.XmlElement
;
import
ja
karta
.xml.bind.annotation.XmlAccessType
;
import
ja
karta
.xml.bind.annotation.XmlAccessorType
;
import
ja
karta
.xml.bind.annotation.XmlAttribute
;
import
ja
karta
.xml.bind.annotation.XmlElement
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
RingReport
{
...
...
CityDoctorParent/CityDoctorCheckResult/src/main/java/de/hft/stuttgart/citydoctor2/checkresult/Statistics.java
View file @
0d3d43e0
...
...
@@ -21,10 +21,10 @@ package de.hft.stuttgart.citydoctor2.checkresult;
import
java.util.ArrayList
;
import
java.util.List
;
import
ja
vax
.xml.bind.annotation.XmlAccessType
;
import
ja
vax
.xml.bind.annotation.XmlAccessorType
;
import
ja
vax
.xml.bind.annotation.XmlElement
;
import
ja
vax
.xml.bind.annotation.XmlElementWrapper
;
import
ja
karta
.xml.bind.annotation.XmlAccessType
;
import
ja
karta
.xml.bind.annotation.XmlAccessorType
;
import
ja
karta
.xml.bind.annotation.XmlElement
;
import
ja
karta
.xml.bind.annotation.XmlElementWrapper
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Statistics
{
...
...
CityDoctorParent/CityDoctorCheckResult/src/main/java/de/hft/stuttgart/citydoctor2/checkresult/SurfaceReport.java
View file @
0d3d43e0
...
...
@@ -18,9 +18,9 @@
*/
package
de.hft.stuttgart.citydoctor2.checkresult
;
import
ja
vax
.xml.bind.annotation.XmlAccessType
;
import
ja
vax
.xml.bind.annotation.XmlAccessorType
;
import
ja
vax
.xml.bind.annotation.XmlAttribute
;
import
ja
karta
.xml.bind.annotation.XmlAccessType
;
import
ja
karta
.xml.bind.annotation.XmlAccessorType
;
import
ja
karta
.xml.bind.annotation.XmlAttribute
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
SurfaceReport
{
...
...
CityDoctorParent/CityDoctorCheckResult/src/main/java/de/hft/stuttgart/citydoctor2/checkresult/ValidationPlan.java
View file @
0d3d43e0
...
...
@@ -21,9 +21,9 @@ package de.hft.stuttgart.citydoctor2.checkresult;
import
java.util.ArrayList
;
import
java.util.List
;
import
ja
vax
.xml.bind.annotation.XmlAccessType
;
import
ja
vax
.xml.bind.annotation.XmlAccessorType
;
import
ja
vax
.xml.bind.annotation.XmlElement
;
import
ja
karta
.xml.bind.annotation.XmlAccessType
;
import
ja
karta
.xml.bind.annotation.XmlAccessorType
;
import
ja
karta
.xml.bind.annotation.XmlElement
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
ValidationPlan
{
...
...
CityDoctorParent/CityDoctorCheckResult/src/main/java/de/hft/stuttgart/citydoctor2/checkresult/ValidationResults.java
View file @
0d3d43e0
...
...
@@ -21,10 +21,10 @@ package de.hft.stuttgart.citydoctor2.checkresult;
import
java.util.ArrayList
;
import
java.util.List
;
import
ja
vax
.xml.bind.annotation.XmlAccessType
;
import
ja
vax
.xml.bind.annotation.XmlAccessorType
;
import
ja
vax
.xml.bind.annotation.XmlElement
;
import
ja
vax
.xml.bind.annotation.XmlElementWrapper
;
import
ja
karta
.xml.bind.annotation.XmlAccessType
;
import
ja
karta
.xml.bind.annotation.XmlAccessorType
;
import
ja
karta
.xml.bind.annotation.XmlElement
;
import
ja
karta
.xml.bind.annotation.XmlElementWrapper
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
ValidationResults
{
...
...
CityDoctorParent/CityDoctorCheckResult/src/main/java/de/hft/stuttgart/citydoctor2/checkresult/VertexReport.java
View file @
0d3d43e0
...
...
@@ -18,9 +18,9 @@
*/
package
de.hft.stuttgart.citydoctor2.checkresult
;
import
ja
vax
.xml.bind.annotation.XmlAccessType
;
import
ja
vax
.xml.bind.annotation.XmlAccessorType
;
import
ja
vax
.xml.bind.annotation.XmlAttribute
;
import
ja
karta
.xml.bind.annotation.XmlAccessType
;
import
ja
karta
.xml.bind.annotation.XmlAccessorType
;
import
ja
karta
.xml.bind.annotation.XmlAttribute
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
VertexReport
{
...
...
CityDoctorParent/CityDoctorCheckResult/src/main/java/de/hft/stuttgart/citydoctor2/checkresult/package-info.java
View file @
0d3d43e0
...
...
@@ -21,6 +21,6 @@
})
package
de.hft.stuttgart.citydoctor2.checkresult
;
import
javax.xml.bind.annotation.XmlSchema
;
import
javax.xml.bind.annotation.XmlNs
;
import
javax.xml.bind.annotation.XmlNsForm
;
\ No newline at end of file
import
jakarta.xml.bind.annotation.XmlNs
;
import
jakarta.xml.bind.annotation.XmlNsForm
;
import
jakarta.xml.bind.annotation.XmlSchema
;
\ No newline at end of file
CityDoctorParent/CityDoctorCheckResult/src/main/java/de/hft/stuttgart/citydoctor2/marshaller/DoubleAdapter.java
View file @
0d3d43e0
...
...
@@ -18,7 +18,7 @@
*/
package
de.hft.stuttgart.citydoctor2.marshaller
;
import
ja
vax
.xml.bind.annotation.adapters.XmlAdapter
;
import
ja
karta
.xml.bind.annotation.adapters.XmlAdapter
;
public
class
DoubleAdapter
extends
XmlAdapter
<
String
,
Double
>
{
...
...
CityDoctorParent/CityDoctorCheckResult/src/main/java/de/hft/stuttgart/citydoctor2/marshaller/ZonedDateTimeAdapter.java
View file @
0d3d43e0
...
...
@@ -21,7 +21,7 @@ package de.hft.stuttgart.citydoctor2.marshaller;
import
java.time.ZonedDateTime
;
import
java.time.format.DateTimeFormatter
;
import
ja
vax
.xml.bind.annotation.adapters.XmlAdapter
;
import
ja
karta
.xml.bind.annotation.adapters.XmlAdapter
;
public
class
ZonedDateTimeAdapter
extends
XmlAdapter
<
String
,
ZonedDateTime
>
{
...
...
CityDoctorParent/CityDoctorCheckResult/src/test/java/CheckReportTest.java
deleted
100644 → 0
View file @
b3aa90b9
/*-
* Copyright 2020 Beuth Hochschule für Technik Berlin, Hochschule für Technik Stuttgart
*
* This file is part of CityDoctor2.
*
* CityDoctor2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* CityDoctor2 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with CityDoctor2. If not, see <https://www.gnu.org/licenses/>.
*/
import
java.util.List
;
import
de.hft.stuttgart.citydoctor2.checkresult.CheckReport
;
import
de.hft.stuttgart.citydoctor2.checkresult.EdgeReport
;
import
de.hft.stuttgart.citydoctor2.checkresult.Environment
;
import
de.hft.stuttgart.citydoctor2.checkresult.ErrorDetails
;
import
de.hft.stuttgart.citydoctor2.checkresult.ErrorReport
;
import
de.hft.stuttgart.citydoctor2.checkresult.ErrorStatistic
;
import
de.hft.stuttgart.citydoctor2.checkresult.FeatureReport
;
import
de.hft.stuttgart.citydoctor2.checkresult.GlobalErrorStatistics
;
import
de.hft.stuttgart.citydoctor2.checkresult.GlobalStatistics
;
import
de.hft.stuttgart.citydoctor2.checkresult.Header
;
import
de.hft.stuttgart.citydoctor2.checkresult.ModelStatistics
;
import
de.hft.stuttgart.citydoctor2.checkresult.PlanCheck
;
import
de.hft.stuttgart.citydoctor2.checkresult.PlanParameter
;
import
de.hft.stuttgart.citydoctor2.checkresult.Statistics
;
import
de.hft.stuttgart.citydoctor2.checkresult.ValidationPlan
;
import
de.hft.stuttgart.citydoctor2.checkresult.ValidationResults
;
import
de.hft.stuttgart.citydoctor2.checkresult.VertexReport
;
import
de.hft.stuttgart.citydoctor2.checkresult.utility.CheckReportParseException
;
public
class
CheckReportTest
{
public
static
void
main
(
String
[]
args
)
throws
CheckReportParseException
{
// String file = args[0];
String
file
=
"output.xml"
;
CheckReport
report
=
CheckReport
.
load
(
file
);
Header
header
=
report
.
getHeader
();
System
.
out
.
println
(
"File: "
+
header
.
getFile
());
System
.
out
.
println
(
"Time: "
+
header
.
getDate
());
Environment
environment
=
header
.
getEnvironment
();
System
.
out
.
println
(
"Java version: "
+
environment
.
getJavaVersion
());
System
.
out
.
println
(
"Java VM Vendor: "
+
environment
.
getJavaVmVendor
());
System
.
out
.
println
(
"Java VM Version: "
+
environment
.
getJavaVmVersion
());
System
.
out
.
println
(
"OS Architecture: "
+
environment
.
getOsArch
());
System
.
out
.
println
(
"OS Name: "
+
environment
.
getOsName
());
System
.
out
.
println
(
"Validation Version: "
+
environment
.
getValidationVersion
());
ValidationPlan
validationPlan
=
report
.
getValidationPlan
();
System
.
out
.
println
();
System
.
out
.
println
(
"ValidationPlan:"
);
System
.
out
.
println
(
"minVertexDistance: "
+
validationPlan
.
getNumberOfRoundingPlaces
());
for
(
PlanCheck
pCheck
:
validationPlan
.
getChecks
())
{
System
.
out
.
println
(
"Check: "
+
pCheck
.
getName
());
System
.
out
.
println
(
"\tEnabled: "
+
pCheck
.
isActivated
());
if
(!
pCheck
.
getParameters
().
isEmpty
())
{
for
(
PlanParameter
para
:
pCheck
.
getParameters
())
{
System
.
out
.
println
(
"\tParameter: "
+
para
.
getName
()
+
"="
+
para
.
getValue
());
}
}
}
GlobalStatistics
globalStatistics
=
report
.
getGlobalStatistics
();
List
<
ErrorStatistic
>
errorStats
=
globalStatistics
.
getErrorStats
();
System
.
out
.
println
();
System
.
out
.
println
(
"ErrorStatistics:"
);
for
(
ErrorStatistic
eStat
:
errorStats
)
{
System
.
out
.
println
(
"Error "
+
eStat
.
getName
()
+
" occured "
+
eStat
.
getCount
()
+
" times"
);
}
ModelStatistics
modelStats
=
globalStatistics
.
getModelStats
();
System
.
out
.
println
();
System
.
out
.
println
(
"ModelStatistics:"
);
System
.
out
.
println
(
"Number of Buildings: "
+
modelStats
.
getNumBuildings
());
System
.
out
.
println
(
"Number of Bridges: "
+
modelStats
.
getNumBridgeObjects
());
System
.
out
.
println
(
"Number of Vegetation: "
+
modelStats
.
getNumVegetation
());
System
.
out
.
println
(
"Number of WaterObjects: "
+
modelStats
.
getNumWaterObjects
());
System
.
out
.
println
(
"Number of Transportation: "
+
modelStats
.
getNumTransportation
());
System
.
out
.
println
(
"Number of LandObjects: "
+
modelStats
.
getNumLandObjects
());
GlobalErrorStatistics
globalErrorStats
=
globalStatistics
.
getGlobalErrorStats
();
System
.
out
.
println
(
"Errornous Feature Statistics"
);
System
.
out
.
println
(
"Number of Buildings: "
+
globalErrorStats
.
getNumErrorBuildings
());
System
.
out
.
println
(
"Number of Bridges: "
+
globalErrorStats
.
getNumErrorBridgeObjects
());
System
.
out
.
println
(
"Number of Vegetation: "
+
globalErrorStats
.
getNumErrorVegetation
());
System
.
out
.
println
(
"Number of WaterObjects: "
+
globalErrorStats
.
getNumErrorWaterObjects
());
System
.
out
.
println
(
"Number of Transportation: "
+
globalErrorStats
.
getNumErrorTransportation
());
System
.
out
.
println
(
"Number of LandObjects: "
+
globalErrorStats
.
getNumErrorLandObjects
());
ValidationResults
validationResults
=
report
.
getValidationResults
();
System
.
out
.
println
();
System
.
out
.
println
(
"ValidationResults:"
);
/*
* Alternative way to access the validation results by using the gmlID of a feature:
*
* FeatureReport featureReportForId = report.getFeatureReportForId("GML-ID");
*/
System
.
out
.
println
(
"Buildings:"
);
printReports
(
validationResults
.
getBuildingReports
());
System
.
out
.
println
(
"Vegetation:"
);
printReports
(
validationResults
.
getVegetationReports
());
System
.
out
.
println
(
"Bridges:"
);
printReports
(
validationResults
.
getBridgeReports
());
System
.
out
.
println
(
"WaterObjects:"
);
printReports
(
validationResults
.
getWaterReports
());
System
.
out
.
println
(
"LandObjects:"
);
printReports
(
validationResults
.
getLandReports
());
System
.
out
.
println
(
"Transportation:"
);
printReports
(
validationResults
.
getTransportationReports
());
}
private
static
void
printReports
(
List
<
FeatureReport
>
reports
)
{
for
(
FeatureReport
fReport
:
reports
)
{
System
.
out
.
println
(
"GML-ID: "
+
fReport
.
getGmlId
());
Statistics
statistics
=
fReport
.
getStatistics
();
if
(
statistics
!=
null
&&
statistics
.
getErrorStats
()
!=
null
&&
!
statistics
.
getErrorStats
().
isEmpty
())
{
System
.
out
.
println
(
"\tStatistics:"
);
for
(
ErrorStatistic
eStat
:
statistics
.
getErrorStats
())
{
System
.
out
.
println
(
"\tError "
+
eStat
.
getName
()
+
" occured "
+
eStat
.
getCount
()
+
" times"
);
}
}
List
<
ErrorReport
>
errors
=
fReport
.
getErrors
();
if
(!
errors
.
isEmpty
())
{
System
.
out
.
println
(
"\tErrors:"
);
}
for
(
ErrorReport
errReport
:
errors
)
{
System
.
out
.
println
(
"\tError ID: "
+
errReport
.
getId
()
+
" with status: "
+
errReport
.
getStatus
());
ErrorDetails
errorDetails
=
errReport
.
getErrorDetails
();
if
(
errorDetails
!=
null
)
{
System
.
out
.
println
(
"\tError Details:"
);
for
(
EdgeReport
edgeReport
:
errorDetails
.
getEdge
())
{
if
(
edgeReport
.
getName
()
!=
null
)
{
System
.
out
.
println
(
"\t\t"
+
edgeReport
.
getName
());
}
System
.
out
.
println
(
"\t\t"
+
toString
(
edgeReport
));
}
// more details
}
}
System
.
out
.
println
();
}
}
private
static
String
toString
(
EdgeReport
edgeReport
)
{
return
"Edge from: "
+
toString
(
edgeReport
.
getFrom
())
+
" to "
+
toString
(
edgeReport
.
getTo
());
}
private
static
String
toString
(
VertexReport
from
)
{
return
"Vertex["
+
from
.
getX
()
+
", "
+
from
.
getY
()
+
", "
+
from
.
getZ
()
+
"]"
;
}
}
CityDoctorParent/pom.xml
View file @
0d3d43e0
...
...
@@ -145,21 +145,15 @@
<artifactId>
jts-core
</artifactId>
<version>
1.16.1
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-core -->
<dependency>
<groupId>
com.sun.xml.bind
</groupId>
<artifactId>
jaxb-core
</artifactId>
<version>
2.3.0.1
</version>
</dependency>
<dependency>
<groupId>
javax.xml.bind
</groupId>
<artifactId>
jaxb-api
</artifactId>
<version>
2.3.1
</version>
<artifactId>
jaxb-impl
</artifactId>
<version>
3.0.0
</version>
</dependency>
<dependency>
<groupId>
com.sun
.xml.bind
</groupId>
<artifactId>
ja
xb-impl
</artifactId>
<version>
2.3.1
</version>
<groupId>
jakarta
.xml.bind
</groupId>
<artifactId>
ja
karta.xml.bind-api
</artifactId>
<version>
3.0.0
</version>
</dependency>
</dependencies>
</dependencyManagement>
...
...
Prev
1
2
Next
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