Commit 7f9fdc25 authored by PrabithaPrabhakaran's avatar PrabithaPrabhakaran
Browse files

Add importer exporter for resource module

parent 63190206
package org.citygml4j.ade.energy3.bind;
import lombok.SneakyThrows;
import net.opengis.citygml._1.ExternalReferenceType;
import net.opengis.gml.*;
import org.citygml4j.ade.energy3.model.core.*;
import org.citygml4j.ade.energy3.model.supportingClasses.*;
import org.citygml4j.builder.jaxb.unmarshal.citygml.ade.ADEUnmarshallerHelper;
import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
import org.citygml4j.model.citygml.ade.binding.ADEUnmarshaller;
import org.citygml4j.model.citygml.core.ExternalReference;
import org.citygml4j.model.common.base.ModelObject;
import org.citygml4j.model.gml.xlink.XLinkActuate;
import org.citygml4j.model.gml.xlink.XLinkShow;
......@@ -84,6 +86,8 @@ public class EnergyADEUnmarshaller implements ADEUnmarshaller {
.with(AbstractDevicePropertyType.class, this::unmarshalAbstractDeviceProperty)
.with(WeatherDataPropertyType.class, this::unmarshalWeatherDataProperty)
.with(WeatherDataType.class, this::unmarshalWeatherData)
.with(AbstractFeatureWithLifeSpanPropertyType.class, this::AbstractFeatureWithLifeSpanProperty)
.with(AbstractADEFeaturePropertyType.class, this::unmarshalAbstractADEFeatureProperty)
.with(JAXBElement.class, this::unmarshal);
}
} finally {
......@@ -131,6 +135,8 @@ public class EnergyADEUnmarshaller implements ADEUnmarshaller {
return new ReferencePointProperty(helper.getGMLUnmarshaller().unmarshalPointProperty((PointPropertyType) value));
case "suitability":
return new SuitabilityProperty((SuitabilityPropertyType) value);
// case "externalReference":
// return new ExternalReferenceProperty((ExternalReferenceProperty)value);
}
// all other types
......
......@@ -43,6 +43,8 @@ public class EnergyADEModule extends ADEModule {
features.put("Food", Food.class);
features.put("OtherResource", OtherResource.class);
features.put("ConstructionMaterial", ConstructionMaterial.class);
features.put("AbstractADEFeature", AbstractADEFeature.class);
features.put("AbstractFeatureWithLifeSpan", AbstractFeatureWithLifeSpan.class);
featureProperties = new HashSet<>();
}
......
package org.citygml4j.ade.energy3.model.supportingClasses;
import java.net.URI;
public class ExternalReference {
// private URI informationSystem;
private URI informationSystem;
private String externalObject;
}
//package org.citygml4j.ade.energy3.model.supportingClasses;
//
//import org.citygml4j.builder.copy.CopyBuilder;
//import org.citygml4j.model.citygml.ade.binding.ADEModelObject;
//import org.citygml4j.model.citygml.core.ExternalReference;
//import org.citygml4j.model.gml.base.AssociationByRepOrRef;
//
//public class ExternalReferenceProperty extends AssociationByRepOrRef<ExternalReference> implements ADEModelObject {
//
// public ExternalReferenceProperty() {
// }
// public ExternalReferenceProperty(ExternalReference externalReference) {
// super(externalReference);
// }
//
// public ExternalReferenceProperty(String href) {
// super(href);
// }
//
// public ExternalReference getExternalReference() {
// return super.getObject();
// }
//
// public boolean isSetExternalReference() {
// return super.isSetObject();
// }
//
// public void setExternalReference(ExternalReference externalReference) {
// super.setObject(externalReference);
// }
//
// public void unsetExternalReference() {
// super.unsetObject();
// }
//
// @Override
// public Class<ExternalReference> getAssociableClass() {
// return ExternalReference.class;
// }
//
// @Override
// public Object copy(CopyBuilder copyBuilder) {
// return copyTo(new ExternalReferenceProperty(), copyBuilder);
// }
//
// @Override
// public Object copyTo(Object target, CopyBuilder copyBuilder) {
// ExternalReferenceProperty copy = (target == null) ? new ExternalReferenceProperty() : (ExternalReferenceProperty) target;
// return super.copyTo(copy, copyBuilder);
// }
//}
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