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 0000000000000000000000000000000000000000..57530d55c89f12d54e53859e0f876af6e9ad4da7 --- /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<Edge>, ObjectSerializer<Edge> { + + @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 0000000000000000000000000000000000000000..ef88670d617810281ac5e59148017a6e1880e037 --- /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<AbstractErrorProperty> { + + @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 0000000000000000000000000000000000000000..45b39300951e3d63fb0c4bb1be78bd8575771000 --- /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<AbstractGeometryErrorProperty> { + + @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 0000000000000000000000000000000000000000..3ef49fafb5696dfbc5972270358cc314180e0b48 --- /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<AbstractPolygonErrorProperty> { + + @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 0000000000000000000000000000000000000000..586548eb1ab5b5fc7ddba94e4249c63e3d93d22c --- /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<AbstractRingErrorProperty> { + + @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 0000000000000000000000000000000000000000..3301ceb80cabfbb64ae8fb75c4f7f6ec3c2f58a6 --- /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<AbstractSemanticErrorProperty> { + + @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 0000000000000000000000000000000000000000..4a28b4fd0d1633b7881f26680afecb6c9282b219 --- /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<AbstractSolidErrorProperty> { + + @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 0000000000000000000000000000000000000000..60e31d583e789b4269a3aba81f6a2e3f48bbab60 --- /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<CheckingProperty> { + + @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 0000000000000000000000000000000000000000..66930ed8eb5805a13608320b0de9532abac16d47 --- /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<ComponentListProperty> { + + @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 0000000000000000000000000000000000000000..a928e0592c2058e743a97d76095ee775358a43ee --- /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<EdgeListProperty> { + + @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 0000000000000000000000000000000000000000..9ec5629cdd7ac722f37d6351d376b07af7606943 --- /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<EdgeProperty> { + + @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 0000000000000000000000000000000000000000..421dca24f09e057c74f95d2fbffd191c240bb3c4 --- /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<ErrorProperty> { + + @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 0000000000000000000000000000000000000000..2dffab4f99179a733e3ac6d5d9048a13f24ef9fe --- /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<FeatureStatisticsProperty> { + + @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 0000000000000000000000000000000000000000..9c0e26f4c14d60af5be737f027f4ea7ff77ae181 --- /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<FilterProperty> { + + @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 0000000000000000000000000000000000000000..7321e2ffedd95577537163a058e103d0804b33c4 --- /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<GlobalParametersProperty> { + + @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 0000000000000000000000000000000000000000..4c9e80fb950b2a87d630e98d00dbee3bbebc1ed9 --- /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<ParameterProperty> { + + @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 0000000000000000000000000000000000000000..31ff49dd8b29c57c1df8da28670b0e7066aa5336 --- /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<PolygonIdListProperty> { + + @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 0000000000000000000000000000000000000000..4c746fd17e3131c6260ef9e99906f533496e6841 --- /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<RequirementProperty> { + + @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 0000000000000000000000000000000000000000..53f0e3e135317e3500a1d4261e9294a47afa4266 --- /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<StatisticsProperty> { + + @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 0000000000000000000000000000000000000000..6e38ff2ce06c33c1e03d05e0d7b7e0c6e3f8871a --- /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<ValidationPlanProperty> { + + @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 0000000000000000000000000000000000000000..47f40014fa7371e0c537470c27dfc61b748397c6 --- /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<ValidationProperty> { + + @Override + public ValidationProperty createObject(QName name, Object parent) throws ObjectBuildException { + return new ValidationProperty(); + } +}