Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
QualityADE
Commits
571a3248
Commit
571a3248
authored
Mar 30, 2022
by
Matthias Betz
Browse files
update model for citygml4j 3 and quality ade 1.4.0
parent
009cef54
Changes
127
Expand all
Hide whitespace changes
Inline
Side-by-side
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/types/AbstractError.java
0 → 100644
View file @
571a3248
/*-
* Copyright 2022 Hochschule für Technik Stuttgart
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.quality.model.types
;
import
java.io.Serial
;
import
org.xmlobjects.gml.model.GMLObject
;
public
abstract
class
AbstractError
extends
GMLObject
{
@Serial
private
static
final
long
serialVersionUID
=
4456303926951620441L
;
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb/InteriorDisconnectedType
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/AbstractGeometryError
.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,11 +13,13 @@
...
@@ -13,11 +13,13 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model.
jaxb
;
package
de.hft.stuttgart.quality.model.
types
;
import
java
x.xml.bind.annotation.XmlRootElement
;
import
java
.io.Serial
;
@XmlRootElement
(
name
=
"GE_P_INTERIOR_DISCONNECTED"
)
public
abstract
class
AbstractGeometryError
extends
AbstractError
{
public
class
InteriorDisconnectedType
extends
PolygonErrorType
{
@Serial
private
static
final
long
serialVersionUID
=
5584980708521134866L
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/PolygonError.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/Abstract
PolygonError.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,19 +13,23 @@
...
@@ -13,19 +13,23 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model
;
package
de.hft.stuttgart.quality.model
.types
;
public
abstract
class
PolygonError
extends
ValidationError
{
import
java.io.Serial
;
private
static
final
long
serialVersionUID
=
4694297467768369526L
;
public
abstract
class
AbstractPolygonError
extends
AbstractGeometryError
{
@Serial
private
static
final
long
serialVersionUID
=
8765755615504522764L
;
private
String
polygonId
;
private
String
polygonId
;
public
String
getPolygonId
()
{
return
polygonId
;
}
public
void
setPolygonId
(
String
polygonId
)
{
public
void
setPolygonId
(
String
polygonId
)
{
this
.
polygonId
=
polygonId
;
this
.
polygonId
=
polygonId
;
}
}
public
String
getPolygonId
()
{
return
polygonId
;
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb/OrientationRingsSameType
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/AbstractRingError
.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,21 +13,23 @@
...
@@ -13,21 +13,23 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model.
jaxb
;
package
de.hft.stuttgart.quality.model.
types
;
import
java
x.xml.bind.annotation.XmlRootElement
;
import
java
.io.Serial
;
@XmlRootElement
(
name
=
"GE_P_ORIENTATION_RINGS_SAME"
)
public
abstract
class
AbstractRingError
extends
AbstractGeometryError
{
public
class
OrientationRingsSameType
extends
PolygonErrorType
{
private
String
linearRingId
;
@Serial
private
static
final
long
serialVersionUID
=
6406932524599157467L
;
public
void
setLinearRingId
(
String
linearRingId
)
{
this
.
linearRingId
=
linearRingId
;
private
String
linearRingId
;
}
public
String
getLinearRingId
()
{
public
String
getLinearRingId
()
{
return
linearRingId
;
return
linearRingId
;
}
}
public
void
setLinearRingId
(
String
linearRingId
)
{
this
.
linearRingId
=
linearRingId
;
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/SemanticError.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/Abstract
SemanticError.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,10 +13,13 @@
...
@@ -13,10 +13,13 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model
;
package
de.hft.stuttgart.quality.model
.types
;
public
abstract
class
SemanticError
extends
ValidationError
{
import
java.io.Serial
;
private
static
final
long
serialVersionUID
=
8986289777859562928L
;
public
abstract
class
AbstractSemanticError
extends
AbstractError
{
@Serial
private
static
final
long
serialVersionUID
=
3754322190455789991L
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/SolidError.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/Abstract
SolidError.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,18 +13,23 @@
...
@@ -13,18 +13,23 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model
;
package
de.hft.stuttgart.quality.model
.types
;
public
abstract
class
SolidError
extends
ValidationError
{
import
java.io.Serial
;
private
static
final
long
serialVersionUID
=
6430138970493794998L
;
private
String
geometryId
;
public
void
setGeometryId
(
String
geometryId
)
{
public
abstract
class
AbstractSolidError
extends
AbstractGeometryError
{
this
.
geometryId
=
geometryId
;
}
@Serial
private
static
final
long
serialVersionUID
=
8616094562996823088L
;
private
String
geometryId
;
public
String
getGeometryId
()
{
public
String
getGeometryId
()
{
return
geometryId
;
return
geometryId
;
}
}
public
void
setGeometryId
(
String
geometryId
)
{
this
.
geometryId
=
geometryId
;
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/types/AllPolygonsOrientedWrongError.java
0 → 100644
View file @
571a3248
/*-
* Copyright 2022 Hochschule für Technik Stuttgart
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.quality.model.types
;
import
java.io.Serial
;
public
abstract
class
AllPolygonsOrientedWrongError
extends
AbstractSolidError
{
@Serial
private
static
final
long
serialVersionUID
=
4295306777217062184L
;
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
AllPolygonsWrongOrientation
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/Checking
.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,22 +13,27 @@
...
@@ -13,22 +13,27 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model
;
package
de.hft.stuttgart.quality.model
.types
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
java.io.Serial
;
public
class
AllPolygonsWrongOrientation
extends
SolidError
{
import
org.xmlobjects.gml.model.GMLObject
;
private
static
final
long
serialVersionUID
=
3817224755569965908L
;
import
de.hft.stuttgart.quality.model.enums.TopLevelFeatureType
;
@Override
public
abstract
class
Checking
extends
GMLObject
{
public
String
toString
()
{
return
"AllPolygonsWrongOrientation [geometryId="
+
getGeometryId
()
+
"]"
;
@Serial
private
static
final
long
serialVersionUID
=
8248598807454312291L
;
private
TopLevelFeatureType
featureType
;
public
TopLevelFeatureType
getFeatureType
()
{
return
featureType
;
}
}
@Override
public
void
setFeatureType
(
TopLevelFeatureType
featureType
)
{
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
this
.
featureType
=
featureType
;
return
copyTo
(
new
AllPolygonsWrongOrientation
(),
copyBuilder
);
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb/MultipleConnected
Component
sType
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/
Component
List
.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,31 +13,32 @@
...
@@ -13,31 +13,32 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model.
jaxb
;
package
de.hft.stuttgart.quality.model.
types
;
import
java.io.Serial
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlElement
;
import
org.xmlobjects.gml.model.GMLObject
;
import
javax.xml.bind.annotation.XmlElementWrapper
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
de.hft.stuttgart.quality.model.properties.PolygonIdListProperty
;
@XmlRootElement
(
name
=
"GE_S_MULTIPLE_CONNECTED_COMPONENTS"
)
public
abstract
class
ComponentList
extends
GMLObject
{
public
class
MultipleConnectedComponentsType
extends
SolidErrorType
{
@Serial
@XmlElementWrapper
private
static
final
long
serialVersionUID
=
7846916128728837265L
;
@XmlElement
(
name
=
"component"
)
private
List
<
Component
>
components
;
private
List
<
PolygonIdListProperty
>
components
;
public
boolean
isSetComponents
()
{
public
List
<
PolygonIdListProperty
>
getComponents
()
{
return
components
!=
null
&&
!
components
.
isEmpty
();
}
public
List
<
Component
>
getComponents
()
{
if
(
components
==
null
)
{
if
(
components
==
null
)
{
components
=
new
ArrayList
<>();
components
=
new
ArrayList
<>();
}
}
return
components
;
return
components
;
}
}
public
void
setComponents
(
List
<
PolygonIdListProperty
>
components
)
{
this
.
components
=
components
;
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/ConsecutivePointsSame.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/
ConsecutivePointsSame
Error
.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,43 +13,39 @@
...
@@ -13,43 +13,39 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model
;
package
de.hft.stuttgart.quality.model
.types
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
java.io.Serial
;
import
org.citygml4j.model.gml.geometry.primitives.DirectPosition
;
import
org.xmlobjects.gml.model.geometry.DirectPosition
;
public
abstract
class
ConsecutivePointsSameError
extends
AbstractRingError
{
@Serial
private
static
final
long
serialVersionUID
=
960107689338308020L
;
public
class
ConsecutivePointsSame
extends
RingError
{
private
static
final
long
serialVersionUID
=
-
838421312521561747L
;
private
DirectPosition
vertex1
;
private
DirectPosition
vertex1
;
private
DirectPosition
vertex2
;
private
DirectPosition
vertex2
;
public
void
setVertex1
(
DirectPosition
vertex1
)
{
this
.
vertex1
=
vertex1
;
}
public
void
setVertex2
(
DirectPosition
vertex2
)
{
this
.
vertex2
=
vertex2
;
}
public
DirectPosition
getVertex1
()
{
public
DirectPosition
getVertex1
()
{
return
vertex1
;
return
vertex1
;
}
}
public
void
setVertex1
(
DirectPosition
vertex1
)
{
this
.
vertex1
=
vertex1
;
}
public
DirectPosition
getVertex2
()
{
public
DirectPosition
getVertex2
()
{
return
vertex2
;
return
vertex2
;
}
}
@Override
public
void
setVertex2
(
DirectPosition
vertex2
)
{
public
String
toString
()
{
this
.
vertex2
=
vertex2
;
return
"ConsecutivePointsSame [linearRingId="
+
getLinearRingId
()
+
", vertex1="
+
vertex1
+
", vertex2="
+
vertex2
+
"]"
;
}
}
@Override
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
public
String
toString
(
)
{
return
copyTo
(
new
ConsecutivePointsSame
(),
copyBuilder
)
;
return
"
ConsecutivePointsSame
Error [vertex1="
+
vertex1
+
", vertex2="
+
vertex2
+
"]"
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/Edge.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/
Edge.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,33 +13,40 @@
...
@@ -13,33 +13,40 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model
;
package
de.hft.stuttgart.quality.model
.types
;
import
java.io.Serial
izable
;
import
java.io.Serial
;
import
org.citygml4j.model.gml.geometry.primitives.DirectPosition
;
import
org.xmlobjects.gml.model.GMLObject
;
import
org.xmlobjects.gml.model.geometry.DirectPosition
;
public
abstract
class
Edge
extends
GMLObject
{
@Serial
private
static
final
long
serialVersionUID
=
8021062845313752146L
;
public
class
Edge
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5076265818764666094L
;
private
DirectPosition
from
;
private
DirectPosition
from
;
private
DirectPosition
to
;
private
DirectPosition
to
;
public
DirectPosition
getFrom
()
{
return
from
;
}
public
void
setFrom
(
DirectPosition
from
)
{
public
void
setFrom
(
DirectPosition
from
)
{
this
.
from
=
from
;
this
.
from
=
from
;
}
}
public
DirectPosition
getTo
()
{
return
to
;
}
public
void
setTo
(
DirectPosition
to
)
{
public
void
setTo
(
DirectPosition
to
)
{
this
.
to
=
to
;
this
.
to
=
to
;
}
}
public
DirectPosition
getFrom
()
{
@Override
return
from
;
public
String
toString
()
{
}
return
"Edge [from="
+
from
+
", to="
+
to
+
"]"
;
public
DirectPosition
getTo
()
{
return
to
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
NonManifoldEdge
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/EdgeList
.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,32 +13,32 @@
...
@@ -13,32 +13,32 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model
;
package
de.hft.stuttgart.quality.model
.types
;
import
java.io.Serial
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
org.
citygml4j.builder.copy.CopyBuilder
;
import
org.
xmlobjects.gml.model.GMLObject
;
public
class
NonManifoldEdge
extends
SolidError
{
import
de.hft.stuttgart.quality.model.properties.EdgeProperty
;
private
static
final
long
serialVersionUID
=
-
4312748985706248178L
;
public
abstract
class
EdgeList
extends
GMLObject
{
private
List
<
Edge
>
edges
;
@Serial
private
static
final
long
serialVersionUID
=
5900643456940461301L
;
private
List
<
EdgeProperty
>
edges
;
public
boolean
isSetEdges
()
{
public
List
<
EdgeProperty
>
getEdges
()
{
return
edges
!=
null
&&
!
edges
.
isEmpty
();
}
public
List
<
Edge
>
getEdges
()
{
if
(
edges
==
null
)
{
if
(
edges
==
null
)
{
edges
=
new
ArrayList
<>();
edges
=
new
ArrayList
<>();
}
}
return
edges
;
return
edges
;
}
}
@Override
public
void
setEdges
(
List
<
EdgeProperty
>
edges
)
{
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
this
.
edges
=
edges
;
return
copyTo
(
new
NonPlanarNormalsDeviation
(),
copyBuilder
);
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb
/Error
Statistics
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types
/Error.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,45 +13,41 @@
...
@@ -13,45 +13,41 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model.
jaxb
;
package
de.hft.stuttgart.quality.model.
types
;
import
java.io.Serial
izable
;
import
java.io.Serial
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
org.xmlobjects.gml.model.GMLObject
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAttribute
;
import
javax.xml.bind.annotation.XmlValue
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
import
de.hft.stuttgart.quality.model.enums.ErrorId
;
public
class
ErrorStatistics
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1007447539987946146L
;
@XmlAttribute
public
abstract
class
Error
extends
GMLObject
{
@Serial
private
static
final
long
serialVersionUID
=
2447962257841143458L
;
private
int
occurences
;
private
ErrorId
name
;
private
ErrorId
name
;
@XmlValue
public
int
getOccurences
()
{
private
int
amount
;
return
occurences
;
}
public
void
setName
(
ErrorId
name
)
{
this
.
name
=
name
;
public
void
setOccurences
(
int
occurences
)
{
this
.
occurences
=
occurences
;
}
}
public
ErrorId
getName
()
{
public
ErrorId
getName
()
{
return
name
;
return
name
;
}
}
public
void
setAmount
(
int
amount
)
{
public
void
setName
(
ErrorId
name
)
{
this
.
amount
=
amount
;
this
.
name
=
name
;
}
public
int
getAmount
()
{
return
amount
;
}
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"Error
Statistics [name="
+
name
+
", am
ount
="
+
am
ount
+
"]"
;
return
"Error
[occurences="
+
occurences
+
",
n
am
e
="
+
n
am
e
+
"]"
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb
/FeatureStatistics.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types
/FeatureStatistics.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,52 +13,34 @@
...
@@ -13,52 +13,34 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model.
jaxb
;
package
de.hft.stuttgart.quality.model.
types
;
import
java.io.Serial
izable
;
import
java.io.Serial
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
org.xmlobjects.gml.model.GMLObject
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAttribute
;
import
javax.xml.bind.annotation.XmlValue
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
abstract
class
FeatureStatistics
extends
GMLObject
{
public
class
FeatureStatistics
implements
Serializable
{
private
static
final
long
serialVersionUID
=
5794335930507488398L
;
@Serial
private
static
final
long
serialVersionUID
=
5835765260535725839L
;
@XmlAttribute
private
int
numChecked
;
private
int
numChecked
;
@XmlValue
private
int
numErrors
;
private
int
numErrors
;
public
FeatureStatistics
()
{
public
int
getNumChecked
()
{
}
return
numChecked
;
public
FeatureStatistics
(
int
numChecked
,
int
numErrors
)
{
this
.
numChecked
=
numChecked
;
this
.
numErrors
=
numErrors
;
}
}
public
void
setNumChecked
(
int
numChecked
)
{
public
void
setNumChecked
(
int
numChecked
)
{
this
.
numChecked
=
numChecked
;
this
.
numChecked
=
numChecked
;
}
}
public
void
setNumErrors
(
int
numErrors
)
{
this
.
numErrors
=
numErrors
;
}
public
int
getNumChecked
()
{
return
numChecked
;
}
public
int
getNumErrors
()
{
public
int
getNumErrors
()
{
return
numErrors
;
return
numErrors
;
}
}
@Override
public
void
setNumErrors
(
int
numErrors
)
{
public
String
toString
()
{
this
.
numErrors
=
numErrors
;
return
"FeatureStatistics [numChecked="
+
numChecked
+
", numErrors="
+
numErrors
+
"]"
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb/SolidNotClosedType
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/Filter
.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,31 +13,32 @@
...
@@ -13,31 +13,32 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model.
jaxb
;
package
de.hft.stuttgart.quality.model.
types
;
import
java.io.Serial
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlElement
;
import
org.xmlobjects.gml.model.GMLObject
;
import
javax.xml.bind.annotation.XmlElementWrapper
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
(
name
=
"GE_S_NOT_CLOSED"
)
import
de.hft.stuttgart.quality.model.properties.CheckingProperty
;
public
class
SolidNotClosedType
extends
SolidErrorType
{
@XmlElementWrapper
public
abstract
class
Filter
extends
GMLObject
{
@XmlElement
(
name
=
"edge"
)
private
List
<
EdgeType
>
edges
;
public
boolean
isSetEdges
()
{
@Serial
return
edges
!=
null
&&
!
edges
.
isEmpty
();
private
static
final
long
serialVersionUID
=
2766323821940477659L
;
}
private
List
<
CheckingProperty
>
checking
;
public
List
<
EdgeType
>
getEdges
()
{
public
List
<
CheckingProperty
>
getChecking
()
{
if
(
edges
==
null
)
{
if
(
checking
==
null
)
{
edges
=
new
ArrayList
<>();
checking
=
new
ArrayList
<>();
}
}
return
edges
;
return
checking
;
}
public
void
setChecking
(
List
<
CheckingProperty
>
checking
)
{
this
.
checking
=
checking
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb/NonManifoldEdgeType
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/GlobalParameters
.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,31 +13,32 @@
...
@@ -13,31 +13,32 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model.
jaxb
;
package
de.hft.stuttgart.quality.model.
types
;
import
java.io.Serial
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlElement
;
import
org.xmlobjects.gml.model.GMLObject
;
import
javax.xml.bind.annotation.XmlElementWrapper
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
(
name
=
"GE_S_NON_MANIFOLD_EDGE"
)
import
de.hft.stuttgart.quality.model.properties.ParameterProperty
;
public
class
NonManifoldEdgeType
extends
SolidErrorType
{
@XmlElementWrapper
public
abstract
class
GlobalParameters
extends
GMLObject
{
@XmlElement
(
name
=
"edge"
)
private
List
<
EdgeType
>
edges
;
public
boolean
isSetEdges
()
{
@Serial
return
edges
!=
null
&&
!
edges
.
isEmpty
();
private
static
final
long
serialVersionUID
=
5470016232480954926L
;
}
private
List
<
ParameterProperty
>
parameters
;
public
List
<
EdgeType
>
getEdge
s
()
{
public
List
<
ParameterProperty
>
getParameter
s
()
{
if
(
edge
s
==
null
)
{
if
(
parameter
s
==
null
)
{
edge
s
=
new
ArrayList
<>();
parameter
s
=
new
ArrayList
<>();
}
}
return
edges
;
return
parameters
;
}
public
void
setParameters
(
List
<
ParameterProperty
>
parameters
)
{
this
.
parameters
=
parameters
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb
/HoleOutside
Type
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types
/HoleOutside
Error
.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,21 +13,28 @@
...
@@ -13,21 +13,28 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model.
jaxb
;
package
de.hft.stuttgart.quality.model.
types
;
import
java
x.xml.bind.annotation.XmlRootElement
;
import
java
.io.Serial
;
@XmlRootElement
(
name
=
"GE_P_HOLE_OUTSIDE"
)
public
abstract
class
HoleOutsideError
extends
AbstractPolygonError
{
public
class
HoleOutsideType
extends
PolygonErrorType
{
@Serial
private
static
final
long
serialVersionUID
=
7823516103018988170L
;
private
String
linearRingId
;
private
String
linearRingId
;
public
String
getLinearRingId
()
{
return
linearRingId
;
}
public
void
setLinearRingId
(
String
linearRingId
)
{
public
void
setLinearRingId
(
String
linearRingId
)
{
this
.
linearRingId
=
linearRingId
;
this
.
linearRingId
=
linearRingId
;
}
}
public
String
getLinearRingId
()
{
@Override
return
linearRingId
;
public
String
toString
()
{
return
"HoleOutsideError [linearRingId="
+
linearRingId
+
"]"
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/InnerRingsNested.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/
InnerRingsNested
Error
.java
View file @
571a3248
/*-
/*-
* Copyright 202
0
Hochschule für Technik Stuttgart
* Copyright 202
2
Hochschule für Technik Stuttgart
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -13,35 +13,37 @@
...
@@ -13,35 +13,37 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
de.hft.stuttgart.quality.model
;
package
de.hft.stuttgart.quality.model
.types
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
java.io.Serial
;
public
class
InnerRingsNested
extends
PolygonError
{
public
abstract
class
InnerRingsNested
Error
extends
Abstract
PolygonError
{
private
static
final
long
serialVersionUID
=
2291087505629924993L
;
@Serial
private
static
final
long
serialVersionUID
=
6801491749796411678L
;
private
String
linearRingId1
;
private
String
linearRingId1
;
private
String
linearRingId2
;
private
String
linearRingId2
;
public
void
setLinearRingId1
(
String
linearRingId1
)
{
this
.
linearRingId1
=
linearRingId1
;
}
public
void
setLinearRingId2
(
String
linearRingId2
)
{
this
.
linearRingId2
=
linearRingId2
;
}
public
String
getLinearRingId1
()
{
public
String
getLinearRingId1
()
{
return
linearRingId1
;
return
linearRingId1
;
}
}
public
void
setLinearRingId1
(
String
linearRingId1
)
{
this
.
linearRingId1
=
linearRingId1
;
}
public
String
getLinearRingId2
()
{
public
String
getLinearRingId2
()
{
return
linearRingId2
;
return
linearRingId2
;
}
}
public
void
setLinearRingId2
(
String
linearRingId2
)
{
this
.
linearRingId2
=
linearRingId2
;
}
@Override
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
public
String
toString
(
)
{
return
copyTo
(
new
InnerRingsNested
(),
copyBuilder
)
;
return
"
InnerRingsNested
Error [linearRingId1="
+
linearRingId1
+
", linearRingId2="
+
linearRingId2
+
"]"
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/types/InteriorDisconnectedError.java
0 → 100644
View file @
571a3248
/*-
* Copyright 2022 Hochschule für Technik Stuttgart
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.quality.model.types
;
import
java.io.Serial
;
public
abstract
class
InteriorDisconnectedError
extends
AbstractPolygonError
{
@Serial
private
static
final
long
serialVersionUID
=
8270468563578479182L
;
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb
/IntersectingRings
Type
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types
/IntersectingRings
Error
.java
View file @
571a3248
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
6
7
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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