Commit 40fee98e authored by Rushikesh Padsala's avatar Rushikesh Padsala
Browse files

Energy ADE 3.0 beta 8 - 2025-12-11

parent 76b18d60
This diff is collapsed.
This diff is collapsed.
edit binding.xjb
edit run-sample.bat
edit your XSD file and rename all schema location to local schemas
run run-sample.bat (should output a log file and if it runs correctly your package folders)
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <jaxb:bindings version="2.1" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:namespace="http://jaxb2-commons.dev.java.net/namespace-prefix">
~ ade-xjc - XML Schema binding compiler for CityGML ADEs <jaxb:bindings schemaLocation="Energy_ADE_3.0_beta8.xsd" node="/xs:schema">
~ https://github.com/citygml4j/ade-xjc <!-- Developed by - Rushikesh Padsala (Rushi), Stuttgart University of Applied Sciences - HFt Stuttgart
~ generateIsSetMethod is helpful when in XML schemas, some elements or attributes might be optional.
~ ade-xjc is part of the citygml4j project The isSet method provides a way to check whether an optional element or attribute was actually present in the XML data.
~ underscoreBinding is used is used to control how underscores (_) in XML element and attribute names are mapped to Java method
~ Copyright 2013-2019 Claus Nagel <claus.nagel@gmail.com> and variable names during the JAXB code generation process. The underscoreBinding="asCharInWord" setting helps map these XML
~ names to Java names in a way that adheres to Java's naming conventions.
~ Licensed under the Apache License, Version 2.0 (the "License"); Questions:
~ you may not use this file except in compliance with the License. When to use property and when to use factory method ?-->
~ You may obtain a copy of the License at <jaxb:bindings generateIsSetMethod="true" underscoreBinding="asCharInWord">
~ <!-- Binding for namespace prefix -->
~ http://www.apache.org/licenses/LICENSE-2.0 <namespace:prefix name="nrg3"/>
~ <!-- Binding for RegularTimeSeries element -->
~ Unless required by applicable law or agreed to in writing, software <jaxb:bindings node="xs:element[@name='RegularTimeSeries']">
~ distributed under the License is distributed on an "AS IS" BASIS, <jaxb:factoryMethod name="RegularTimeSeriesProperty"/>
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. </jaxb:bindings>
~ See the License for the specific language governing permissions and <!-- Binding for refurbishmentMeasure element -->
~ limitations under the License. <jaxb:bindings node="xs:element[@name='refurbishmentMeasure']">
--> <jaxb:factoryMethod name="RefurbishmentMeasureProperty"/>
<jaxb:bindings version="2.1" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema"> </jaxb:bindings>
<!-- Binding for energyPerformanceCertificate element -->
<jaxb:bindings schemaLocation="CityGML-SubsurfaceADE-0_9_0.xsd" node="/xs:schema"> <jaxb:bindings node="xs:element[@name='energyPerformanceCertificate']">
<jaxb:bindings node="//xs:complexType[@name='AbstractTunnelType']"> <jaxb:factoryMethod name="EnergyPerformanceCertificateProperty"/>
<jaxb:bindings node=".//xs:element[@name='boundedBy']"> </jaxb:bindings>
<jaxb:property name="boundedBySurface"/> <!-- Binding for utilityNetworkConnection element -->
</jaxb:bindings> <jaxb:bindings node="xs:element[@name='utilityNetworkConnection']">
</jaxb:bindings> <jaxb:factoryMethod name="UtilityNetworkConnectionProperty"/>
<jaxb:bindings node="//xs:complexType[@name='HollowSpaceType']"> </jaxb:bindings>
<jaxb:bindings node=".//xs:element[@name='boundedBy']"> <!-- Binding for weatherData element -->
<jaxb:property name="boundedBySurface"/> <jaxb:bindings node="xs:element[@name='sensorData']">
</jaxb:bindings> <jaxb:factoryMethod name="SensorDataProperty"/>
</jaxb:bindings> </jaxb:bindings>
</jaxb:bindings> <!-- Binding for layeredConstruction element -->
<jaxb:bindings node="xs:element[@name='layeredConstruction']">
<jaxb:factoryMethod name="LayeredConstructionProperty"/>
</jaxb:bindings>
<!-- Binding for zone element -->
<jaxb:bindings node="xs:element[@name='zone']">
<jaxb:factoryMethod name="ZoneProperty"/>
</jaxb:bindings>
<!-- Binding for buildingUnit element -->
<jaxb:bindings node="xs:element[@name='buildingUnit']">
<jaxb:factoryMethod name="BuildingUnitProperty"/>
</jaxb:bindings>
<!-- Binding for Suitability element -->
<jaxb:bindings node="xs:element[@name='suitability']">
<jaxb:factoryMethod name="SuitabilityProperty"/>
</jaxb:bindings>
</jaxb:bindings>
</jaxb:bindings>
</jaxb:bindings> </jaxb:bindings>
#!/usr/bin/env sh
##############################################################################
##
## UN*X start script for ade-xjc example
##
##############################################################################
OUTPUT="src-gen"
PACKAGE="ade.sub.jaxb"
BINDING="binding.xjb"
SCHEMA="CityGML-SubsurfaceADE-0_9_0.xsd"
exec ../ade-xjc -clean -output $OUTPUT -package $PACKAGE -binding $BINDING $SCHEMA
\ No newline at end of file
@if "%DEBUG%" == "" @echo off @if "%DEBUG%" == "" @echo off
@rem ########################################################################## @rem ##########################################################################
@rem @rem
@rem Windows start script for ade-xjc example @rem Windows start script for converting the EnergyADE
@rem @rem
@rem ########################################################################## @rem ##########################################################################
set OUTPUT="src-gen" set OUTPUT="src-gen"
set PACKAGE="ade.sub.jaxb" set PACKAGE="org.sig3d.citygml.energyADE3beta8"
set BINDING="binding.xjb" set BINDING="binding.xjb"
set SCHEMA="CityGML-SubsurfaceADE-0_9_0.xsd" set SCHEMA="Energy_ADE_3.0_beta8.xsd"
set PLUGINS="-Xnamespace-prefix"
set LOGFILE="log_output.txt"
call ..\ade-xjc.bat -clean -output %OUTPUT% -package %PACKAGE% -binding %BINDING% %SCHEMA% call ..\ade-xjc.bat %PLUGINS% -clean -output %OUTPUT% -package %PACKAGE% -binding %BINDING% %SCHEMA% > %LOGFILE% 2>&1
\ No newline at end of file
pause
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