Commit da89b3a6 authored by Matthias Betz's avatar Matthias Betz
Browse files

removed unnecessary inheritance in java classes

parent 2b82ad81
......@@ -19,16 +19,10 @@ import java.util.ArrayList;
import java.util.List;
import org.citygml4j.builder.copy.CopyBuilder;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.common.visitor.FeatureFunctor;
import org.citygml4j.model.common.visitor.FeatureVisitor;
import org.citygml4j.model.common.visitor.GMLFunctor;
import org.citygml4j.model.common.visitor.GMLVisitor;
import org.citygml4j.model.gml.feature.AbstractFeature;
import de.hft.stuttgart.quality.model.jaxb.ResultType;
public class ValidationResult extends AbstractFeature implements ADEModelObject {
public class ValidationResult extends ChildObject {
private static final long serialVersionUID = 1180762313908627342L;
......@@ -60,25 +54,4 @@ public class ValidationResult extends AbstractFeature implements ADEModelObject
return copyTo(new ValidationResult(), copyBuilder);
}
@Override
public void accept(FeatureVisitor visitor) {
visitor.visit(this);
}
@Override
public <T> T accept(FeatureFunctor<T> visitor) {
return visitor.apply(this);
}
@Override
public void accept(GMLVisitor visitor) {
visitor.visit(this);
}
@Override
public <T> T accept(GMLFunctor<T> visitor) {
return visitor.apply(this);
}
}
......@@ -18,12 +18,13 @@ package de.hft.stuttgart.quality.model.jaxb;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import net.opengis.gml.AbstractFeatureType;
public class ValidationResultType extends AbstractFeatureType {
@XmlAccessorType(XmlAccessType.FIELD)
public class ValidationResultType {
@XmlAttribute(name = "result")
private ResultType result;
......
......@@ -17,14 +17,16 @@ package de.hft.stuttgart.quality.model.jaxb;
import java.time.ZonedDateTime;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import de.hft.stuttgart.quality.marshaller.ZonedDateTimeAdapter;
import net.opengis.gml.AbstractGMLType;
@XmlType(name = "validation")
public class ValidationType extends AbstractGMLType {
@XmlAccessorType(XmlAccessType.FIELD)
public class ValidationType {
@XmlJavaTypeAdapter(ZonedDateTimeAdapter.class)
private ZonedDateTime validationDate;
......
Supports Markdown
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