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
98b386d2
Commit
98b386d2
authored
Nov 21, 2021
by
Claus Nagel
Browse files
updated citygml4j module to support QualityADE version 0.1.4
parent
6cf1abce
Changes
209
Show whitespace changes
Inline
Side-by-side
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/SemanticAttributeMissing.java
0 → 100644
View file @
98b386d2
/*
* Copyright 2021 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
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.builder.copy.ObjectCopier
;
public
class
SemanticAttributeMissing
extends
AbstractSemanticError
{
private
String
attributeName
;
private
String
childId
;
private
boolean
generic
;
public
String
getAttributeName
()
{
return
attributeName
;
}
public
void
setAttributeName
(
String
attributeName
)
{
this
.
attributeName
=
attributeName
;
}
public
String
getChildId
()
{
return
childId
;
}
public
void
setChildId
(
String
childId
)
{
this
.
childId
=
childId
;
}
public
boolean
isGeneric
()
{
return
generic
;
}
public
void
setGeneric
(
boolean
generic
)
{
this
.
generic
=
generic
;
}
@Override
public
ErrorType
getErrorType
()
{
return
ErrorType
.
SE_ATTRIBUTE_MISSING
;
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
SemanticAttributeMissing
copy
=
target
==
null
?
new
SemanticAttributeMissing
()
:
(
SemanticAttributeMissing
)
target
;
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
SemanticAttributeMissing
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/SemanticAttributeWrongValue.java
0 → 100644
View file @
98b386d2
/*
* Copyright 2021 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
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.builder.copy.ObjectCopier
;
public
class
SemanticAttributeWrongValue
extends
AbstractSemanticError
{
private
String
attributeName
;
private
String
childId
;
private
boolean
generic
;
public
String
getAttributeName
()
{
return
attributeName
;
}
public
void
setAttributeName
(
String
attributeName
)
{
this
.
attributeName
=
attributeName
;
}
public
String
getChildId
()
{
return
childId
;
}
public
void
setChildId
(
String
childId
)
{
this
.
childId
=
childId
;
}
public
boolean
isGeneric
()
{
return
generic
;
}
public
void
setGeneric
(
boolean
generic
)
{
this
.
generic
=
generic
;
}
@Override
public
ErrorType
getErrorType
()
{
return
ErrorType
.
SE_ATTRIBUTE_WRONG_VALUE
;
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
SemanticAttributeWrongValue
copy
=
target
==
null
?
new
SemanticAttributeWrongValue
()
:
(
SemanticAttributeWrongValue
)
target
;
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
SemanticAttributeWrongValue
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
MultipleConnectedComponents
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
SolidAllPolygonsWrongOrientation
.java
View file @
98b386d2
/*
-
* Copyright 202
0
Hochschule für Technik Stuttgart
/*
* Copyright 202
1
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.
...
...
@@ -13,35 +13,29 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.quality.model
;
import
java.util.ArrayList
;
import
java.util.List
;
package
de.hft.stuttgart.quality.model
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
de.hft.stuttgart.quality.model.jaxb.Component
;
public
class
MultipleConnectedComponents
extends
SolidError
{
private
static
final
long
serialVersionUID
=
-
4199420154182053060L
;
private
List
<
Component
>
components
;
public
class
SolidAllPolygonsWrongOrientation
extends
AbstractSolidError
{
public
boolean
isSetComponents
()
{
return
components
!=
null
&&
!
components
.
isEmpty
();
@Override
public
ErrorType
getErrorType
()
{
return
ErrorType
.
GE_S_ALL_POLYGONS_WRONG_ORIENTATION
;
}
public
List
<
Component
>
getComponents
()
{
if
(
components
==
null
)
{
components
=
new
ArrayList
<>();
}
return
components
;
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
SolidAllPolygonsWrongOrientation
copy
=
target
==
null
?
new
SolidAllPolygonsWrongOrientation
()
:
(
SolidAllPolygonsWrongOrientation
)
target
;
return
super
.
copyTo
(
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
MultipleConnectedComponents
(),
copyBuilder
);
return
copyTo
(
new
SolidAllPolygonsWrongOrientation
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/SolidError.java
deleted
100644 → 0
View file @
6cf1abce
/*-
* Copyright 2020 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
;
public
abstract
class
SolidError
extends
ValidationError
{
private
static
final
long
serialVersionUID
=
6430138970493794998L
;
private
String
geometryId
;
public
void
setGeometryId
(
String
geometryId
)
{
this
.
geometryId
=
geometryId
;
}
public
String
getGeometryId
()
{
return
geometryId
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/SolidMultipleConnectedComponents.java
0 → 100644
View file @
98b386d2
/*
* Copyright 2021 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
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.builder.copy.ObjectCopier
;
import
org.citygml4j.model.common.base.ModelObjects
;
import
org.citygml4j.model.common.child.ChildList
;
import
java.util.List
;
public
class
SolidMultipleConnectedComponents
extends
AbstractSolidError
{
private
List
<
Component
>
components
;
public
boolean
isSetComponents
()
{
return
components
!=
null
&&
!
components
.
isEmpty
();
}
public
List
<
Component
>
getComponents
()
{
if
(
components
==
null
)
{
components
=
new
ChildList
<>(
this
);
}
return
components
;
}
public
void
setComponents
(
List
<
Component
>
components
)
{
this
.
components
=
ModelObjects
.
setParent
(
components
,
this
);
}
@Override
public
ErrorType
getErrorType
()
{
return
ErrorType
.
GE_S_MULTIPLE_CONNECTED_COMPONENTS
;
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
SolidMultipleConnectedComponents
copy
=
target
==
null
?
new
SolidMultipleConnectedComponents
()
:
(
SolidMultipleConnectedComponents
)
target
;
super
.
copyTo
(
copy
,
copyBuilder
);
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
SolidMultipleConnectedComponents
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/SolidNonManifoldEdge.java
0 → 100644
View file @
98b386d2
/*
* Copyright 2021 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
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.builder.copy.ObjectCopier
;
import
org.citygml4j.model.common.base.ModelObjects
;
import
org.citygml4j.model.common.child.ChildList
;
import
java.util.List
;
public
class
SolidNonManifoldEdge
extends
AbstractSolidError
{
private
List
<
Edge
>
edges
;
public
boolean
isSetEdges
()
{
return
edges
!=
null
&&
!
edges
.
isEmpty
();
}
public
List
<
Edge
>
getEdges
()
{
if
(
edges
==
null
)
{
edges
=
new
ChildList
<>(
this
);
}
return
edges
;
}
public
void
setEdges
(
List
<
Edge
>
edges
)
{
this
.
edges
=
ModelObjects
.
setParent
(
edges
,
this
);
}
@Override
public
ErrorType
getErrorType
()
{
return
ErrorType
.
GE_S_NON_MANIFOLD_EDGE
;
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
SolidNonManifoldEdge
copy
=
target
==
null
?
new
SolidNonManifoldEdge
()
:
(
SolidNonManifoldEdge
)
target
;
super
.
copyTo
(
copy
,
copyBuilder
);
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
SolidNonManifoldEdge
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
NonPlanarDistancePlane
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
SolidNonManifoldVertex
.java
View file @
98b386d2
/*
-
* Copyright 202
0
Hochschule für Technik Stuttgart
/*
* Copyright 202
1
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.
...
...
@@ -13,43 +13,42 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.quality.model
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.builder.copy.ObjectCopier
;
import
org.citygml4j.model.common.base.ModelObjects
;
import
org.citygml4j.model.gml.geometry.primitives.DirectPosition
;
import
org.citygml4j.model.gml.measures.Length
;
public
class
NonPlanarDistancePlane
extends
PolygonError
{
private
static
final
long
serialVersionUID
=
-
3428574131554438219L
;
public
class
SolidNonManifoldVertex
extends
AbstractSolidError
{
private
DirectPosition
vertex
;
private
Length
distance
;
public
void
setVertex
(
DirectPosition
vertex
)
{
this
.
vertex
=
vertex
;
}
public
void
setDistance
(
Length
distance
)
{
this
.
distance
=
distance
;
}
public
DirectPosition
getVertex
()
{
return
vertex
;
}
public
Length
getDistance
(
)
{
return
distance
;
public
void
setVertex
(
DirectPosition
vertex
)
{
this
.
vertex
=
ModelObjects
.
setParent
(
vertex
,
this
)
;
}
@Override
public
String
toString
()
{
return
"NonPlanarDistancePlane [polygonId="
+
getPolygonId
()
+
", vertex="
+
vertex
+
", distance="
+
distance
+
"]"
;
public
ErrorType
getErrorType
()
{
return
ErrorType
.
GE_S_NON_MANIFOLD_VERTEX
;
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
SolidNonManifoldVertex
copy
=
target
==
null
?
new
SolidNonManifoldVertex
()
:
(
SolidNonManifoldVertex
)
target
;
super
.
copyTo
(
copy
,
copyBuilder
);
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
NonPlanarDistancePlane
(),
copyBuilder
);
return
copyTo
(
new
SolidNonManifoldVertex
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/SolidNotClosed.java
View file @
98b386d2
/*
-
* Copyright 202
0
Hochschule für Technik Stuttgart
/*
* Copyright 202
1
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.
...
...
@@ -13,17 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.quality.model
;
import
java.util.ArrayList
;
import
java.util.List
;
package
de.hft.stuttgart.quality.model
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.builder.copy.ObjectCopier
;
import
org.citygml4j.model.common.base.ModelObjects
;
import
org.citygml4j.model.common.child.ChildList
;
public
class
SolidNotClosed
extends
SolidError
{
private
static
final
long
serialVersionUID
=
4609395125395073697L
;
import
java.util.List
;
public
class
SolidNotClosed
extends
AbstractSolidError
{
private
List
<
Edge
>
edges
;
public
boolean
isSetEdges
()
{
...
...
@@ -32,11 +32,31 @@ public class SolidNotClosed extends SolidError {
public
List
<
Edge
>
getEdges
()
{
if
(
edges
==
null
)
{
edges
=
new
Array
List
<>();
edges
=
new
Child
List
<>(
this
);
}
return
edges
;
}
public
void
setEdges
(
List
<
Edge
>
edges
)
{
this
.
edges
=
ModelObjects
.
setParent
(
edges
,
this
);
}
@Override
public
ErrorType
getErrorType
()
{
return
ErrorType
.
GE_S_NOT_CLOSED
;
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
SolidNotClosed
copy
=
target
==
null
?
new
SolidNotClosed
()
:
(
SolidNotClosed
)
target
;
super
.
copyTo
(
copy
,
copyBuilder
);
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
SolidNotClosed
(),
copyBuilder
);
...
...
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/SolidPolygonWrongOrientation.java
0 → 100644
View file @
98b386d2
/*
* Copyright 2021 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
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.builder.copy.ObjectCopier
;
import
org.citygml4j.model.common.base.ModelObjects
;
import
org.citygml4j.model.common.child.ChildList
;
import
java.util.List
;
public
class
SolidPolygonWrongOrientation
extends
AbstractSolidError
{
private
List
<
Edge
>
edges
;
public
boolean
isSetEdges
()
{
return
edges
!=
null
&&
!
edges
.
isEmpty
();
}
public
List
<
Edge
>
getEdges
()
{
if
(
edges
==
null
)
{
edges
=
new
ChildList
<>(
this
);
}
return
edges
;
}
public
void
setEdges
(
List
<
Edge
>
edges
)
{
this
.
edges
=
ModelObjects
.
setParent
(
edges
,
this
);
}
@Override
public
ErrorType
getErrorType
()
{
return
ErrorType
.
GE_S_POLYGON_WRONG_ORIENTATION
;
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
SolidPolygonWrongOrientation
copy
=
target
==
null
?
new
SolidPolygonWrongOrientation
()
:
(
SolidPolygonWrongOrientation
)
target
;
super
.
copyTo
(
copy
,
copyBuilder
);
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
SolidPolygonWrongOrientation
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/SolidSelfIntersection.java
View file @
98b386d2
/*
-
* Copyright 202
0
Hochschule für Technik Stuttgart
/*
* Copyright 202
1
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.
...
...
@@ -13,14 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.quality.model
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.builder.copy.ObjectCopier
;
public
class
SolidSelfIntersection
extends
SolidError
{
private
static
final
long
serialVersionUID
=
4086097021438848040L
;
public
class
SolidSelfIntersection
extends
AbstractSolidError
{
private
String
polygonId1
;
private
String
polygonId2
;
...
...
@@ -41,9 +40,18 @@ public class SolidSelfIntersection extends SolidError {
}
@Override
public
String
toString
()
{
return
"SolidSelfIntersection [geometryId="
+
getGeometryId
()
+
", polygonId1="
+
polygonId1
+
", polygonId2="
+
polygonId2
+
"]"
;
public
ErrorType
getErrorType
()
{
return
ErrorType
.
GE_S_SELF_INTERSECTION
;
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
SolidSelfIntersection
copy
=
target
==
null
?
new
SolidSelfIntersection
()
:
(
SolidSelfIntersection
)
target
;
super
.
copyTo
(
copy
,
copyBuilder
);
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
@Override
...
...
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
OrientationRingsSame
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
SolidTooFewPolygons
.java
View file @
98b386d2
/*
-
* Copyright 202
0
Hochschule für Technik Stuttgart
/*
* Copyright 202
1
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.
...
...
@@ -13,31 +13,29 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.quality.model
;
import
org.citygml4j.builder.copy.CopyBuilder
;
public
class
OrientationRingsSame
extends
PolygonError
{
private
static
final
long
serialVersionUID
=
-
6983324580253488854L
;
public
class
SolidTooFewPolygons
extends
AbstractSolidError
{
private
String
linearRingId
;
public
void
setLinearRingId
(
String
linearRingId
)
{
this
.
linearRingId
=
linearRingId
;
}
public
String
getLinearRingId
()
{
return
linearRingId
;
@Override
public
ErrorType
getErrorType
()
{
return
ErrorType
.
GE_S_TOO_FEW_POLYGONS
;
}
@Override
public
String
toString
()
{
return
"OrientationRingsSame [polygonId="
+
getPolygonId
()
+
", linearRingId="
+
linearRingId
+
"]"
;
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
SolidTooFewPolygons
copy
=
target
==
null
?
new
SolidTooFewPolygons
()
:
(
SolidTooFewPolygons
)
target
;
return
super
.
copyTo
(
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
OrientationRingsSame
(),
copyBuilder
);
return
copyTo
(
new
SolidTooFewPolygons
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/Statistics.java
0 → 100644
View file @
98b386d2
/*
* Copyright 2021 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
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.builder.copy.ObjectCopier
;
import
org.citygml4j.model.common.base.ModelObjects
;
public
class
Statistics
extends
AbstractDataType
{
private
FeatureStatistics
numErrorBuildings
;
private
FeatureStatistics
numErrorVegetation
;
private
FeatureStatistics
numErrorLandObjects
;
private
FeatureStatistics
numErrorBridgeObjects
;
private
FeatureStatistics
numErrorWaterObjects
;
private
FeatureStatistics
numErrorTransportation
;
private
ErrorStatistics
errorStatistics
;
public
FeatureStatistics
getNumErrorBuildings
()
{
return
numErrorBuildings
;
}
public
void
setNumErrorBuildings
(
FeatureStatistics
numErrorBuildings
)
{
this
.
numErrorBuildings
=
ModelObjects
.
setParent
(
numErrorBuildings
,
this
);
}
public
FeatureStatistics
getNumErrorVegetation
()
{
return
numErrorVegetation
;
}
public
void
setNumErrorVegetation
(
FeatureStatistics
numErrorVegetation
)
{
this
.
numErrorVegetation
=
ModelObjects
.
setParent
(
numErrorVegetation
,
this
);
}
public
FeatureStatistics
getNumErrorLandObjects
()
{
return
numErrorLandObjects
;
}
public
void
setNumErrorLandObjects
(
FeatureStatistics
numErrorLandObjects
)
{
this
.
numErrorLandObjects
=
ModelObjects
.
setParent
(
numErrorLandObjects
,
this
);
}
public
FeatureStatistics
getNumErrorBridgeObjects
()
{
return
numErrorBridgeObjects
;
}
public
void
setNumErrorBridgeObjects
(
FeatureStatistics
numErrorBridgeObjects
)
{
this
.
numErrorBridgeObjects
=
ModelObjects
.
setParent
(
numErrorBridgeObjects
,
this
);
}
public
FeatureStatistics
getNumErrorWaterObjects
()
{
return
numErrorWaterObjects
;
}
public
void
setNumErrorWaterObjects
(
FeatureStatistics
numErrorWaterObjects
)
{
this
.
numErrorWaterObjects
=
ModelObjects
.
setParent
(
numErrorWaterObjects
,
this
);
}
public
FeatureStatistics
getNumErrorTransportation
()
{
return
numErrorTransportation
;
}
public
void
setNumErrorTransportation
(
FeatureStatistics
numErrorTransportation
)
{
this
.
numErrorTransportation
=
ModelObjects
.
setParent
(
numErrorTransportation
,
this
);
}
public
ErrorStatistics
getErrorStatistics
()
{
return
errorStatistics
;
}
public
void
setErrorStatistics
(
ErrorStatistics
errorStatistics
)
{
this
.
errorStatistics
=
ModelObjects
.
setParent
(
errorStatistics
,
this
);
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
Statistics
copy
=
target
==
null
?
new
Statistics
()
:
(
Statistics
)
target
;
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
Statistics
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/TooFewPoints.java
deleted
100644 → 0
View file @
6cf1abce
/*-
* Copyright 2020 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
;
import
org.citygml4j.builder.copy.CopyBuilder
;
public
class
TooFewPoints
extends
RingError
{
private
static
final
long
serialVersionUID
=
-
904319347280328865L
;
@Override
public
String
toString
()
{
return
"TooFewPoints [linearRingId="
+
getLinearRingId
()
+
"]"
;
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
TooFewPoints
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/Validation.java
View file @
98b386d2
/*
-
* Copyright 202
0
Hochschule für Technik Stuttgart
/*
* Copyright 202
1
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.
...
...
@@ -13,74 +13,91 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.quality.model
;
import
java.time.ZonedDateTime
;
package
de.hft.stuttgart.quality.model
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.builder.copy.ObjectCopier
;
import
org.citygml4j.model.citygml.ade.binding.ADEModelObject
;
import
org.citygml4j.model.common.base.ModelObjects
;
import
org.citygml4j.model.common.visitor.FeatureFunctor
;
import
org.citygml4j.model.common.visitor.FeatureVisitor
;
import
org.citygml4j.model.common.visitor.GMLFunctor
;
import
org.citygml4j.model.common.visitor.GMLVisitor
;
import
org.citygml4j.model.gml.feature.AbstractFeature
;
import
de.hft.stuttgart.quality.model.jaxb.Statistics
;
import
de.hft.stuttgart.quality.model.jaxb.ValidationPlan
;
public
class
Validation
extends
ChildObject
{
private
static
final
long
serialVersionUID
=
1738293574859506005L
;
import
java.time.ZonedDateTime
;
public
class
Validation
extends
AbstractFeature
implements
ADEModelObject
{
private
ZonedDateTime
validationDate
;
private
String
validationSoftware
;
private
ValidationPlan
validationPlan
;
private
Statistics
statistics
;
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
this
;
public
ZonedDateTime
getValidationDate
()
{
return
validationDate
;
}
public
boolean
isSetStatistics
(
)
{
return
statistics
!=
null
;
public
void
setValidationDate
(
ZonedDateTime
validationDate
)
{
this
.
validationDate
=
validationDate
;
}
public
void
setStatistics
(
Statistics
statistics
)
{
this
.
statistics
=
statistics
;
public
String
getValidationSoftware
(
)
{
return
validationSoftware
;
}
public
Statistics
getStatistics
(
)
{
return
statistics
;
public
void
setValidationSoftware
(
String
validationSoftware
)
{
this
.
validationSoftware
=
validationSoftware
;
}
public
boolean
isS
etValidationPlan
()
{
return
validationPlan
!=
null
;
public
ValidationPlan
g
etValidationPlan
()
{
return
validationPlan
;
}
public
void
setValidationPlan
(
ValidationPlan
validationPlan
)
{
this
.
validationPlan
=
validationPlan
;
this
.
validationPlan
=
ModelObjects
.
setParent
(
validationPlan
,
this
)
;
}
public
ValidationPlan
getValidationPlan
()
{
return
validationPlan
;
public
Statistics
getStatistics
()
{
return
statistics
;
}
public
boolean
isSetDateTime
(
)
{
return
validationDate
!=
null
;
public
void
setStatistics
(
Statistics
statistics
)
{
this
.
statistics
=
ModelObjects
.
setParent
(
statistics
,
this
)
;
}
public
boolean
isSetValidationSoftware
()
{
return
validationSoftware
!=
null
;
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
Validation
copy
=
target
==
null
?
new
Validation
()
:
(
Validation
)
target
;
super
.
copyTo
(
copy
,
copyBuilder
);
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
public
void
setValidationDate
(
ZonedDateTime
validationDate
)
{
this
.
validationDate
=
validationDate
;
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
Validation
(),
copyBuilder
);
}
public
ZonedDateTime
getValidationDate
()
{
return
validationDate
;
@Override
public
void
accept
(
FeatureVisitor
visitor
)
{
visitor
.
visit
(
this
);
}
public
void
setValidationSoftware
(
String
validationSoftware
)
{
this
.
validationSoftware
=
validationSoftware
;
@Override
public
<
T
>
T
accept
(
FeatureFunctor
<
T
>
visitor
)
{
return
visitor
.
apply
(
this
);
}
public
String
getValidationSoftware
()
{
return
validationSoftware
;
@Override
public
void
accept
(
GMLVisitor
visitor
)
{
visitor
.
visit
(
this
);
}
@Override
public
<
T
>
T
accept
(
GMLFunctor
<
T
>
visitor
)
{
return
visitor
.
apply
(
this
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/ValidationPlan.java
0 → 100644
View file @
98b386d2
/*
* Copyright 2021 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
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.builder.copy.ObjectCopier
;
import
org.citygml4j.model.common.base.ModelObjects
;
import
org.citygml4j.model.common.child.ChildList
;
import
java.util.List
;
public
class
ValidationPlan
extends
AbstractDataType
{
private
List
<
Parameter
>
globalParameters
;
private
Filter
filter
;
private
Requirement
requirement
;
public
boolean
isSetGlobalParameters
()
{
return
globalParameters
!=
null
&&
!
globalParameters
.
isEmpty
();
}
public
List
<
Parameter
>
getGlobalParameters
()
{
if
(
globalParameters
==
null
)
{
globalParameters
=
new
ChildList
<>(
this
);
}
return
globalParameters
;
}
public
void
setGlobalParameters
(
List
<
Parameter
>
globalParameters
)
{
this
.
globalParameters
=
ModelObjects
.
setParent
(
globalParameters
,
this
);
}
public
Filter
getFilter
()
{
return
filter
;
}
public
void
setFilter
(
Filter
filter
)
{
this
.
filter
=
ModelObjects
.
setParent
(
filter
,
this
);
}
public
Requirement
getRequirement
()
{
return
requirement
;
}
public
void
setRequirement
(
Requirement
requirement
)
{
this
.
requirement
=
ModelObjects
.
setParent
(
requirement
,
this
);
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
ValidationPlan
copy
=
target
==
null
?
new
ValidationPlan
()
:
(
ValidationPlan
)
target
;
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
ValidationPlan
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/ValidationProperty.java
0 → 100644
View file @
98b386d2
/*
* Copyright 2021 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
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.model.citygml.ade.binding.ADEModelObject
;
import
org.citygml4j.model.gml.feature.FeatureProperty
;
public
class
ValidationProperty
extends
FeatureProperty
<
Validation
>
implements
ADEModelObject
{
public
ValidationProperty
()
{
}
public
ValidationProperty
(
Validation
object
)
{
super
(
object
);
}
public
ValidationProperty
(
String
href
)
{
super
(
href
);
}
@Override
public
Class
<
Validation
>
getAssociableClass
()
{
return
Validation
.
class
;
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
Validation
copy
=
(
target
==
null
)
?
new
Validation
()
:
(
Validation
)
target
;
return
super
.
copyTo
(
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
Validation
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/ValidationResult.java
View file @
98b386d2
/*
-
* Copyright 202
0
Hochschule für Technik Stuttgart
/*
* Copyright 202
1
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.
...
...
@@ -13,72 +13,64 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.quality.model
;
import
java.util.ArrayList
;
import
java.util.List
;
package
de.hft.stuttgart.quality.model
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.model.citygml.ade.binding.ADEModelObject
;
import
org.citygml4j.model.common.visitor.FeatureFunctor
;
import
org.citygml4j.model.common.visitor.FeatureVisitor
;
import
org.citygml4j.model.common.visitor.GMLFunctor
;
import
org.citygml4j.model.common.visitor.GMLVisitor
;
import
org.citygml4j.model.gml.feature.AbstractFeature
;
import
org.citygml4j.builder.copy.ObjectCopier
;
import
org.citygml4j.model.common.base.ModelObjects
;
import
org.citygml4j.model.common.child.ChildList
;
import
de.hft.stuttgart.quality.model.jaxb.ResultType
;
public
class
ValidationResult
extends
AbstractFeature
implements
ADEModelObject
{
import
java.util.List
;
private
static
final
long
serialVersionUID
=
1180762313908627342L
;
public
class
ValidationResult
extends
AbstractDataType
{
private
ValidationProperty
validation
;
private
List
<
AbstractError
>
errors
;
private
ResultType
resultType
;
private
ResultType
result
;
public
ValidationProperty
getValidation
()
{
return
validation
;
}
private
List
<
ValidationError
>
errors
;
public
void
setValidation
(
ValidationProperty
validation
)
{
this
.
validation
=
ModelObjects
.
setParent
(
validation
,
this
);
}
public
boolean
has
Errors
()
{
public
boolean
isSet
Errors
()
{
return
errors
!=
null
&&
!
errors
.
isEmpty
();
}
public
List
<
Validation
Error
>
getErrors
()
{
public
List
<
Abstract
Error
>
getErrors
()
{
if
(
errors
==
null
)
{
errors
=
new
ArrayList
<>(
2
);
}
return
errors
;
errors
=
new
ChildList
<>(
this
);
}
public
void
setResult
(
ResultType
result
)
{
this
.
result
=
result
;
return
errors
;
}
public
ResultType
getResult
(
)
{
return
result
;
public
void
setErrors
(
List
<
AbstractError
>
errors
)
{
this
.
errors
=
ModelObjects
.
setParent
(
errors
,
this
)
;
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
ValidationResult
(),
copyBuilder
);
public
ResultType
getResultType
()
{
return
resultType
;
}
@Override
public
void
accept
(
FeatureVisitor
visitor
)
{
visitor
.
visit
(
this
);
public
void
setResultType
(
ResultType
resultType
)
{
this
.
resultType
=
resultType
;
}
@Override
public
<
T
>
T
accept
(
FeatureFunctor
<
T
>
visitor
)
{
return
visitor
.
apply
(
this
);
}
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
ValidationResult
copy
=
target
==
null
?
new
ValidationResult
()
:
(
ValidationResult
)
target
;
@Override
public
void
accept
(
GMLVisitor
visitor
)
{
visitor
.
visit
(
this
);
return
ObjectCopier
.
copyTo
(
this
,
copy
,
copyBuilder
);
}
@Override
public
<
T
>
T
accept
(
GMLFunctor
<
T
>
visito
r
)
{
return
visitor
.
apply
(
this
);
public
Object
copy
(
CopyBuilder
copyBuilde
r
)
{
return
copyTo
(
new
ValidationResult
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/ValidationResultProperty.java
0 → 100644
View file @
98b386d2
/*
* Copyright 2021 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
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.model.citygml.ade.binding.ADEModelObject
;
import
org.citygml4j.model.gml.base.AssociationByRep
;
public
class
ValidationResultProperty
extends
AssociationByRep
<
ValidationResult
>
implements
ADEModelObject
{
public
ValidationResultProperty
()
{
super
();
}
public
ValidationResultProperty
(
ValidationResult
object
)
{
super
(
object
);
}
@Override
public
Class
<
ValidationResult
>
getAssociableClass
()
{
return
ValidationResult
.
class
;
}
@Override
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
ValidationResult
copy
=
(
target
==
null
)
?
new
ValidationResult
()
:
(
ValidationResult
)
target
;
return
super
.
copyTo
(
copy
,
copyBuilder
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
ValidationResult
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
AllPolygonsWrongOrientation
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
ValidationResultPropertyElement
.java
View file @
98b386d2
/*
-
* Copyright 202
0
Hochschule für Technik Stuttgart
/*
* Copyright 202
1
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.
...
...
@@ -13,22 +13,23 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.quality.model
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
org.citygml4j.model.citygml.ade.binding.ADEGenericApplicationProperty
;
public
class
AllPolygonsWrongOrientation
extends
SolidError
{
public
class
ValidationResultPropertyElement
extends
ADEGenericApplicationProperty
<
ValidationResultProperty
>
{
private
static
final
long
serialVersionUID
=
3817224755569965908L
;
public
ValidationResultPropertyElement
()
{
}
@Override
public
String
toString
()
{
return
"AllPolygonsWrongOrientation [geometryId="
+
getGeometryId
()
+
"]"
;
public
ValidationResultPropertyElement
(
ValidationResultProperty
value
)
{
super
(
value
);
}
@Override
public
Object
copy
(
CopyBuilder
copyBuilder
)
{
return
copyTo
(
new
AllPolygonsWrongOrientation
(),
copyBuilder
);
return
copyTo
(
new
ValidationResultProperty
(),
copyBuilder
);
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/AllPolygonsWrongOrientationType.java
deleted
100644 → 0
View file @
6cf1abce
/*-
* Copyright 2020 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.jaxb
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
(
name
=
"GE_S_ALL_POLYGONS_WRONG_ORIENTATION"
)
public
class
AllPolygonsWrongOrientationType
extends
SolidErrorType
{
}
Prev
1
…
4
5
6
7
8
9
10
11
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