Commit 571a3248 authored by Matthias Betz's avatar Matthias Betz
Browse files

update model for citygml4j 3 and quality ade 1.4.0

parent 009cef54
/*-
* Copyright 2022 Hochschule für Technik Stuttgart
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.hft.stuttgart.quality.model.types;
import java.io.Serial;
import org.xmlobjects.gml.model.GMLObject;
public abstract class AbstractError extends GMLObject {
@Serial
private static final long serialVersionUID = 4456303926951620441L;
}
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,11 +13,13 @@ ...@@ -13,11 +13,13 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model.jaxb; package de.hft.stuttgart.quality.model.types;
import javax.xml.bind.annotation.XmlRootElement; import java.io.Serial;
@XmlRootElement(name = "GE_P_INTERIOR_DISCONNECTED") public abstract class AbstractGeometryError extends AbstractError {
public class InteriorDisconnectedType extends PolygonErrorType {
@Serial
private static final long serialVersionUID = 5584980708521134866L;
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,19 +13,23 @@ ...@@ -13,19 +13,23 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model; package de.hft.stuttgart.quality.model.types;
public abstract class PolygonError extends ValidationError { import java.io.Serial;
private static final long serialVersionUID = 4694297467768369526L; public abstract class AbstractPolygonError extends AbstractGeometryError {
@Serial
private static final long serialVersionUID = 8765755615504522764L;
private String polygonId; private String polygonId;
public String getPolygonId() {
return polygonId;
}
public void setPolygonId(String polygonId) { public void setPolygonId(String polygonId) {
this.polygonId = polygonId; this.polygonId = polygonId;
} }
public String getPolygonId() {
return polygonId;
}
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,21 +13,23 @@ ...@@ -13,21 +13,23 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model.jaxb; package de.hft.stuttgart.quality.model.types;
import javax.xml.bind.annotation.XmlRootElement; import java.io.Serial;
@XmlRootElement(name = "GE_P_ORIENTATION_RINGS_SAME") public abstract class AbstractRingError extends AbstractGeometryError {
public class OrientationRingsSameType extends PolygonErrorType {
private String linearRingId; @Serial
private static final long serialVersionUID = 6406932524599157467L;
public void setLinearRingId(String linearRingId) {
this.linearRingId = linearRingId; private String linearRingId;
}
public String getLinearRingId() { public String getLinearRingId() {
return linearRingId; return linearRingId;
} }
public void setLinearRingId(String linearRingId) {
this.linearRingId = linearRingId;
}
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,10 +13,13 @@ ...@@ -13,10 +13,13 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model; package de.hft.stuttgart.quality.model.types;
public abstract class SemanticError extends ValidationError { import java.io.Serial;
private static final long serialVersionUID = 8986289777859562928L; public abstract class AbstractSemanticError extends AbstractError {
@Serial
private static final long serialVersionUID = 3754322190455789991L;
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,18 +13,23 @@ ...@@ -13,18 +13,23 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model; package de.hft.stuttgart.quality.model.types;
public abstract class SolidError extends ValidationError { import java.io.Serial;
private static final long serialVersionUID = 6430138970493794998L;
private String geometryId;
public void setGeometryId(String geometryId) { public abstract class AbstractSolidError extends AbstractGeometryError {
this.geometryId = geometryId;
} @Serial
private static final long serialVersionUID = 8616094562996823088L;
private String geometryId;
public String getGeometryId() { public String getGeometryId() {
return geometryId; return geometryId;
} }
public void setGeometryId(String geometryId) {
this.geometryId = geometryId;
}
} }
/*-
* Copyright 2022 Hochschule für Technik Stuttgart
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.hft.stuttgart.quality.model.types;
import java.io.Serial;
public abstract class AllPolygonsOrientedWrongError extends AbstractSolidError {
@Serial
private static final long serialVersionUID = 4295306777217062184L;
}
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,22 +13,27 @@ ...@@ -13,22 +13,27 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model; package de.hft.stuttgart.quality.model.types;
import org.citygml4j.builder.copy.CopyBuilder; import java.io.Serial;
public class AllPolygonsWrongOrientation extends SolidError { import org.xmlobjects.gml.model.GMLObject;
private static final long serialVersionUID = 3817224755569965908L; import de.hft.stuttgart.quality.model.enums.TopLevelFeatureType;
@Override public abstract class Checking extends GMLObject {
public String toString() {
return "AllPolygonsWrongOrientation [geometryId=" + getGeometryId() + "]"; @Serial
private static final long serialVersionUID = 8248598807454312291L;
private TopLevelFeatureType featureType;
public TopLevelFeatureType getFeatureType() {
return featureType;
} }
@Override public void setFeatureType(TopLevelFeatureType featureType) {
public Object copy(CopyBuilder copyBuilder) { this.featureType = featureType;
return copyTo(new AllPolygonsWrongOrientation(), copyBuilder);
} }
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,31 +13,32 @@ ...@@ -13,31 +13,32 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model.jaxb; package de.hft.stuttgart.quality.model.types;
import java.io.Serial;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.xml.bind.annotation.XmlElement; import org.xmlobjects.gml.model.GMLObject;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement; import de.hft.stuttgart.quality.model.properties.PolygonIdListProperty;
@XmlRootElement(name = "GE_S_MULTIPLE_CONNECTED_COMPONENTS") public abstract class ComponentList extends GMLObject {
public class MultipleConnectedComponentsType extends SolidErrorType {
@Serial
@XmlElementWrapper private static final long serialVersionUID = 7846916128728837265L;
@XmlElement(name = "component")
private List<Component> components; private List<PolygonIdListProperty> components;
public boolean isSetComponents() { public List<PolygonIdListProperty> getComponents() {
return components != null && !components.isEmpty();
}
public List<Component> getComponents() {
if (components == null) { if (components == null) {
components = new ArrayList<>(); components = new ArrayList<>();
} }
return components; return components;
} }
public void setComponents(List<PolygonIdListProperty> components) {
this.components = components;
}
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,43 +13,39 @@ ...@@ -13,43 +13,39 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model; package de.hft.stuttgart.quality.model.types;
import org.citygml4j.builder.copy.CopyBuilder; import java.io.Serial;
import org.citygml4j.model.gml.geometry.primitives.DirectPosition;
import org.xmlobjects.gml.model.geometry.DirectPosition;
public abstract class ConsecutivePointsSameError extends AbstractRingError {
@Serial
private static final long serialVersionUID = 960107689338308020L;
public class ConsecutivePointsSame extends RingError {
private static final long serialVersionUID = -838421312521561747L;
private DirectPosition vertex1; private DirectPosition vertex1;
private DirectPosition vertex2; private DirectPosition vertex2;
public void setVertex1(DirectPosition vertex1) {
this.vertex1 = vertex1;
}
public void setVertex2(DirectPosition vertex2) {
this.vertex2 = vertex2;
}
public DirectPosition getVertex1() { public DirectPosition getVertex1() {
return vertex1; return vertex1;
} }
public void setVertex1(DirectPosition vertex1) {
this.vertex1 = vertex1;
}
public DirectPosition getVertex2() { public DirectPosition getVertex2() {
return vertex2; return vertex2;
} }
@Override public void setVertex2(DirectPosition vertex2) {
public String toString() { this.vertex2 = vertex2;
return "ConsecutivePointsSame [linearRingId=" + getLinearRingId() + ", vertex1=" + vertex1 + ", vertex2=" + vertex2
+ "]";
} }
@Override @Override
public Object copy(CopyBuilder copyBuilder) { public String toString() {
return copyTo(new ConsecutivePointsSame(), copyBuilder); return "ConsecutivePointsSameError [vertex1=" + vertex1 + ", vertex2=" + vertex2 + "]";
} }
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,33 +13,40 @@ ...@@ -13,33 +13,40 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model; package de.hft.stuttgart.quality.model.types;
import java.io.Serializable; import java.io.Serial;
import org.citygml4j.model.gml.geometry.primitives.DirectPosition; import org.xmlobjects.gml.model.GMLObject;
import org.xmlobjects.gml.model.geometry.DirectPosition;
public abstract class Edge extends GMLObject {
@Serial
private static final long serialVersionUID = 8021062845313752146L;
public class Edge implements Serializable {
private static final long serialVersionUID = -5076265818764666094L;
private DirectPosition from; private DirectPosition from;
private DirectPosition to; private DirectPosition to;
public DirectPosition getFrom() {
return from;
}
public void setFrom(DirectPosition from) { public void setFrom(DirectPosition from) {
this.from = from; this.from = from;
} }
public DirectPosition getTo() {
return to;
}
public void setTo(DirectPosition to) { public void setTo(DirectPosition to) {
this.to = to; this.to = to;
} }
public DirectPosition getFrom() { @Override
return from; public String toString() {
} return "Edge [from=" + from + ", to=" + to + "]";
public DirectPosition getTo() {
return to;
} }
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,32 +13,32 @@ ...@@ -13,32 +13,32 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model; package de.hft.stuttgart.quality.model.types;
import java.io.Serial;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.citygml4j.builder.copy.CopyBuilder; import org.xmlobjects.gml.model.GMLObject;
public class NonManifoldEdge extends SolidError { import de.hft.stuttgart.quality.model.properties.EdgeProperty;
private static final long serialVersionUID = -4312748985706248178L; public abstract class EdgeList extends GMLObject {
private List<Edge> edges; @Serial
private static final long serialVersionUID = 5900643456940461301L;
private List<EdgeProperty> edges;
public boolean isSetEdges() { public List<EdgeProperty> getEdges() {
return edges != null && !edges.isEmpty();
}
public List<Edge> getEdges() {
if (edges == null) { if (edges == null) {
edges = new ArrayList<>(); edges = new ArrayList<>();
} }
return edges; return edges;
} }
@Override public void setEdges(List<EdgeProperty> edges) {
public Object copy(CopyBuilder copyBuilder) { this.edges = edges;
return copyTo(new NonPlanarNormalsDeviation(), copyBuilder);
} }
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,45 +13,41 @@ ...@@ -13,45 +13,41 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model.jaxb; package de.hft.stuttgart.quality.model.types;
import java.io.Serializable; import java.io.Serial;
import javax.xml.bind.annotation.XmlAccessType; import org.xmlobjects.gml.model.GMLObject;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlValue;
@XmlAccessorType(XmlAccessType.FIELD) import de.hft.stuttgart.quality.model.enums.ErrorId;
public class ErrorStatistics implements Serializable {
private static final long serialVersionUID = -1007447539987946146L;
@XmlAttribute public abstract class Error extends GMLObject {
@Serial
private static final long serialVersionUID = 2447962257841143458L;
private int occurences;
private ErrorId name; private ErrorId name;
@XmlValue public int getOccurences() {
private int amount; return occurences;
}
public void setName(ErrorId name) {
this.name = name; public void setOccurences(int occurences) {
this.occurences = occurences;
} }
public ErrorId getName() { public ErrorId getName() {
return name; return name;
} }
public void setAmount(int amount) { public void setName(ErrorId name) {
this.amount = amount; this.name = name;
}
public int getAmount() {
return amount;
} }
@Override @Override
public String toString() { public String toString() {
return "ErrorStatistics [name=" + name + ", amount=" + amount + "]"; return "Error [occurences=" + occurences + ", name=" + name + "]";
} }
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,52 +13,34 @@ ...@@ -13,52 +13,34 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model.jaxb; package de.hft.stuttgart.quality.model.types;
import java.io.Serializable; import java.io.Serial;
import javax.xml.bind.annotation.XmlAccessType; import org.xmlobjects.gml.model.GMLObject;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlValue;
@XmlAccessorType(XmlAccessType.FIELD) public abstract class FeatureStatistics extends GMLObject {
public class FeatureStatistics implements Serializable {
private static final long serialVersionUID = 5794335930507488398L; @Serial
private static final long serialVersionUID = 5835765260535725839L;
@XmlAttribute
private int numChecked; private int numChecked;
@XmlValue
private int numErrors; private int numErrors;
public FeatureStatistics() { public int getNumChecked() {
} return numChecked;
public FeatureStatistics(int numChecked, int numErrors) {
this.numChecked = numChecked;
this.numErrors = numErrors;
} }
public void setNumChecked(int numChecked) { public void setNumChecked(int numChecked) {
this.numChecked = numChecked; this.numChecked = numChecked;
} }
public void setNumErrors(int numErrors) {
this.numErrors = numErrors;
}
public int getNumChecked() {
return numChecked;
}
public int getNumErrors() { public int getNumErrors() {
return numErrors; return numErrors;
} }
@Override public void setNumErrors(int numErrors) {
public String toString() { this.numErrors = numErrors;
return "FeatureStatistics [numChecked=" + numChecked + ", numErrors=" + numErrors + "]";
} }
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,31 +13,32 @@ ...@@ -13,31 +13,32 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model.jaxb; package de.hft.stuttgart.quality.model.types;
import java.io.Serial;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.xml.bind.annotation.XmlElement; import org.xmlobjects.gml.model.GMLObject;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "GE_S_NOT_CLOSED") import de.hft.stuttgart.quality.model.properties.CheckingProperty;
public class SolidNotClosedType extends SolidErrorType {
@XmlElementWrapper public abstract class Filter extends GMLObject {
@XmlElement(name = "edge")
private List<EdgeType> edges;
public boolean isSetEdges() { @Serial
return edges != null && !edges.isEmpty(); private static final long serialVersionUID = 2766323821940477659L;
}
private List<CheckingProperty> checking;
public List<EdgeType> getEdges() { public List<CheckingProperty> getChecking() {
if (edges == null) { if (checking == null) {
edges = new ArrayList<>(); checking = new ArrayList<>();
} }
return edges; return checking;
}
public void setChecking(List<CheckingProperty> checking) {
this.checking = checking;
} }
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,31 +13,32 @@ ...@@ -13,31 +13,32 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model.jaxb; package de.hft.stuttgart.quality.model.types;
import java.io.Serial;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.xml.bind.annotation.XmlElement; import org.xmlobjects.gml.model.GMLObject;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "GE_S_NON_MANIFOLD_EDGE") import de.hft.stuttgart.quality.model.properties.ParameterProperty;
public class NonManifoldEdgeType extends SolidErrorType {
@XmlElementWrapper public abstract class GlobalParameters extends GMLObject {
@XmlElement(name = "edge")
private List<EdgeType> edges;
public boolean isSetEdges() { @Serial
return edges != null && !edges.isEmpty(); private static final long serialVersionUID = 5470016232480954926L;
}
private List<ParameterProperty> parameters;
public List<EdgeType> getEdges() { public List<ParameterProperty> getParameters() {
if (edges == null) { if (parameters == null) {
edges = new ArrayList<>(); parameters = new ArrayList<>();
} }
return edges; return parameters;
}
public void setParameters(List<ParameterProperty> parameters) {
this.parameters = parameters;
} }
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,21 +13,28 @@ ...@@ -13,21 +13,28 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model.jaxb; package de.hft.stuttgart.quality.model.types;
import javax.xml.bind.annotation.XmlRootElement; import java.io.Serial;
@XmlRootElement(name = "GE_P_HOLE_OUTSIDE") public abstract class HoleOutsideError extends AbstractPolygonError {
public class HoleOutsideType extends PolygonErrorType {
@Serial
private static final long serialVersionUID = 7823516103018988170L;
private String linearRingId; private String linearRingId;
public String getLinearRingId() {
return linearRingId;
}
public void setLinearRingId(String linearRingId) { public void setLinearRingId(String linearRingId) {
this.linearRingId = linearRingId; this.linearRingId = linearRingId;
} }
public String getLinearRingId() { @Override
return linearRingId; public String toString() {
return "HoleOutsideError [linearRingId=" + linearRingId + "]";
} }
} }
/*- /*-
* Copyright 2020 Hochschule für Technik Stuttgart * Copyright 2022 Hochschule für Technik Stuttgart
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -13,35 +13,37 @@ ...@@ -13,35 +13,37 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.hft.stuttgart.quality.model; package de.hft.stuttgart.quality.model.types;
import org.citygml4j.builder.copy.CopyBuilder; import java.io.Serial;
public class InnerRingsNested extends PolygonError { public abstract class InnerRingsNestedError extends AbstractPolygonError {
private static final long serialVersionUID = 2291087505629924993L; @Serial
private static final long serialVersionUID = 6801491749796411678L;
private String linearRingId1; private String linearRingId1;
private String linearRingId2; private String linearRingId2;
public void setLinearRingId1(String linearRingId1) {
this.linearRingId1 = linearRingId1;
}
public void setLinearRingId2(String linearRingId2) {
this.linearRingId2 = linearRingId2;
}
public String getLinearRingId1() { public String getLinearRingId1() {
return linearRingId1; return linearRingId1;
} }
public void setLinearRingId1(String linearRingId1) {
this.linearRingId1 = linearRingId1;
}
public String getLinearRingId2() { public String getLinearRingId2() {
return linearRingId2; return linearRingId2;
} }
public void setLinearRingId2(String linearRingId2) {
this.linearRingId2 = linearRingId2;
}
@Override @Override
public Object copy(CopyBuilder copyBuilder) { public String toString() {
return copyTo(new InnerRingsNested(), copyBuilder); return "InnerRingsNestedError [linearRingId1=" + linearRingId1 + ", linearRingId2=" + linearRingId2 + "]";
} }
} }
/*-
* Copyright 2022 Hochschule für Technik Stuttgart
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.hft.stuttgart.quality.model.types;
import java.io.Serial;
public abstract class InteriorDisconnectedError extends AbstractPolygonError {
@Serial
private static final long serialVersionUID = 8270468563578479182L;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment