From 5fe70e148ae4ebaf30ced4894356cf2e14d12619 Mon Sep 17 00:00:00 2001 From: Matthias Betz Date: Thu, 7 Apr 2022 11:16:19 +0200 Subject: [PATCH] add property adapters --- .../quality/adapter/EdgeAdapter.java | 69 +++++++++++++++++++ .../AbstractErrorPropertyAdapter.java | 30 ++++++++ .../AbstractGeometryErrorPropertyAdapter.java | 30 ++++++++ .../AbstractPolygonErrorPropertyAdapter.java | 30 ++++++++ .../AbstractRingErrorPropertyAdapter.java | 30 ++++++++ .../AbstractSemanticErrorPropertyAdapter.java | 30 ++++++++ .../AbstractSolidErrorPropertyAdapter.java | 30 ++++++++ .../properties/CheckingPropertyAdapter.java | 30 ++++++++ .../ComponentListPropertyAdapter.java | 30 ++++++++ .../properties/EdgeListPropertyAdapter.java | 30 ++++++++ .../properties/EdgePropertyAdapter.java | 30 ++++++++ .../properties/ErrorPropertyAdapter.java | 30 ++++++++ .../FeatureStatisticsPropertyAdapter.java | 30 ++++++++ .../properties/FilterPropertyAdapter.java | 30 ++++++++ .../GlobalParametersPropertyAdapter.java | 30 ++++++++ .../properties/ParameterPropertyAdapter.java | 30 ++++++++ .../PolygonIdListPropertyAdapter.java | 30 ++++++++ .../RequirementPropertyAdapter.java | 30 ++++++++ .../properties/StatisticsPropertyAdapter.java | 30 ++++++++ .../ValidationPlanPropertyAdapter.java | 30 ++++++++ .../properties/ValidationPropertyAdapter.java | 31 +++++++++ 21 files changed, 670 insertions(+) create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/EdgeAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractErrorPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractGeometryErrorPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractPolygonErrorPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractRingErrorPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractSemanticErrorPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractSolidErrorPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/CheckingPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ComponentListPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/EdgeListPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/EdgePropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ErrorPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/FeatureStatisticsPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/FilterPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/GlobalParametersPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ParameterPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/PolygonIdListPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/RequirementPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/StatisticsPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ValidationPlanPropertyAdapter.java create mode 100644 citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ValidationPropertyAdapter.java diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/EdgeAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/EdgeAdapter.java new file mode 100644 index 0000000..57530d5 --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/EdgeAdapter.java @@ -0,0 +1,69 @@ +/*- + * 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.adapter; + +import javax.xml.namespace.QName; + +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.builder.ObjectBuilder; +import org.xmlobjects.gml.adapter.geometry.DirectPositionAdapter; +import org.xmlobjects.serializer.ObjectSerializeException; +import org.xmlobjects.serializer.ObjectSerializer; +import org.xmlobjects.stream.XMLReadException; +import org.xmlobjects.stream.XMLReader; +import org.xmlobjects.stream.XMLWriteException; +import org.xmlobjects.stream.XMLWriter; +import org.xmlobjects.xml.Attributes; +import org.xmlobjects.xml.Element; +import org.xmlobjects.xml.Namespaces; + +import de.hft.stuttgart.quality.QualityADEModule; +import de.hft.stuttgart.quality.model.types.Edge; + +public class EdgeAdapter implements ObjectBuilder, ObjectSerializer { + + @Override + public Edge createObject(QName name, Object parent) throws ObjectBuildException { + return new Edge(); + } + + @Override + public void buildChildObject(Edge object, QName name, Attributes attributes, XMLReader reader) + throws ObjectBuildException, XMLReadException { + if (!QualityADEModule.NAMESPACE_URI.equals(name.getNamespaceURI())) { + return; + } + switch (name.getLocalPart()) { + case "from" -> object.setFrom(reader.getObjectUsingBuilder(DirectPositionAdapter.class)); + case "to" -> object.setTo(reader.getObjectUsingBuilder(DirectPositionAdapter.class)); + default -> throw new IllegalStateException("Cannot handle name " + name + " when building edge element"); + } + } + + @Override + public void writeChildElements(Edge object, Namespaces namespaces, XMLWriter writer) + throws ObjectSerializeException, XMLWriteException { + if (object.getFrom() != null) { + writer.writeElementUsingSerializer(Element.of(QualityADEModule.NAMESPACE_URI, "from"), object.getFrom(), + DirectPositionAdapter.class, namespaces); + } + if (object.getTo() != null) { + writer.writeElementUsingSerializer(Element.of(QualityADEModule.NAMESPACE_URI, "to"), object.getTo(), + DirectPositionAdapter.class, namespaces); + } + } + +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractErrorPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractErrorPropertyAdapter.java new file mode 100644 index 0000000..ef88670 --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractErrorPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.AbstractErrorProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class AbstractErrorPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public AbstractErrorProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new AbstractErrorProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractGeometryErrorPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractGeometryErrorPropertyAdapter.java new file mode 100644 index 0000000..45b3930 --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractGeometryErrorPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.AbstractGeometryErrorProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class AbstractGeometryErrorPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public AbstractGeometryErrorProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new AbstractGeometryErrorProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractPolygonErrorPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractPolygonErrorPropertyAdapter.java new file mode 100644 index 0000000..3ef49fa --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractPolygonErrorPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.AbstractPolygonErrorProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class AbstractPolygonErrorPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public AbstractPolygonErrorProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new AbstractPolygonErrorProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractRingErrorPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractRingErrorPropertyAdapter.java new file mode 100644 index 0000000..586548e --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractRingErrorPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.AbstractRingErrorProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class AbstractRingErrorPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public AbstractRingErrorProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new AbstractRingErrorProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractSemanticErrorPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractSemanticErrorPropertyAdapter.java new file mode 100644 index 0000000..3301ceb --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractSemanticErrorPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.AbstractSemanticErrorProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class AbstractSemanticErrorPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public AbstractSemanticErrorProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new AbstractSemanticErrorProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractSolidErrorPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractSolidErrorPropertyAdapter.java new file mode 100644 index 0000000..4a28b4f --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/AbstractSolidErrorPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.AbstractSolidErrorProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class AbstractSolidErrorPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public AbstractSolidErrorProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new AbstractSolidErrorProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/CheckingPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/CheckingPropertyAdapter.java new file mode 100644 index 0000000..60e31d5 --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/CheckingPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.CheckingProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class CheckingPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public CheckingProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new CheckingProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ComponentListPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ComponentListPropertyAdapter.java new file mode 100644 index 0000000..66930ed --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ComponentListPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.ComponentListProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class ComponentListPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public ComponentListProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new ComponentListProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/EdgeListPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/EdgeListPropertyAdapter.java new file mode 100644 index 0000000..a928e05 --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/EdgeListPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.EdgeListProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class EdgeListPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public EdgeListProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new EdgeListProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/EdgePropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/EdgePropertyAdapter.java new file mode 100644 index 0000000..9ec5629 --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/EdgePropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.EdgeProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class EdgePropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public EdgeProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new EdgeProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ErrorPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ErrorPropertyAdapter.java new file mode 100644 index 0000000..421dca2 --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ErrorPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.ErrorProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class ErrorPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public ErrorProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new ErrorProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/FeatureStatisticsPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/FeatureStatisticsPropertyAdapter.java new file mode 100644 index 0000000..2dffab4 --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/FeatureStatisticsPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.FeatureStatisticsProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class FeatureStatisticsPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public FeatureStatisticsProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new FeatureStatisticsProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/FilterPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/FilterPropertyAdapter.java new file mode 100644 index 0000000..9c0e26f --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/FilterPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.FilterProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class FilterPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public FilterProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new FilterProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/GlobalParametersPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/GlobalParametersPropertyAdapter.java new file mode 100644 index 0000000..7321e2f --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/GlobalParametersPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.GlobalParametersProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class GlobalParametersPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public GlobalParametersProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new GlobalParametersProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ParameterPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ParameterPropertyAdapter.java new file mode 100644 index 0000000..4c9e80f --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ParameterPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.ParameterProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class ParameterPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public ParameterProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new ParameterProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/PolygonIdListPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/PolygonIdListPropertyAdapter.java new file mode 100644 index 0000000..31ff49d --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/PolygonIdListPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.PolygonIdListProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class PolygonIdListPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public PolygonIdListProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new PolygonIdListProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/RequirementPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/RequirementPropertyAdapter.java new file mode 100644 index 0000000..4c746fd --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/RequirementPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.RequirementProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class RequirementPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public RequirementProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new RequirementProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/StatisticsPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/StatisticsPropertyAdapter.java new file mode 100644 index 0000000..53f0e3e --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/StatisticsPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.StatisticsProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class StatisticsPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public StatisticsProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new StatisticsProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ValidationPlanPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ValidationPlanPropertyAdapter.java new file mode 100644 index 0000000..6e38ff2 --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ValidationPlanPropertyAdapter.java @@ -0,0 +1,30 @@ +/*- + * 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.adapter.properties; + +import de.hft.stuttgart.quality.model.properties.ValidationPlanProperty; +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlinePropertyAdapter; + +import javax.xml.namespace.QName; + +public class ValidationPlanPropertyAdapter extends AbstractInlinePropertyAdapter { + + @Override + public ValidationPlanProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new ValidationPlanProperty(); + } +} diff --git a/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ValidationPropertyAdapter.java b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ValidationPropertyAdapter.java new file mode 100644 index 0000000..47f4001 --- /dev/null +++ b/citygml4j-quality-ade/src/main/java/de/hft/stuttgart/quality/adapter/properties/ValidationPropertyAdapter.java @@ -0,0 +1,31 @@ +/*- + * 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.adapter.properties; + +import javax.xml.namespace.QName; + +import org.xmlobjects.builder.ObjectBuildException; +import org.xmlobjects.gml.adapter.base.AbstractInlineOrByReferencePropertyAdapter; + +import de.hft.stuttgart.quality.model.properties.ValidationProperty; + +public class ValidationPropertyAdapter extends AbstractInlineOrByReferencePropertyAdapter { + + @Override + public ValidationProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new ValidationProperty(); + } +} -- GitLab