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
Hide whitespace changes
Inline
Side-by-side
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb
/RequirementId.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
enums
/RequirementId.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,9 @@
...
@@ -13,11 +13,9 @@
* 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.
enums
;
import
javax.xml.bind.annotation.XmlEnum
;
@XmlEnum
public
enum
RequirementId
{
public
enum
RequirementId
{
R_GE_R_TOO_FEW_POINTS
,
R_GE_R_NOT_CLOSED
,
R_GE_R_CONSECUTIVE_POINTS_SAME
,
R_GE_R_SELF_INTERSECTION
,
R_GE_R_TOO_FEW_POINTS
,
R_GE_R_NOT_CLOSED
,
R_GE_R_CONSECUTIVE_POINTS_SAME
,
R_GE_R_SELF_INTERSECTION
,
...
...
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb
/ResultType.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
enums
/ResultType.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,8 @@
...
@@ -13,11 +13,8 @@
* 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.
enums
;
import
javax.xml.bind.annotation.XmlEnum
;
@XmlEnum
public
enum
ResultType
{
public
enum
ResultType
{
OK
,
ERROR
,
NOT_CHECKED
OK
,
ERROR
,
NOT_CHECKED
...
...
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb
/RingSelfIntType.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
enums
/RingSelfIntType.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,8 @@
...
@@ -13,11 +13,8 @@
* 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.
enums
;
import
javax.xml.bind.annotation.XmlEnum
;
@XmlEnum
public
enum
RingSelfIntType
{
public
enum
RingSelfIntType
{
DUPLICATE_POINT
,
POINT_TOUCHES_EDGE
,
EDGE_INTERSECTS_EDGE
DUPLICATE_POINT
,
POINT_TOUCHES_EDGE
,
EDGE_INTERSECTS_EDGE
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
jaxb
/TopLevelFeatureType.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
enums
/TopLevelFeatureType.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,8 @@
...
@@ -13,11 +13,8 @@
* 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.
enums
;
import
javax.xml.bind.annotation.XmlEnum
;
@XmlEnum
public
enum
TopLevelFeatureType
{
public
enum
TopLevelFeatureType
{
BUILDING
,
TRANSPORTATION
,
VEGETATION
,
BRIDGE
,
WATER
,
LAND
BUILDING
,
TRANSPORTATION
,
VEGETATION
,
BRIDGE
,
WATER
,
LAND
...
...
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/Checking.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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
java.io.Serializable
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlValue
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Checking
implements
Serializable
{
private
static
final
long
serialVersionUID
=
8429726429709450505L
;
@XmlValue
private
TopLevelFeatureType
value
;
public
Checking
()
{
}
public
Checking
(
TopLevelFeatureType
value
)
{
this
.
value
=
value
;
}
public
void
setValue
(
TopLevelFeatureType
value
)
{
this
.
value
=
value
;
}
public
TopLevelFeatureType
getValue
()
{
return
value
;
}
@Override
public
String
toString
()
{
return
"Checking [value="
+
value
+
"]"
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/ConsecutivePointsSameType.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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
;
import
net.opengis.gml.DirectPositionType
;
@XmlRootElement
(
name
=
"GE_R_CONSECUTIVE_POINTS_SAME"
)
public
class
ConsecutivePointsSameType
extends
RingErrorType
{
private
DirectPositionType
vertex1
;
private
DirectPositionType
vertex2
;
public
void
setVertex1
(
DirectPositionType
vertex1
)
{
this
.
vertex1
=
vertex1
;
}
public
void
setVertex2
(
DirectPositionType
vertex2
)
{
this
.
vertex2
=
vertex2
;
}
public
DirectPositionType
getVertex1
()
{
return
vertex1
;
}
public
DirectPositionType
getVertex2
()
{
return
vertex2
;
}
@Override
public
String
toString
()
{
return
"ConsecutivePointsSameType [linearRingId="
+
getLinearRingId
()
+
", vertex1="
+
vertex1
+
", vertex2="
+
vertex2
+
"]"
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/ObjectFactory.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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.JAXBElement
;
import
javax.xml.bind.annotation.XmlElementDecl
;
import
javax.xml.bind.annotation.XmlRegistry
;
import
javax.xml.namespace.QName
;
import
de.hft.stuttgart.quality.QualityADEModule
;
@XmlRegistry
public
class
ObjectFactory
{
private
static
final
QName
VALIDATION_QNAME
=
new
QName
(
QualityADEModule
.
NAMESPACE_URI
,
"validation"
);
private
static
final
QName
VALIDATION_RESULT_QNAME
=
new
QName
(
QualityADEModule
.
NAMESPACE_URI
,
"validationResult"
);
public
ValidationType
createValidationType
()
{
return
new
ValidationType
();
}
public
ValidationResultType
createValidationResultType
()
{
return
new
ValidationResultType
();
}
public
ConsecutivePointsSameType
createConsecutivePointsSameType
()
{
return
new
ConsecutivePointsSameType
();
}
public
TooFewPointsType
createTooFewPointsType
()
{
return
new
TooFewPointsType
();
}
@XmlElementDecl
(
namespace
=
QualityADEModule
.
NAMESPACE_URI
,
name
=
"validation"
,
substitutionHeadNamespace
=
"http://www.opengis.net/citygml/2.0"
,
substitutionHeadName
=
"_GenericApplicationPropertyOfCityModel"
)
public
JAXBElement
<
ValidationType
>
createValidationType
(
ValidationType
type
)
{
return
new
JAXBElement
<>(
VALIDATION_QNAME
,
ValidationType
.
class
,
type
);
}
@XmlElementDecl
(
namespace
=
QualityADEModule
.
NAMESPACE_URI
,
name
=
"validationResult"
,
substitutionHeadNamespace
=
"http://www.opengis.net/citygml/2.0"
,
substitutionHeadName
=
"_GenericApplicationPropertyOfCityObject"
)
public
JAXBElement
<
ValidationResultType
>
createValidationResultType
(
ValidationResultType
type
)
{
return
new
JAXBElement
<>(
VALIDATION_RESULT_QNAME
,
ValidationResultType
.
class
,
type
);
}
public
RingSelfIntersectionType
createRingSelfIntersectionType
()
{
return
new
RingSelfIntersectionType
();
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/PolygonErrorType.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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
;
import
javax.xml.bind.annotation.XmlSeeAlso
;
@XmlSeeAlso
({
InteriorDisconnectedType
.
class
,
IntersectingRingsType
.
class
,
HoleOutsideType
.
class
,
InnerRingsNestedType
.
class
,
NonPlanarDistancePlaneType
.
class
,
NonPlanarNormalsDeviationType
.
class
,
OrientationRingsSameType
.
class
})
@XmlRootElement
(
name
=
"PolygonError"
)
public
class
PolygonErrorType
extends
ValidationErrorType
{
private
String
polygonId
;
public
void
setPolygonId
(
String
polygonId
)
{
this
.
polygonId
=
polygonId
;
}
public
String
getPolygonId
()
{
return
polygonId
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/PolygonWrongOrientationType.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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
java.util.ArrayList
;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlElement
;
import
javax.xml.bind.annotation.XmlElementWrapper
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
(
name
=
"GE_S_POLYGON_WRONG_ORIENTATION"
)
public
class
PolygonWrongOrientationType
extends
SolidErrorType
{
@XmlElementWrapper
@XmlElement
(
name
=
"edge"
)
private
List
<
EdgeType
>
edges
;
public
boolean
isSetEdges
()
{
return
edges
!=
null
&&
!
edges
.
isEmpty
();
}
public
List
<
EdgeType
>
getEdges
()
{
if
(
edges
==
null
)
{
edges
=
new
ArrayList
<>();
}
return
edges
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/RingErrorType.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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
;
import
javax.xml.bind.annotation.XmlSeeAlso
;
@XmlSeeAlso
({
ConsecutivePointsSameType
.
class
,
RingNotClosedType
.
class
,
RingSelfIntersectionType
.
class
,
TooFewPointsType
.
class
})
@XmlRootElement
(
name
=
"RingError"
)
public
class
RingErrorType
extends
ValidationErrorType
{
private
String
linearRingId
;
public
String
getLinearRingId
()
{
return
linearRingId
;
}
public
void
setLinearRingId
(
String
linearRingId
)
{
this
.
linearRingId
=
linearRingId
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/RingSelfIntersectionType.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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
;
import
net.opengis.gml.DirectPositionType
;
@XmlRootElement
(
name
=
"GE_R_SELF_INTERSECTION"
)
public
class
RingSelfIntersectionType
extends
RingErrorType
{
private
RingSelfIntType
type
;
private
EdgeType
edge1
;
private
EdgeType
edge2
;
private
DirectPositionType
vertex1
;
private
DirectPositionType
vertex2
;
public
void
setType
(
RingSelfIntType
type
)
{
this
.
type
=
type
;
}
public
void
setEdge1
(
EdgeType
edge1
)
{
this
.
edge1
=
edge1
;
}
public
void
setEdge2
(
EdgeType
edge2
)
{
this
.
edge2
=
edge2
;
}
public
void
setVertex1
(
DirectPositionType
vertex1
)
{
this
.
vertex1
=
vertex1
;
}
public
void
setVertex2
(
DirectPositionType
vertex2
)
{
this
.
vertex2
=
vertex2
;
}
public
RingSelfIntType
getType
()
{
return
type
;
}
public
EdgeType
getEdge1
()
{
return
edge1
;
}
public
EdgeType
getEdge2
()
{
return
edge2
;
}
public
DirectPositionType
getVertex1
()
{
return
vertex1
;
}
public
DirectPositionType
getVertex2
()
{
return
vertex2
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/SemanticErrorType.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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
;
import
javax.xml.bind.annotation.XmlSeeAlso
;
@XmlSeeAlso
({
AttributeWrongValueType
.
class
,
AttributeMissingType
.
class
})
@XmlRootElement
(
name
=
"SemanticError"
)
public
class
SemanticErrorType
extends
ValidationErrorType
{
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/SolidErrorType.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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
;
import
javax.xml.bind.annotation.XmlSeeAlso
;
@XmlSeeAlso
({
SolidNotClosedType
.
class
,
AllPolygonsWrongOrientationType
.
class
,
PolygonWrongOrientationType
.
class
,
NonManifoldVertexType
.
class
,
NonManifoldEdgeType
.
class
,
TooFewPolygonsType
.
class
,
MultipleConnectedComponentsType
.
class
,
SolidSelfIntersectionType
.
class
})
@XmlRootElement
(
name
=
"SolidError"
)
public
class
SolidErrorType
extends
ValidationErrorType
{
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/jaxb/TooFewPointsType.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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_R_TOO_FEW_POINTS"
)
public
class
TooFewPointsType
extends
RingErrorType
{
@Override
public
String
toString
()
{
return
"TooFewPoints [linearRingId="
+
getLinearRingId
()
+
"]"
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/TooFewPolygonsType.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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_TOO_FEW_POLYGONS"
)
public
class
TooFewPolygonsType
extends
SolidErrorType
{
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/ValidationErrorType.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlSeeAlso
;
import
javax.xml.bind.annotation.XmlTransient
;
@XmlSeeAlso
({
RingErrorType
.
class
,
PolygonErrorType
.
class
,
SolidErrorType
.
class
,
SemanticErrorType
.
class
})
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlRootElement
(
name
=
"ValidationError"
)
public
abstract
class
ValidationErrorType
{
@XmlTransient
private
String
name
;
protected
ValidationErrorType
()
{
name
=
getClass
().
getAnnotation
(
XmlRootElement
.
class
).
name
();
}
public
String
getName
()
{
return
name
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/ValidationResultType.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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
java.util.ArrayList
;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAttribute
;
import
javax.xml.bind.annotation.XmlElementRef
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
ValidationResultType
{
@XmlAttribute
(
name
=
"result"
)
private
ResultType
result
;
@XmlElementRef
private
List
<
ValidationErrorType
>
errors
;
public
List
<
ValidationErrorType
>
getErrors
()
{
if
(
errors
==
null
)
{
errors
=
new
ArrayList
<>(
2
);
}
return
errors
;
}
public
void
setResult
(
ResultType
result
)
{
this
.
result
=
result
;
}
public
ResultType
getResult
()
{
return
result
;
}
public
boolean
isSetErrors
()
{
return
errors
!=
null
&&
!
errors
.
isEmpty
();
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/jaxb/package-info.java
deleted
100644 → 0
View file @
009cef54
/*-
* 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.
*/
@javax
.
xml
.
bind
.
annotation
.
XmlSchema
(
namespace
=
"https://transfer.hft-stuttgart.de/pages/citydoctor/qualityade/0.1.3"
,
elementFormDefault
=
javax
.
xml
.
bind
.
annotation
.
XmlNsForm
.
QUALIFIED
,
xmlns
=
{
@javax
.
xml
.
bind
.
annotation
.
XmlNs
(
namespaceURI
=
"https://transfer.hft-stuttgart.de/pages/citydoctor/qualityade/0.1.3"
,
prefix
=
"qual"
)
})
package
de.hft.stuttgart.quality.model.jaxb
;
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/properties/AbstractErrorProperty.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.properties
;
import
java.io.Serial
;
import
org.citygml4j.core.model.ade.ADEObject
;
import
org.xmlobjects.gml.model.base.AbstractInlineProperty
;
import
de.hft.stuttgart.quality.model.types.AbstractError
;
public
class
AbstractErrorProperty
extends
AbstractInlineProperty
<
AbstractError
>
implements
ADEObject
{
@Serial
private
static
final
long
serialVersionUID
=
1411862623125946009L
;
public
AbstractErrorProperty
()
{
super
();
}
public
AbstractErrorProperty
(
AbstractError
ae
)
{
super
(
ae
);
}
@Override
public
Class
<
AbstractError
>
getTargetType
()
{
return
AbstractError
.
class
;
}
}
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
ChildObject
.java
→
citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/model/
properties/AbstractGeometryErrorProperty
.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,41 +13,31 @@
...
@@ -13,41 +13,31 @@
* 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.properties
;
import
org.citygml4j.builder.copy.CopyBuilder
;
import
java.io.Serial
;
import
org.citygml4j.model.citygml.ade.binding.ADEModelObject
;
import
org.citygml4j.model.common.base.ModelObject
;
import
org.citygml4j.core.model.ade.ADEObject
;
import
org.xmlobjects.gml.model.base.AbstractInlineProperty
;
public
abstract
class
ChildObject
implements
ADEModelObject
{
import
de.hft.stuttgart.quality.model.types.AbstractGeometryError
;
private
static
final
long
serialVersionUID
=
6726372382501963276L
;
public
class
AbstractGeometryErrorProperty
extends
AbstractInlineProperty
<
AbstractGeometryError
>
implements
ADEObject
{
private
ModelObject
parent
;
@Serial
@Override
private
static
final
long
serialVersionUID
=
7034671234592671680L
;
public
Object
copyTo
(
Object
target
,
CopyBuilder
copyBuilder
)
{
return
target
;
public
AbstractGeometryErrorProperty
()
{
}
super
();
}
@Override
public
ModelObject
getParent
()
{
public
AbstractGeometryErrorProperty
(
AbstractGeometryError
age
)
{
return
parent
;
super
(
age
);
}
}
@Override
@Override
public
void
setParent
(
ModelObject
parent
)
{
public
Class
<
AbstractGeometryError
>
getTargetType
()
{
this
.
parent
=
parent
;
return
AbstractGeometryError
.
class
;
}
}
@Override
public
boolean
isSetParent
()
{
return
parent
!=
null
;
}
@Override
public
void
unsetParent
()
{
parent
=
null
;
}
}
}
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