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"?>
<!--
~ ade-xjc - XML Schema binding compiler for CityGML ADEs
~ https://github.com/citygml4j/ade-xjc
~
~ ade-xjc is part of the citygml4j project
~
~ Copyright 2013-2019 Claus Nagel <claus.nagel@gmail.com>
~
~ 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.
-->
<jaxb:bindings version="2.1" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<jaxb:bindings schemaLocation="CityGML-SubsurfaceADE-0_9_0.xsd" node="/xs:schema">
<jaxb:bindings node="//xs:complexType[@name='AbstractTunnelType']">
<jaxb:bindings node=".//xs:element[@name='boundedBy']">
<jaxb:property name="boundedBySurface"/>
</jaxb:bindings>
</jaxb:bindings>
<jaxb:bindings node="//xs:complexType[@name='HollowSpaceType']">
<jaxb:bindings node=".//xs:element[@name='boundedBy']">
<jaxb:property name="boundedBySurface"/>
</jaxb:bindings>
</jaxb:bindings>
</jaxb:bindings>
<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">
<jaxb:bindings schemaLocation="Energy_ADE_3.0_beta8.xsd" node="/xs:schema">
<!-- 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.
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
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.
Questions:
When to use property and when to use factory method ?-->
<jaxb:bindings generateIsSetMethod="true" underscoreBinding="asCharInWord">
<!-- Binding for namespace prefix -->
<namespace:prefix name="nrg3"/>
<!-- Binding for RegularTimeSeries element -->
<jaxb:bindings node="xs:element[@name='RegularTimeSeries']">
<jaxb:factoryMethod name="RegularTimeSeriesProperty"/>
</jaxb:bindings>
<!-- Binding for refurbishmentMeasure element -->
<jaxb:bindings node="xs:element[@name='refurbishmentMeasure']">
<jaxb:factoryMethod name="RefurbishmentMeasureProperty"/>
</jaxb:bindings>
<!-- Binding for energyPerformanceCertificate element -->
<jaxb:bindings node="xs:element[@name='energyPerformanceCertificate']">
<jaxb:factoryMethod name="EnergyPerformanceCertificateProperty"/>
</jaxb:bindings>
<!-- Binding for utilityNetworkConnection element -->
<jaxb:bindings node="xs:element[@name='utilityNetworkConnection']">
<jaxb:factoryMethod name="UtilityNetworkConnectionProperty"/>
</jaxb:bindings>
<!-- Binding for weatherData element -->
<jaxb:bindings node="xs:element[@name='sensorData']">
<jaxb:factoryMethod name="SensorDataProperty"/>
</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>
#!/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
@rem ##########################################################################
@rem
@rem Windows start script for ade-xjc example
@rem Windows start script for converting the EnergyADE
@rem
@rem ##########################################################################
set OUTPUT="src-gen"
set PACKAGE="ade.sub.jaxb"
set PACKAGE="org.sig3d.citygml.energyADE3beta8"
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%
\ No newline at end of file
call ..\ade-xjc.bat %PLUGINS% -clean -output %OUTPUT% -package %PACKAGE% -binding %BINDING% %SCHEMA% > %LOGFILE% 2>&1
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