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
ADE Xjc
Commits
66aaff81
Commit
66aaff81
authored
Feb 06, 2019
by
Claus Nagel
Browse files
updated class headers
parent
2863d376
Changes
7
Hide whitespace changes
Inline
Side-by-side
sample/binding.xjb
View file @
66aaff81
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
<!--
*
ade-xjc - XML Schema binding compiler for CityGML ADEs
~
ade-xjc - XML Schema binding compiler for CityGML ADEs
*
https://github.com/citygml4j/ade-xjc
~
https://github.com/citygml4j/ade-xjc
*
~
*
ade-xjc is part of the citygml4j project
~
ade-xjc is part of the citygml4j project
*
~
*
Copyright 2013-201
7
Claus Nagel <claus.nagel@gmail.com>
~
Copyright 2013-201
9
Claus Nagel <claus.nagel@gmail.com>
*
~
*
Licensed under the Apache License, Version 2.0 (the "License");
~
Licensed under the Apache License, Version 2.0 (the "License");
*
you may not use this file except in compliance with the License.
~
you may not use this file except in compliance with the License.
*
You may obtain a copy of the License at
~
You may obtain a copy of the License at
*
~
*
http://www.apache.org/licenses/LICENSE-2.0
~
http://www.apache.org/licenses/LICENSE-2.0
*
~
*
Unless required by applicable law or agreed to in writing, software
~
Unless required by applicable law or agreed to in writing, software
*
distributed under the License is distributed on an "AS IS" BASIS,
~
distributed under the License is distributed on an "AS IS" BASIS,
*
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
See the License for the specific language governing permissions and
~
See the License for the specific language governing permissions and
*
limitations under the License.
~
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
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
schemaLocation=
"CityGML-SubsurfaceADE-0_9_0.xsd"
node=
"/xs:schema"
>
...
...
schemas/binding.xjb
View file @
66aaff81
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
<!--
*
ade-xjc - XML Schema binding compiler for CityGML ADEs
~
ade-xjc - XML Schema binding compiler for CityGML ADEs
*
https://github.com/citygml4j/ade-xjc
~
https://github.com/citygml4j/ade-xjc
*
~
*
ade-xjc is part of the citygml4j project
~
ade-xjc is part of the citygml4j project
*
~
*
Copyright 2013-201
7
Claus Nagel <claus.nagel@gmail.com>
~
Copyright 2013-201
9
Claus Nagel <claus.nagel@gmail.com>
*
~
*
Licensed under the Apache License, Version 2.0 (the "License");
~
Licensed under the Apache License, Version 2.0 (the "License");
*
you may not use this file except in compliance with the License.
~
you may not use this file except in compliance with the License.
*
You may obtain a copy of the License at
~
You may obtain a copy of the License at
*
~
*
http://www.apache.org/licenses/LICENSE-2.0
~
http://www.apache.org/licenses/LICENSE-2.0
*
~
*
Unless required by applicable law or agreed to in writing, software
~
Unless required by applicable law or agreed to in writing, software
*
distributed under the License is distributed on an "AS IS" BASIS,
~
distributed under the License is distributed on an "AS IS" BASIS,
*
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
See the License for the specific language governing permissions and
~
See the License for the specific language governing permissions and
*
limitations under the License.
~
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
version=
"2.1"
xmlns:jaxb=
"http://java.sun.com/xml/ns/jaxb"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
>
<!-- Specific settings for the citygml4j mapping file -->
<!-- Specific settings for the citygml4j mapping file -->
...
...
schemas/citygml4j.xsd
View file @
66aaff81
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
<!--
*
ade-xjc - XML Schema binding compiler for CityGML ADEs
~
ade-xjc - XML Schema binding compiler for CityGML ADEs
*
https://github.com/citygml4j/ade-xjc
~
https://github.com/citygml4j/ade-xjc
*
~
*
ade-xjc is part of the citygml4j project
~
ade-xjc is part of the citygml4j project
*
~
*
Copyright 2013-201
7
Claus Nagel <claus.nagel@gmail.com>
~
Copyright 2013-201
9
Claus Nagel <claus.nagel@gmail.com>
*
~
*
Licensed under the Apache License, Version 2.0 (the "License");
~
Licensed under the Apache License, Version 2.0 (the "License");
*
you may not use this file except in compliance with the License.
~
you may not use this file except in compliance with the License.
*
You may obtain a copy of the License at
~
You may obtain a copy of the License at
*
~
*
http://www.apache.org/licenses/LICENSE-2.0
~
http://www.apache.org/licenses/LICENSE-2.0
*
~
*
Unless required by applicable law or agreed to in writing, software
~
Unless required by applicable law or agreed to in writing, software
*
distributed under the License is distributed on an "AS IS" BASIS,
~
distributed under the License is distributed on an "AS IS" BASIS,
*
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
See the License for the specific language governing permissions and
~
See the License for the specific language governing permissions and
*
limitations under the License.
~
limitations under the License.
-->
-->
<xs:schema
xmlns=
"http://www.citygml.org/citygml4j/profile"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
targetNamespace=
"http://www.citygml.org/citygml4j/profile"
elementFormDefault=
"qualified"
<xs:schema
xmlns=
"http://www.citygml.org/citygml4j/profile"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
targetNamespace=
"http://www.citygml.org/citygml4j/profile"
elementFormDefault=
"qualified"
attributeFormDefault=
"unqualified"
>
attributeFormDefault=
"unqualified"
>
<xs:import
namespace=
"http://www.opengis.net/citygml/appearance/1.0"
schemaLocation=
"citygml/1.0.0/appearance.xsd"
/>
<xs:import
namespace=
"http://www.opengis.net/citygml/appearance/1.0"
schemaLocation=
"citygml/1.0.0/appearance.xsd"
/>
...
...
src/main/java/org/citygml4j/ade_xjc/ADESchemaCompiler.java
View file @
66aaff81
/*
/*
* ade-xjc - XML Schema binding compiler for CityGML ADEs
* ade-xjc - XML Schema binding compiler for CityGML ADEs
* https://github.com/citygml4j/ade-xjc
* https://github.com/citygml4j/ade-xjc
*
*
* ade-xjc is part of the citygml4j project
* ade-xjc is part of the citygml4j project
*
*
* Copyright 2013-201
7
Claus Nagel <claus.nagel@gmail.com>
* Copyright 2013-201
9
Claus Nagel <claus.nagel@gmail.com>
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...
@@ -285,7 +285,7 @@ public class ADESchemaCompiler {
...
@@ -285,7 +285,7 @@ public class ADESchemaCompiler {
BigInteger
md5
=
new
BigInteger
(
"0"
);
BigInteger
md5
=
new
BigInteger
(
"0"
);
md5
=
Util
.
dir2md5
(
schemaDir
,
md5
);
md5
=
Util
.
dir2md5
(
schemaDir
,
md5
);
if
(!
md5
.
toString
(
16
).
equals
(
"
e63ab0fde528fbafc380af37b792e914
"
))
if
(!
md5
.
toString
(
16
).
equals
(
"
ad78f553a5a8082a44ceca8f66b3dc3b
"
))
throw
new
Exception
(
"Contents of subfolder 'schemas' have been altered. Please restore its original state."
);
throw
new
Exception
(
"Contents of subfolder 'schemas' have been altered. Please restore its original state."
);
}
}
...
...
src/main/java/org/citygml4j/ade_xjc/FileDeleter.java
View file @
66aaff81
/*
/*
* ade-xjc - XML Schema binding compiler for CityGML ADEs
* ade-xjc - XML Schema binding compiler for CityGML ADEs
* https://github.com/citygml4j/ade-xjc
* https://github.com/citygml4j/ade-xjc
*
*
* ade-xjc is part of the citygml4j project
* ade-xjc is part of the citygml4j project
*
*
* Copyright 2013-201
7
Claus Nagel <claus.nagel@gmail.com>
* Copyright 2013-201
9
Claus Nagel <claus.nagel@gmail.com>
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...
...
src/main/java/org/citygml4j/ade_xjc/Util.java
View file @
66aaff81
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*
*
* ade-xjc is part of the citygml4j project
* ade-xjc is part of the citygml4j project
*
*
* Copyright 2013-201
7
Claus Nagel <claus.nagel@gmail.com>
* Copyright 2013-201
9
Claus Nagel <claus.nagel@gmail.com>
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
src/main/java/org/citygml4j/ade_xjc/XJCErrorListener.java
View file @
66aaff81
/*
/*
* ade-xjc - XML Schema binding compiler for CityGML ADEs
* ade-xjc - XML Schema binding compiler for CityGML ADEs
* https://github.com/citygml4j/ade-xjc
* https://github.com/citygml4j/ade-xjc
*
*
* ade-xjc is part of the citygml4j project
* ade-xjc is part of the citygml4j project
*
*
* Copyright 2013-201
7
Claus Nagel <claus.nagel@gmail.com>
* Copyright 2013-201
9
Claus Nagel <claus.nagel@gmail.com>
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...
...
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