Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Energy ADE
Energy ADE 3 citygml4j
Commits
7f9fdc25
Commit
7f9fdc25
authored
Jan 14, 2026
by
PrabithaPrabhakaran
Browse files
Add importer exporter for resource module
parent
63190206
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/citygml4j/ade/energy3/bind/EnergyADEUnmarshaller.java
View file @
7f9fdc25
package
org.citygml4j.ade.energy3.bind
;
package
org.citygml4j.ade.energy3.bind
;
import
lombok.SneakyThrows
;
import
lombok.SneakyThrows
;
import
net.opengis.citygml._1.ExternalReferenceType
;
import
net.opengis.gml.*
;
import
net.opengis.gml.*
;
import
org.citygml4j.ade.energy3.model.core.*
;
import
org.citygml4j.ade.energy3.model.core.*
;
import
org.citygml4j.ade.energy3.model.supportingClasses.*
;
import
org.citygml4j.ade.energy3.model.supportingClasses.*
;
import
org.citygml4j.builder.jaxb.unmarshal.citygml.ade.ADEUnmarshallerHelper
;
import
org.citygml4j.builder.jaxb.unmarshal.citygml.ade.ADEUnmarshallerHelper
;
import
org.citygml4j.model.citygml.ade.binding.ADEModelObject
;
import
org.citygml4j.model.citygml.ade.binding.ADEModelObject
;
import
org.citygml4j.model.citygml.ade.binding.ADEUnmarshaller
;
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.common.base.ModelObject
;
import
org.citygml4j.model.gml.xlink.XLinkActuate
;
import
org.citygml4j.model.gml.xlink.XLinkActuate
;
import
org.citygml4j.model.gml.xlink.XLinkShow
;
import
org.citygml4j.model.gml.xlink.XLinkShow
;
...
@@ -84,6 +86,8 @@ public class EnergyADEUnmarshaller implements ADEUnmarshaller {
...
@@ -84,6 +86,8 @@ public class EnergyADEUnmarshaller implements ADEUnmarshaller {
.
with
(
AbstractDevicePropertyType
.
class
,
this
::
unmarshalAbstractDeviceProperty
)
.
with
(
AbstractDevicePropertyType
.
class
,
this
::
unmarshalAbstractDeviceProperty
)
.
with
(
WeatherDataPropertyType
.
class
,
this
::
unmarshalWeatherDataProperty
)
.
with
(
WeatherDataPropertyType
.
class
,
this
::
unmarshalWeatherDataProperty
)
.
with
(
WeatherDataType
.
class
,
this
::
unmarshalWeatherData
)
.
with
(
WeatherDataType
.
class
,
this
::
unmarshalWeatherData
)
.
with
(
AbstractFeatureWithLifeSpanPropertyType
.
class
,
this
::
AbstractFeatureWithLifeSpanProperty
)
.
with
(
AbstractADEFeaturePropertyType
.
class
,
this
::
unmarshalAbstractADEFeatureProperty
)
.
with
(
JAXBElement
.
class
,
this
::
unmarshal
);
.
with
(
JAXBElement
.
class
,
this
::
unmarshal
);
}
}
}
finally
{
}
finally
{
...
@@ -131,6 +135,8 @@ public class EnergyADEUnmarshaller implements ADEUnmarshaller {
...
@@ -131,6 +135,8 @@ public class EnergyADEUnmarshaller implements ADEUnmarshaller {
return
new
ReferencePointProperty
(
helper
.
getGMLUnmarshaller
().
unmarshalPointProperty
((
PointPropertyType
)
value
));
return
new
ReferencePointProperty
(
helper
.
getGMLUnmarshaller
().
unmarshalPointProperty
((
PointPropertyType
)
value
));
case
"suitability"
:
case
"suitability"
:
return
new
SuitabilityProperty
((
SuitabilityPropertyType
)
value
);
return
new
SuitabilityProperty
((
SuitabilityPropertyType
)
value
);
// case "externalReference":
// return new ExternalReferenceProperty((ExternalReferenceProperty)value);
}
}
// all other types
// all other types
...
...
src/main/java/org/citygml4j/ade/energy3/model/module/EnergyADEModule.java
View file @
7f9fdc25
...
@@ -43,6 +43,8 @@ public class EnergyADEModule extends ADEModule {
...
@@ -43,6 +43,8 @@ public class EnergyADEModule extends ADEModule {
features
.
put
(
"Food"
,
Food
.
class
);
features
.
put
(
"Food"
,
Food
.
class
);
features
.
put
(
"OtherResource"
,
OtherResource
.
class
);
features
.
put
(
"OtherResource"
,
OtherResource
.
class
);
features
.
put
(
"ConstructionMaterial"
,
ConstructionMaterial
.
class
);
features
.
put
(
"ConstructionMaterial"
,
ConstructionMaterial
.
class
);
features
.
put
(
"AbstractADEFeature"
,
AbstractADEFeature
.
class
);
features
.
put
(
"AbstractFeatureWithLifeSpan"
,
AbstractFeatureWithLifeSpan
.
class
);
featureProperties
=
new
HashSet
<>();
featureProperties
=
new
HashSet
<>();
}
}
...
...
src/main/java/org/citygml4j/ade/energy3/model/supportingClasses/ExternalReference.java
0 → 100644
View file @
7f9fdc25
package
org.citygml4j.ade.energy3.model.supportingClasses
;
import
java.net.URI
;
public
class
ExternalReference
{
// private URI informationSystem;
private
URI
informationSystem
;
private
String
externalObject
;
}
src/main/java/org/citygml4j/ade/energy3/model/supportingClasses/ExternalReferenceProperty.java
0 → 100644
View file @
7f9fdc25
//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);
// }
//}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment