Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
QualityADE
Commits
38715130
Commit
38715130
authored
Feb 02, 2023
by
Matthias Betz
Browse files
Merge branch 'citygml3'
parents
6cf1abce
bd8f73de
Pipeline
#7210
passed with stage
in 7 seconds
Changes
191
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/types/GlobalParameters.java
0 → 100644
View file @
38715130
/*-
* 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.util.List
;
import
org.citygml4j.core.model.ade.ADEObject
;
import
org.xmlobjects.gml.model.GMLObject
;
import
org.xmlobjects.model.ChildList
;
import
de.hft.stuttgart.quality.model.properties.ParameterProperty
;
public
class
GlobalParameters
extends
GMLObject
implements
ADEObject
{
private
static
final
long
serialVersionUID
=
5470016232480954926L
;
private
List
<
ParameterProperty
>
parameters
;
public
List
<
ParameterProperty
>
getParameters
()
{
if
(
parameters
==
null
)
{
parameters
=
new
ChildList
<>(
this
);
}
return
parameters
;
}
public
void
setParameters
(
List
<
ParameterProperty
>
parameters
)
{
this
.
parameters
=
asChild
(
parameters
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/HoleOutside.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/
HoleOutside
Error
.java
View file @
38715130
/*-
/*-
* 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,33 @@
...
@@ -13,31 +13,33 @@
* 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.CopyBuilde
r
;
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisito
r
;
public
class
HoleOutside
extends
PolygonError
{
public
class
HoleOutsideError
extends
AbstractPolygonError
{
private
static
final
long
serialVersionUID
=
7823516103018988170L
;
private
static
final
long
serialVersionUID
=
-
3029497342950689843L
;
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
void
accept
(
ValidationErrorVisitor
visitor
)
{
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"HoleOutside
[polygonId="
+
getPolygonId
()
+
",
linearRingId="
+
linearRingId
+
"]"
;
return
"HoleOutside
Error [
linearRingId="
+
linearRingId
+
"]"
;
}
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
HoleOutside
(),
copyBuilder
);
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
IntersectingRings
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/InnerRingsNestedError
.java
View file @
38715130
/*-
/*-
* 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,41 +13,42 @@
...
@@ -13,41 +13,42 @@
* 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.CopyBuilde
r
;
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisito
r
;
public
class
IntersectingRings
extends
PolygonError
{
public
class
InnerRingsNestedError
extends
AbstractPolygonError
{
private
static
final
long
serialVersionUID
=
6801491749796411678L
;
private
static
final
long
serialVersionUID
=
7668529369582991408L
;
private
String
linearRingId1
;
private
String
linearRingId1
;
private
String
linearRingId2
;
private
String
linearRingId2
;
public
String
getLinearRingId1
()
{
return
linearRingId1
;
}
public
void
setLinearRingId1
(
String
linearRingId1
)
{
public
void
setLinearRingId1
(
String
linearRingId1
)
{
this
.
linearRingId1
=
linearRingId1
;
this
.
linearRingId1
=
linearRingId1
;
}
}
public
void
setLinearRingId2
(
String
l
inearRingId2
)
{
public
String
getL
inearRingId2
(
)
{
this
.
linearRingId2
=
linearRingId2
;
return
linearRingId2
;
}
}
public
String
getL
inearRingId
1
(
)
{
public
void
setLinearRingId2
(
String
l
inearRingId
2
)
{
return
linearRingId
1
;
this
.
linearRingId2
=
linearRingId
2
;
}
}
public
String
getLinearRingId2
()
{
@Override
return
linearRingId2
;
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"IntersectingRings [polygonId="
+
getPolygonId
()
+
", linearRingId1="
+
linearRingId1
+
", linearRingId2="
return
"InnerRingsNestedError [linearRingId1="
+
linearRingId1
+
", linearRingId2="
+
linearRingId2
+
"]"
;
+
linearRingId2
+
"]"
;
}
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
IntersectingRings
(),
copyBuilder
);
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/types/InteriorDisconnectedError.java
0 → 100644
View file @
38715130
/*-
* 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
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
public
class
InteriorDisconnectedError
extends
AbstractPolygonError
{
@Override
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
private
static
final
long
serialVersionUID
=
8270468563578479182L
;
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/In
n
er
RingsNested
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/
In
t
er
sectingRingsError
.java
View file @
38715130
/*-
/*-
* 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,42 @@
...
@@ -13,35 +13,42 @@
* 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.CopyBuilde
r
;
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisito
r
;
public
class
In
n
er
RingsNested
extends
PolygonError
{
public
class
In
t
er
sectingRingsError
extends
Abstract
PolygonError
{
private
static
final
long
serialVersionUID
=
2291087505629924993
L
;
private
static
final
long
serialVersionUID
=
4733342962974436966
L
;
private
String
linearRingId1
;
private
String
linearRingId1
;
private
String
linearRingId2
;
private
String
linearRingId2
;
public
String
getLinearRingId1
()
{
return
linearRingId1
;
}
public
void
setLinearRingId1
(
String
linearRingId1
)
{
public
void
setLinearRingId1
(
String
linearRingId1
)
{
this
.
linearRingId1
=
linearRingId1
;
this
.
linearRingId1
=
linearRingId1
;
}
}
public
void
setLinearRingId2
(
String
l
inearRingId2
)
{
public
String
getL
inearRingId2
(
)
{
this
.
linearRingId2
=
linearRingId2
;
return
linearRingId2
;
}
}
public
String
getL
inearRingId
1
(
)
{
public
void
setLinearRingId2
(
String
l
inearRingId
2
)
{
return
linearRingId
1
;
this
.
linearRingId2
=
linearRingId
2
;
}
}
public
String
getLinearRingId2
()
{
@Override
return
linearRingId2
;
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
@Override
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
public
String
toString
(
)
{
return
copyTo
(
new
In
nerRing
sNested
(),
copyBuilder
)
;
return
"IntersectingRingsError [linearRingId1="
+
li
ne
a
rRing
Id1
+
", linearRingId2="
+
linearRingId2
+
"]"
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/MultipleCo
nnectedCo
mponents.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/
MultipleComponents
Error
.java
View file @
38715130
/*-
/*-
* 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,36 @@
...
@@ -13,35 +13,36 @@
* 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.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
org.
citygml4j.builder.copy.CopyBuilder
;
import
org.
xmlobjects.model.ChildList
;
import
de.hft.stuttgart.quality.model.jaxb.Component
;
import
de.hft.stuttgart.quality.model.properties.PolygonIdListProperty
;
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
public
class
MultipleCo
nnectedCo
mponents
extends
SolidError
{
public
class
MultipleComponents
Error
extends
Abstract
SolidError
{
private
static
final
long
serialVersionUID
=
-
4199420154182053060
L
;
private
static
final
long
serialVersionUID
=
4322219502819024437
L
;
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
Array
List
<>();
components
=
new
Child
List
<>(
this
);
}
}
return
components
;
return
components
;
}
}
@Override
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
return
copyTo
(
new
MultipleConnectedComponents
(),
copyBuilder
);
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
public
void
setComponents
(
List
<
PolygonIdListProperty
>
edges
)
{
this
.
components
=
asChild
(
edges
);
}
}
}
}
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/NonManifoldEdgeError
.java
View file @
38715130
/*-
/*-
* 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,29 @@
...
@@ -13,31 +13,29 @@
* 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.util.ArrayList
;
import
de.hft.stuttgart.quality.model.properties.EdgeListProperty
;
import
java.util.List
;
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
import
javax.xml.bind.annotation.XmlElement
;
public
class
NonManifoldEdgeError
extends
AbstractSolidError
{
import
javax.xml.bind.annotation.XmlElementWrapper
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
(
name
=
"GE_S_NOT_CLOSED"
)
private
static
final
long
serialVersionUID
=
3499800929524507025L
;
public
class
SolidNotClosedType
extends
SolidErrorType
{
@XmlElementWrapper
private
EdgeListProperty
edges
;
@XmlElement
(
name
=
"edge"
)
private
List
<
EdgeType
>
edges
;
public
boolean
isS
etEdges
()
{
public
EdgeListProperty
g
etEdges
()
{
return
edges
!=
null
&&
!
edges
.
isEmpty
()
;
return
edges
;
}
}
public
List
<
EdgeType
>
getEdges
()
{
@Override
if
(
edges
==
null
)
{
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
edges
=
new
ArrayList
<>();
super
.
accept
(
visitor
);
}
visitor
.
visit
(
this
);
return
edges
;
}
public
void
setEdges
(
EdgeListProperty
edges
)
{
this
.
edges
=
asChild
(
edges
);
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/NonManifoldVertex.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/
NonManifoldVertex
Error
.java
View file @
38715130
/*-
/*-
* 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,30 @@
...
@@ -13,32 +13,30 @@
* 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
org.xmlobjects.gml.model.geometry.DirectPosition
;
import
org.citygml4j.model.gml.geometry.primitives.DirectPosition
;
public
class
NonManifoldVertex
extends
SolidError
{
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
private
static
final
long
serialVersionUID
=
-
3434116956866828127L
;
public
class
NonManifoldVertexError
extends
AbstractSolidError
{
private
DirectPosition
vertex
;
p
ublic
void
setVertex
(
DirectPosition
vertex
)
{
p
rivate
static
final
long
serialVersionUID
=
6428627491730618046L
;
this
.
vertex
=
vertex
;
}
private
DirectPosition
vertex
;
public
DirectPosition
getVertex
()
{
public
DirectPosition
getVertex
()
{
return
vertex
;
return
vertex
;
}
}
@Override
public
void
setVertex
(
DirectPosition
vertex
)
{
public
String
toString
()
{
this
.
vertex
=
asChild
(
vertex
);
return
"NonManifoldVertex [geometryId="
+
getGeometryId
()
+
", vertex="
+
vertex
+
"]"
;
}
}
@Override
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
return
copyTo
(
new
NonManifoldVertex
(),
copyBuilder
);
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/types/OrientationRingsSameError.java
0 → 100644
View file @
38715130
/*-
* 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
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
public
class
OrientationRingsSameError
extends
AbstractPolygonError
{
private
static
final
long
serialVersionUID
=
5732797947859046889L
;
private
String
linearRing
;
public
String
getLinearRing
()
{
return
linearRing
;
}
public
void
setLinearRing
(
String
linearRing
)
{
this
.
linearRing
=
linearRing
;
}
@Override
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb
/Parameter.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types
/Parameter.java
View file @
38715130
/*-
/*-
* 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,58 +13,46 @@
...
@@ -13,58 +13,46 @@
* 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.Serializable
;
import
org.citygml4j.core.model.ade.ADEObject
;
import
org.xmlobjects.gml.model.GMLObject
;
import
javax.xml.bind.annotation.XmlAccessType
;
public
class
Parameter
extends
GMLObject
implements
ADEObject
{
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAttribute
;
import
javax.xml.bind.annotation.XmlType
;
import
javax.xml.bind.annotation.XmlValue
;
@XmlType
(
name
=
"parameter"
)
private
static
final
long
serialVersionUID
=
3493525795867922745L
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Parameter
implements
Serializable
{
private
static
final
long
serialVersionUID
=
3704749975901280058L
;
@XmlAttribute
(
name
=
"name"
)
private
String
name
;
private
String
name
;
@XmlAttribute
(
required
=
false
)
private
String
uom
;
private
String
uom
;
@XmlValue
private
String
value
;
private
String
value
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
this
.
name
=
name
;
}
}
public
String
get
Name
()
{
public
String
get
Uom
()
{
return
name
;
return
uom
;
}
}
public
void
setUom
(
String
uom
)
{
public
void
setUom
(
String
uom
)
{
this
.
uom
=
uom
;
this
.
uom
=
uom
;
}
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
public
String
getUom
()
{
return
uom
;
}
public
String
getValue
()
{
public
String
getValue
()
{
return
value
;
return
value
;
}
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"Parameter
Type
[name="
+
name
+
", uom="
+
uom
+
", value="
+
value
+
"]"
;
return
"Parameter [name="
+
name
+
", uom="
+
uom
+
", value="
+
value
+
"]"
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
Non
PlanarDistancePlane.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/
PlanarDistancePlane
Error
.java
View file @
38715130
/*-
/*-
* 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,45 @@
...
@@ -13,43 +13,45 @@
* 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
org.xmlobjects.gml.model.geometry.DirectPosition
;
import
org.citygml4j.model.gml.geometry.primitives.DirectPosition
;
import
org.xmlobjects.gml.model.measures.Length
;
import
org.citygml4j.model.gml.measures.Length
;
public
class
NonPlanarDistancePlane
extends
PolygonError
{
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
public
class
PlanarDistancePlaneError
extends
AbstractPolygonError
{
private
static
final
long
serialVersionUID
=
9186823395923829178L
;
private
static
final
long
serialVersionUID
=
-
3428574131554438219L
;
private
DirectPosition
vertex
;
private
DirectPosition
vertex
;
private
Length
distance
;
private
Length
distance
;
public
DirectPosition
getVertex
()
{
return
vertex
;
}
public
void
setVertex
(
DirectPosition
vertex
)
{
public
void
setVertex
(
DirectPosition
vertex
)
{
this
.
vertex
=
vertex
;
this
.
vertex
=
asChild
(
vertex
)
;
}
}
public
void
setDistance
(
Length
d
istance
)
{
public
Length
getD
istance
(
)
{
this
.
distance
=
distance
;
return
distance
;
}
}
public
DirectPosition
getVertex
(
)
{
public
void
setDistance
(
Length
distance
)
{
return
vertex
;
this
.
distance
=
asChild
(
distance
)
;
}
}
public
Length
getDistance
()
{
@Override
return
distance
;
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"
Non
PlanarDistancePlane
[polygonId="
+
getPolygonId
()
+
",
vertex="
+
vertex
+
", distance="
+
distance
+
"]"
;
return
"PlanarDistancePlane
Error [
vertex="
+
vertex
+
", distance="
+
distance
+
"]"
;
}
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
NonPlanarDistancePlane
(),
copyBuilder
);
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
Non
PlanarNormalsDeviation.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/
PlanarNormalsDeviation
Error
.java
View file @
38715130
/*-
/*-
* 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,30 @@
...
@@ -13,32 +13,30 @@
* 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
org.xmlobjects.gml.model.measures.Angle
;
import
org.citygml4j.model.gml.measures.Angle
;
public
class
NonPlanarNormalsDeviation
extends
PolygonError
{
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
private
static
final
long
serialVersionUID
=
-
8574024132334399550L
;
public
class
PlanarNormalsDeviationError
extends
AbstractPolygonError
{
private
Angle
deviation
;
p
ublic
void
setDeviation
(
Angle
deviation
)
{
p
rivate
static
final
long
serialVersionUID
=
5914728363336771016L
;
this
.
deviation
=
deviation
;
}
private
Angle
deviation
;
public
Angle
getDeviation
()
{
public
Angle
getDeviation
()
{
return
deviation
;
return
deviation
;
}
}
@Override
public
void
setDeviation
(
Angle
deviation
)
{
public
String
toString
()
{
this
.
deviation
=
asChild
(
deviation
);
return
"NonPlanarNormalsDeviation [polygonId="
+
getPolygonId
()
+
", deviation="
+
deviation
+
"]"
;
}
}
@Override
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
return
copyTo
(
new
NonPlanarNormalsDeviation
(),
copyBuilder
);
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb/Componen
t.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/PolygonIdLis
t.java
View file @
38715130
/*-
/*-
* 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,25 +13,29 @@
...
@@ -13,25 +13,29 @@
* 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.Serializable
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlElement
;
import
org.citygml4j.core.model.ade.ADEObject
;
import
org.xmlobjects.gml.model.GMLObject
;
public
class
Componen
t
implements
Serializable
{
public
class
PolygonIdList
extends
GMLObjec
t
implements
ADEObject
{
private
static
final
long
serialVersionUID
=
75005650370135888
L
;
private
static
final
long
serialVersionUID
=
4396447239956257299
L
;
@XmlElement
(
name
=
"polygonId"
)
private
List
<
String
>
polygonIds
;
private
List
<
String
>
polygonIds
;
public
List
<
String
>
getPolygonIds
()
{
public
List
<
String
>
getPolygonIds
()
{
if
(
polygonIds
==
null
)
{
if
(
polygonIds
==
null
)
{
polygonIds
=
new
ArrayList
<>();
polygonIds
=
new
ArrayList
<>();
}
}
return
polygonIds
;
return
polygonIds
;
}
}
public
void
setPolygonIds
(
List
<
String
>
polygonIds
)
{
this
.
polygonIds
=
polygonIds
;
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/types/PolygonWrongOrientationError.java
0 → 100644
View file @
38715130
/*-
* 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
de.hft.stuttgart.quality.model.properties.EdgeListProperty
;
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
public
class
PolygonWrongOrientationError
extends
AbstractSolidError
{
private
static
final
long
serialVersionUID
=
4975827693656963892L
;
private
EdgeListProperty
edges
;
public
EdgeListProperty
getEdges
()
{
return
edges
;
}
public
void
setEdges
(
EdgeListProperty
edges
)
{
this
.
edges
=
edges
;
}
@Override
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb
/Requirement.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types
/Requirement.java
View file @
38715130
/*-
/*-
* 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,59 +13,50 @@
...
@@ -13,59 +13,50 @@
* 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.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
org.citygml4j.core.model.ade.ADEObject
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
org.xmlobjects.gml.model.GMLObject
;
import
javax.xml.bind.annotation.XmlAttribute
;
import
org.xmlobjects.model.ChildList
;
import
javax.xml.bind.annotation.XmlElement
;
import
javax.xml.bind.annotation.XmlType
;
@XmlType
(
name
=
"requirement"
)
import
de.hft.stuttgart.quality.model.enums.RequirementId
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
import
de.hft.stuttgart.quality.model.properties.ParameterProperty
;
public
class
Requirement
implements
Serializable
{
private
static
final
long
serialVersionUID
=
8493047783215253763L
;
public
class
Requirement
extends
GMLObject
implements
ADEObject
{
@XmlAttribute
private
static
final
long
serialVersionUID
=
4428291416242684642L
;
private
RequirementId
name
;
@XmlAttribute
private
boolean
enabled
;
private
boolean
enabled
;
private
RequirementId
requirementType
;
private
List
<
ParameterProperty
>
parameters
;
@XmlElement
(
name
=
"parameter"
)
public
boolean
isEnabled
()
{
private
List
<
Parameter
>
parameters
;
return
enabled
;
public
RequirementId
getName
()
{
return
name
;
}
}
public
List
<
Parameter
>
getParameters
()
{
public
void
setEnabled
(
boolean
enabled
)
{
if
(
parameters
==
null
)
{
this
.
enabled
=
enabled
;
parameters
=
new
ArrayList
<>(
2
);
}
return
parameters
;
}
}
public
boolean
isEnabled
()
{
public
RequirementId
getRequirementType
()
{
return
enabled
;
return
requirementType
;
}
}
public
void
set
Nam
e
(
RequirementId
nam
e
)
{
public
void
set
RequirementTyp
e
(
RequirementId
requirementTyp
e
)
{
this
.
name
=
nam
e
;
this
.
requirementType
=
requirementTyp
e
;
}
}
public
void
setEnabled
(
boolean
enabled
)
{
public
List
<
ParameterProperty
>
getParameters
()
{
this
.
enabled
=
enabled
;
if
(
parameters
==
null
)
{
parameters
=
new
ChildList
<>(
this
);
}
return
parameters
;
}
}
@Override
public
void
setParameters
(
List
<
ParameterProperty
>
parameters
)
{
public
String
toString
()
{
this
.
parameters
=
asChild
(
parameters
);
return
"Requirement [name="
+
name
+
", enabled="
+
enabled
+
", parameters="
+
parameters
+
"]"
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
Ring
Error.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/RingNotClosed
Error.java
View file @
38715130
/*-
/*-
* 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,19 @@
...
@@ -13,19 +13,19 @@
* 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
RingError
extends
ValidationError
{
private
static
final
long
serialVersionUID
=
-
8610600028811350500L
;
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
private
String
linearRingId
;
public
void
setLinearRingId
(
String
linearRingId
)
{
public
class
RingNotClosedError
extends
AbstractRingError
{
this
.
linearRingId
=
linearRingId
;
@Override
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
public
String
getLinearRingId
()
{
private
static
final
long
serialVersionUID
=
3327214274004406000L
;
return
linearRingId
;
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/RingSelfIntersection.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/
RingSelfIntersection
Error
.java
View file @
38715130
/*-
/*-
* 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,71 +13,75 @@
...
@@ -13,71 +13,75 @@
* 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
org.citygml4j.model.gml.geometry.primitives.DirectPosition
;
import
de.hft.stuttgart.quality.model.jaxb.RingSelfIntType
;
import
org.xmlobjects.gml.model.geometry.DirectPosition
;
public
class
RingSelfIntersection
extends
RingError
{
import
de.hft.stuttgart.quality.model.enums.RingSelfIntType
;
import
de.hft.stuttgart.quality.model.properties.EdgeProperty
;
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
public
class
RingSelfIntersectionError
extends
AbstractRingError
{
private
static
final
long
serialVersionUID
=
9103800366580888883L
;
private
static
final
long
serialVersionUID
=
-
4426615638983209222L
;
private
RingSelfIntType
type
;
private
RingSelfIntType
type
;
private
Edge
edge1
;
private
Edge
Property
edge1
;
private
Edge
edge2
;
private
Edge
Property
edge2
;
private
DirectPosition
vertex1
;
private
DirectPosition
vertex1
;
private
DirectPosition
vertex2
;
private
DirectPosition
vertex2
;
public
RingSelfIntType
getType
()
{
return
type
;
}
public
void
setType
(
RingSelfIntType
type
)
{
public
void
setType
(
RingSelfIntType
type
)
{
this
.
type
=
type
;
this
.
type
=
type
;
}
}
public
void
setEdge1
(
Edge
e
dge1
)
{
public
EdgeProperty
getE
dge1
(
)
{
this
.
edge1
=
edge1
;
return
edge1
;
}
}
public
void
setEdge
2
(
Edge
edge
2
)
{
public
void
setEdge
1
(
Edge
Property
edge
1
)
{
this
.
edge
2
=
edge
2
;
this
.
edge
1
=
asChild
(
edge
1
)
;
}
}
public
void
setVertex1
(
DirectPosition
vertex1
)
{
public
EdgeProperty
getEdge2
()
{
this
.
vertex1
=
vertex1
;
return
edge2
;
}
public
void
setVertex2
(
DirectPosition
vertex2
)
{
this
.
vertex2
=
vertex2
;
}
}
public
RingSelfIntType
getType
(
)
{
public
void
setEdge2
(
EdgeProperty
edge2
)
{
return
type
;
this
.
edge2
=
asChild
(
edge2
)
;
}
}
public
Edge
getEdge
1
()
{
public
DirectPosition
getVertex
1
()
{
return
edge
1
;
return
vertex
1
;
}
}
public
Edge
getEdge2
(
)
{
public
void
setVertex1
(
DirectPosition
vertex1
)
{
return
edge2
;
this
.
vertex1
=
asChild
(
vertex1
)
;
}
}
public
DirectPosition
getVertex1
()
{
return
vertex1
;
}
public
DirectPosition
getVertex2
()
{
public
DirectPosition
getVertex2
()
{
return
vertex2
;
return
vertex2
;
}
}
public
void
setVertex2
(
DirectPosition
vertex2
)
{
this
.
vertex2
=
asChild
(
vertex2
);
}
@Override
@Override
public
String
toString
(
)
{
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
return
"RingSelfIntersection [linearRingId="
+
getLinearRingId
()
+
", type="
+
type
+
", edge1="
+
edge1
+
", edge2="
super
.
accept
(
visitor
);
+
edge2
+
", vertex1="
+
vertex1
+
", vertex2="
+
vertex2
+
"]"
;
visitor
.
visit
(
this
)
;
}
}
@Override
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
public
String
toString
()
{
return
copyTo
(
new
RingSelfIntersection
(),
copyBuilder
);
return
"RingSelfIntersectionError [type="
+
type
+
", edge1="
+
edge1
+
", edge2="
+
edge2
+
", vertex1="
+
vertex1
+
", vertex2="
+
vertex2
+
"]"
;
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb/
TooFewPoints
Type
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/Ring
TooFewPoints
Error
.java
View file @
38715130
/*-
/*-
* 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,16 +13,18 @@
...
@@ -13,16 +13,18 @@
* 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
javax.xml.bind.annotation.XmlRootElement
;
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
@XmlRootElement
(
name
=
"GE_R_TOO_FEW_POINTS"
)
public
class
RingTooFewPointsError
extends
AbstractRingError
{
public
class
TooFewPointsType
extends
RingErrorType
{
private
static
final
long
serialVersionUID
=
8057350098649982235L
;
@Override
@Override
public
String
toString
()
{
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
return
"TooFewPoints [linearRingId="
+
getLinearRingId
()
+
"]"
;
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/AttributeMissing.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/Semantic
AttributeMissing
Error
.java
View file @
38715130
/*-
/*-
* 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,14 +13,14 @@
...
@@ -13,14 +13,14 @@
* 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.CopyBuilde
r
;
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisito
r
;
public
class
AttributeMissing
extends
SemanticError
{
public
class
SemanticAttributeMissingError
extends
AbstractSemanticError
{
private
static
final
long
serialVersionUID
=
7157884749606290596L
;
private
static
final
long
serialVersionUID
=
-
5416574100733885169L
;
private
String
childId
;
private
String
childId
;
private
String
attributeName
;
private
String
attributeName
;
private
boolean
generic
;
private
boolean
generic
;
...
@@ -50,7 +50,9 @@ public class AttributeMissing extends SemanticError {
...
@@ -50,7 +50,9 @@ public class AttributeMissing extends SemanticError {
}
}
@Override
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
return
copyTo
(
new
AttributeWrongValue
(),
copyBuilder
);
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb/
AttributeWrongValue
Type
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
types/Semantic
AttributeWrongValue
Error
.java
View file @
38715130
/*-
/*-
* 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,12 +13,13 @@
...
@@ -13,12 +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
javax.xml.bind.annotation.XmlRootElement
;
import
de.hft.stuttgart.quality.model.walker.ValidationErrorVisitor
;
@XmlRootElement
(
name
=
"SE_ATTRIBUTE_WRONG_VALUE"
)
public
class
SemanticAttributeWrongValueError
extends
AbstractSemanticError
{
public
class
AttributeWrongValueType
extends
SemanticErrorType
{
private
static
final
long
serialVersionUID
=
3478578364446339884L
;
private
String
childId
;
private
String
childId
;
private
String
attributeName
;
private
String
attributeName
;
...
@@ -48,4 +49,10 @@ public class AttributeWrongValueType extends SemanticErrorType {
...
@@ -48,4 +49,10 @@ public class AttributeWrongValueType extends SemanticErrorType {
this
.
generic
=
generic
;
this
.
generic
=
generic
;
}
}
@Override
public
void
accept
(
ValidationErrorVisitor
visitor
)
{
super
.
accept
(
visitor
);
visitor
.
visit
(
this
);
}
}
}
Prev
1
…
4
5
6
7
8
9
10
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