From 0c92a7260142b65f4be235644df4948d50cfb456 Mon Sep 17 00:00:00 2001 From: Johannes Date: Fri, 10 Nov 2017 10:57:25 +0100 Subject: [PATCH] First version --- .gitignore | 7 + LICENSE-2.0.txt | 202 +++++ README.md | 113 +++ pom.xml | 59 ++ resources/dcr.xsd | 31 + resources/outputTemplate.xml | 57 ++ resources/outputTemplate.xsd | 180 +++++ resources/xml.xsd | 5 + .../arendt/input/generated/BarcodeType.java | 65 ++ .../arendt/input/generated/BlockType.java | 716 +++++++++++++++++ .../arendt/input/generated/CaptionType.java | 74 ++ .../input/generated/CharParamsType.java | 646 +++++++++++++++ .../generated/CharRecognitionVariant.java | 122 +++ .../arendt/input/generated/Document.java | 745 ++++++++++++++++++ .../arendt/input/generated/FontStyleType.java | 422 ++++++++++ .../input/generated/FormattingType.java | 609 ++++++++++++++ .../arendt/input/generated/LineType.java | 211 +++++ .../arendt/input/generated/ObjectFactory.java | 397 ++++++++++ .../input/generated/PageElementType.java | 176 +++++ .../input/generated/PageSectionType.java | 74 ++ .../input/generated/PageStreamType.java | 102 +++ .../input/generated/ParagraphAlignment.java | 70 ++ .../input/generated/ParagraphStyleType.java | 509 ++++++++++++ .../arendt/input/generated/ParagraphType.java | 486 ++++++++++++ .../arendt/input/generated/PictureType.java | 102 +++ .../arendt/input/generated/Point.java | 93 +++ .../arendt/input/generated/SectionType.java | 74 ++ .../input/generated/SeparatorBlockType.java | 151 ++++ .../input/generated/TableCellBorderType.java | 64 ++ .../arendt/input/generated/TableRowType.java | 473 +++++++++++ .../arendt/input/generated/TableType.java | 355 +++++++++ .../input/generated/TextStreamType.java | 378 +++++++++ .../arendt/input/generated/TextType.java | 236 ++++++ .../generated/WordRecognitionVariant.java | 311 ++++++++ .../arendt/input/generated/package-info.java | 9 + .../sub/goettingen/arendt/ocrmapping/Cli.java | 232 ++++++ .../arendt/ocrmapping/OutputXML.java | 170 ++++ .../goettingen/arendt/ocrmapping/ReadXML.java | 297 +++++++ .../arendt/ocrmapping/package-info.java | 24 + .../arendt/output/generated/Ab.java | 120 +++ .../arendt/output/generated/Body.java | 87 ++ .../arendt/output/generated/Creation.java | 71 ++ .../arendt/output/generated/Date.java | 39 + .../arendt/output/generated/EditionStmt.java | 71 ++ .../output/generated/EditorialDecl.java | 71 ++ .../arendt/output/generated/EncodingDesc.java | 127 +++ .../arendt/output/generated/Extent.java | 39 + .../arendt/output/generated/FileDesc.java | 184 +++++ .../arendt/output/generated/Foreign.java | 101 +++ .../arendt/output/generated/Hi.java | 114 +++ .../arendt/output/generated/LangUsage.java | 78 ++ .../arendt/output/generated/Language.java | 101 +++ .../output/generated/ObjectFactory.java | 257 ++++++ .../goettingen/arendt/output/generated/P.java | 90 +++ .../arendt/output/generated/Pb.java | 72 ++ .../arendt/output/generated/ProfileDesc.java | 99 +++ .../arendt/output/generated/ProjectDesc.java | 71 ++ .../output/generated/PublicationStmt.java | 71 ++ .../arendt/output/generated/RefsDecl.java | 71 ++ .../arendt/output/generated/SourceDesc.java | 71 ++ .../arendt/output/generated/TEI.java | 132 ++++ .../arendt/output/generated/TeiHeader.java | 127 +++ .../arendt/output/generated/Text.java | 104 +++ .../arendt/output/generated/TitleStmt.java | 71 ++ .../arendt/output/generated/Unclear.java | 130 +++ .../arendt/output/generated/package-info.java | 9 + 66 files changed, 11625 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE-2.0.txt create mode 100644 README.md create mode 100644 pom.xml create mode 100644 resources/dcr.xsd create mode 100644 resources/outputTemplate.xml create mode 100644 resources/outputTemplate.xsd create mode 100644 resources/xml.xsd create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/BarcodeType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/BlockType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/CaptionType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/CharParamsType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/CharRecognitionVariant.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/Document.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/FontStyleType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/FormattingType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/LineType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/ObjectFactory.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/PageElementType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/PageSectionType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/PageStreamType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphAlignment.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphStyleType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/PictureType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/Point.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/SectionType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/SeparatorBlockType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/TableCellBorderType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/TableRowType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/TableType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/TextStreamType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/TextType.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/WordRecognitionVariant.java create mode 100644 src/main/java/de/sub/goettingen/arendt/input/generated/package-info.java create mode 100644 src/main/java/de/sub/goettingen/arendt/ocrmapping/Cli.java create mode 100644 src/main/java/de/sub/goettingen/arendt/ocrmapping/OutputXML.java create mode 100644 src/main/java/de/sub/goettingen/arendt/ocrmapping/ReadXML.java create mode 100644 src/main/java/de/sub/goettingen/arendt/ocrmapping/package-info.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/Ab.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/Body.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/Creation.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/Date.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/EditionStmt.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/EditorialDecl.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/EncodingDesc.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/Extent.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/FileDesc.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/Foreign.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/Hi.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/LangUsage.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/Language.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/ObjectFactory.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/P.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/Pb.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/ProfileDesc.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/ProjectDesc.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/PublicationStmt.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/RefsDecl.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/SourceDesc.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/TEI.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/TeiHeader.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/Text.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/TitleStmt.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/Unclear.java create mode 100644 src/main/java/de/sub/goettingen/arendt/output/generated/package-info.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6391e5e --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +**/.DS_Store +/target +/testdata +/bin +.classpath +.project +/.settings \ No newline at end of file diff --git a/LICENSE-2.0.txt b/LICENSE-2.0.txt new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/LICENSE-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + 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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..48842ac --- /dev/null +++ b/README.md @@ -0,0 +1,113 @@ +# OCR2TEI + +This tool converts Finereader extended XML documents into a basic TEI file for further editing. It maps some basic format declartion and uncertain characters into the TEI structure. + +# Usage + +Download the release from the release tab, open the command line and execute +`java -jar ocr2tei.jar` with the following options + +``` +Usage: Finereader XML to basic TEI converter [command] [command options] + Commands: + file Process a single XML File + Usage: file [options] + Options: + -h, --help + print this message + * -i, --input + The source XML OCR File from ABBYY + -lb, --linebreak + Add line breaks to p elements + Default: true + * -o, --output + The path and filename to the generated TEI output file + + dir Process recursively a whole directory + Usage: dir [options] + Options: + * -d, --dir + The start path of the directory for processing the files + -h, --help + print this message + -lb, --linebreak + Add line breaks to p elements + Default: true + -p, --pattern + The regex pattern for matching the OCR xml files + Default: ocr_(.*).xml + -s, --specific + Do very project specific directory scanning (outside of this + project do NOT set this option to true) + Default: false +``` + +Example for processing a single file +`java -jar ocr2tei.jar file -i input.xml -o output.xml` + +Example for processing a whole directory +`java -jar ocr2tei.jar dir -i -d /path/to/directory -p "(.*).xml"` + +Note that the pattern uses a [Java regular expression](https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html), a simple *.xml will NOT work. + +The linebreak element just controls the output of the XML p blocks. Semantically they are the same. + +**No line break** + +``` +

This is the first line. This is the second line

+``` + +**no line breaks** + +``` +

This is the first line. +This is the second line

+``` + +## Sample input files + +The vendor provides a zip file with some [samples](https://abbyy.technology/_media/en:features:ocr:abbyy_xml_sample_collection.zip). Extract it and use any of the *DemoImage1_ABBYY_Char** files. The Basic file is not supported (see next headline). If you want to process the directory, use the option -p `"DemoImage1_ABBYY(.*).xml"` as pattern. + +# Supported formats + +This tool works only if the ocr xml has been generated with the character by character generation, so not with the basic format. + + +Currently only text elements get processed, image and table elements are ignored. The following text attributes are transfered to TEI: + +* italic -> italic> +* bold -> bold> +* underline -> underline> +* strikethrough -> strikethrough> +* super super +* unclear characters -> l + + +# Building + +Just call `mvn` to build it. + +# Extending and Structure + +This tool uses JAXB to read and write the XML files. A newer input XSD can be added by using + +`xjc -d ocr2tei/src/main/java -p de.sub.goettingen.arendt.input.generated FineReader10-schema-v1.xml` + +The output does not contain the whole TEI schema. Instead a simple outputTemplate.xml has been created (see resources folder), an XSD has been generated from the XML and the JAXB classes have been created with + +`xjc -d ocr2tei/src/main/java -p de.sub.goettingen.arendt.output.generated outputTemplate.xsd` + +Afterwards you have to adapt the classes under de.sub.goettingen.arendt.ocrmapping for the changed structure. + +# Further information + +The documentation of the Finereader XML File can be found [here](https://abbyy.technology/en:features:ocr:xml), a examplanation of the schema is located [here](https://ocrsdk.com/documentation/specifications/xml-scheme-recognized-document/). + +# License + +Apache 2.0. + +# Credits + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..3074fc5 --- /dev/null +++ b/pom.xml @@ -0,0 +1,59 @@ + + 4.0.0 + de.sub.goettingen.arendt + ocr2tei + 1.0-SNAPSHOT + OCR2XML + + + com.beust + jcommander + 1.72 + + + This is a CLI utility which allows to read the vendor specific Finereader XML files created with the Finereader cloud service or SDK and convert them into a basic TEI output document. + + SUB Göttingen + http://www.sub.uni-goettingen.de/ + + + package + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + de.sub.goettingen.arendt.ocrmapping.Cli + + + + + + maven-assembly-plugin + + + jar-with-dependencies + + + + de.sub.goettingen.arendt.ocrmapping.Cli + + + + + + make-ocr2tei-with-dependencies + package + + single + + + + + + + \ No newline at end of file diff --git a/resources/dcr.xsd b/resources/dcr.xsd new file mode 100644 index 0000000..d715f55 --- /dev/null +++ b/resources/dcr.xsd @@ -0,0 +1,31 @@ + + + + + + + contains a PID (persistent identifier) that aligns the given element with the appropriate Data Category (or categories) in ISOcat. + + + + + + + + + + + + + contains a PID (persistent identifier) that aligns the content of the given element or the value of the given attribute with the appropriate simple Data Category (or categories) in ISOcat. + + + + + + + + + + + diff --git a/resources/outputTemplate.xml b/resources/outputTemplate.xml new file mode 100644 index 0000000..075e492 --- /dev/null +++ b/resources/outputTemplate.xml @@ -0,0 +1,57 @@ + + + + + + Automatic OCR transformation, please change title + + +

+ + 0 + +

+ + +

+ + + + +

+ + +

+ + +

+ + + + + 2017-11-09 08:31:13 + + + English + German + French + Latin + Greek (ancient), original letters + Greek (ancient), written in Latin script + + + + + + + +

A paragraph with unclear recognition character. +I am italic>

+

and I am bold> underline> strikethrough> +super> +

+ + +
+ + diff --git a/resources/outputTemplate.xsd b/resources/outputTemplate.xsd new file mode 100644 index 0000000..8e29484 --- /dev/null +++ b/resources/outputTemplate.xsd @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/xml.xsd b/resources/xml.xsd new file mode 100644 index 0000000..0cfba89 --- /dev/null +++ b/resources/xml.xsd @@ -0,0 +1,5 @@ + + + + + diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/BarcodeType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/BarcodeType.java new file mode 100644 index 0000000..c6689e7 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/BarcodeType.java @@ -0,0 +1,65 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für BarcodeType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="BarcodeType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="BarcodeValue" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BarcodeType") +public class BarcodeType { + + @XmlAttribute(name = "BarcodeValue", required = true) + protected String barcodeValue; + + /** + * Ruft den Wert der barcodeValue-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBarcodeValue() { + return barcodeValue; + } + + /** + * Legt den Wert der barcodeValue-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBarcodeValue(String value) { + this.barcodeValue = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/BlockType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/BlockType.java new file mode 100644 index 0000000..4e64a3c --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/BlockType.java @@ -0,0 +1,716 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für BlockType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="BlockType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="region" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="rect" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="l" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                           <attribute name="t" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                           <attribute name="r" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                           <attribute name="b" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="text" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TextType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="row" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TableRowType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="separatorsBox" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="separator" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}SeparatorBlockType" maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="separator" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}SeparatorBlockType" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="blockType" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Text"/>
+ *             <enumeration value="Table"/>
+ *             <enumeration value="Picture"/>
+ *             <enumeration value="Barcode"/>
+ *             <enumeration value="Separator"/>
+ *             <enumeration value="SeparatorsBox"/>
+ *             <enumeration value="Checkmark"/>
+ *             <enumeration value="GroupCheckmark"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="pageElemId" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="blockName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="isHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="l" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="t" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="r" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BlockType", propOrder = { + "region", + "text", + "row", + "separatorsBox", + "separator" +}) +public class BlockType { + + protected BlockType.Region region; + protected List text; + protected List row; + protected BlockType.SeparatorsBox separatorsBox; + protected SeparatorBlockType separator; + @XmlAttribute(name = "blockType", required = true) + protected String blockType; + @XmlAttribute(name = "pageElemId") + protected String pageElemId; + @XmlAttribute(name = "blockName") + protected String blockName; + @XmlAttribute(name = "isHidden") + protected Boolean isHidden; + @XmlAttribute(name = "l") + protected BigInteger l; + @XmlAttribute(name = "t") + protected BigInteger t; + @XmlAttribute(name = "r") + protected BigInteger r; + @XmlAttribute(name = "b") + protected BigInteger b; + + /** + * Ruft den Wert der region-Eigenschaft ab. + * + * @return + * possible object is + * {@link BlockType.Region } + * + */ + public BlockType.Region getRegion() { + return region; + } + + /** + * Legt den Wert der region-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BlockType.Region } + * + */ + public void setRegion(BlockType.Region value) { + this.region = value; + } + + /** + * Gets the value of the text property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the text property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getText().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TextType } + * + * + */ + public List getText() { + if (text == null) { + text = new ArrayList(); + } + return this.text; + } + + /** + * Gets the value of the row property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the row property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRow().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TableRowType } + * + * + */ + public List getRow() { + if (row == null) { + row = new ArrayList(); + } + return this.row; + } + + /** + * Ruft den Wert der separatorsBox-Eigenschaft ab. + * + * @return + * possible object is + * {@link BlockType.SeparatorsBox } + * + */ + public BlockType.SeparatorsBox getSeparatorsBox() { + return separatorsBox; + } + + /** + * Legt den Wert der separatorsBox-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BlockType.SeparatorsBox } + * + */ + public void setSeparatorsBox(BlockType.SeparatorsBox value) { + this.separatorsBox = value; + } + + /** + * Ruft den Wert der separator-Eigenschaft ab. + * + * @return + * possible object is + * {@link SeparatorBlockType } + * + */ + public SeparatorBlockType getSeparator() { + return separator; + } + + /** + * Legt den Wert der separator-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link SeparatorBlockType } + * + */ + public void setSeparator(SeparatorBlockType value) { + this.separator = value; + } + + /** + * Ruft den Wert der blockType-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBlockType() { + return blockType; + } + + /** + * Legt den Wert der blockType-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBlockType(String value) { + this.blockType = value; + } + + /** + * Ruft den Wert der pageElemId-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPageElemId() { + return pageElemId; + } + + /** + * Legt den Wert der pageElemId-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPageElemId(String value) { + this.pageElemId = value; + } + + /** + * Ruft den Wert der blockName-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBlockName() { + return blockName; + } + + /** + * Legt den Wert der blockName-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBlockName(String value) { + this.blockName = value; + } + + /** + * Ruft den Wert der isHidden-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isIsHidden() { + if (isHidden == null) { + return false; + } else { + return isHidden; + } + } + + /** + * Legt den Wert der isHidden-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsHidden(Boolean value) { + this.isHidden = value; + } + + /** + * Ruft den Wert der l-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getL() { + return l; + } + + /** + * Legt den Wert der l-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setL(BigInteger value) { + this.l = value; + } + + /** + * Ruft den Wert der t-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getT() { + return t; + } + + /** + * Legt den Wert der t-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setT(BigInteger value) { + this.t = value; + } + + /** + * Ruft den Wert der r-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getR() { + return r; + } + + /** + * Legt den Wert der r-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setR(BigInteger value) { + this.r = value; + } + + /** + * Ruft den Wert der b-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getB() { + return b; + } + + /** + * Legt den Wert der b-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setB(BigInteger value) { + this.b = value; + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="rect" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="l" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *                 <attribute name="t" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *                 <attribute name="r" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *                 <attribute name="b" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "rect" + }) + public static class Region { + + @XmlElement(required = true) + protected List rect; + + /** + * Gets the value of the rect property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the rect property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getRect().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link BlockType.Region.Rect } + * + * + */ + public List getRect() { + if (rect == null) { + rect = new ArrayList(); + } + return this.rect; + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <attribute name="l" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+         *       <attribute name="t" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+         *       <attribute name="r" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+         *       <attribute name="b" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Rect { + + @XmlAttribute(name = "l", required = true) + protected BigInteger l; + @XmlAttribute(name = "t", required = true) + protected BigInteger t; + @XmlAttribute(name = "r", required = true) + protected BigInteger r; + @XmlAttribute(name = "b", required = true) + protected BigInteger b; + + /** + * Ruft den Wert der l-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getL() { + return l; + } + + /** + * Legt den Wert der l-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setL(BigInteger value) { + this.l = value; + } + + /** + * Ruft den Wert der t-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getT() { + return t; + } + + /** + * Legt den Wert der t-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setT(BigInteger value) { + this.t = value; + } + + /** + * Ruft den Wert der r-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getR() { + return r; + } + + /** + * Legt den Wert der r-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setR(BigInteger value) { + this.r = value; + } + + /** + * Ruft den Wert der b-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getB() { + return b; + } + + /** + * Legt den Wert der b-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setB(BigInteger value) { + this.b = value; + } + + } + + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="separator" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}SeparatorBlockType" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "separator" + }) + public static class SeparatorsBox { + + protected List separator; + + /** + * Gets the value of the separator property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the separator property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getSeparator().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link SeparatorBlockType } + * + * + */ + public List getSeparator() { + if (separator == null) { + separator = new ArrayList(); + } + return this.separator; + } + + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/CaptionType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/CaptionType.java new file mode 100644 index 0000000..88e24be --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/CaptionType.java @@ -0,0 +1,74 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für CaptionType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="CaptionType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pageElement" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}PageElementType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CaptionType", propOrder = { + "pageElement" +}) +public class CaptionType { + + protected List pageElement; + + /** + * Gets the value of the pageElement property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pageElement property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPageElement().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PageElementType } + * + * + */ + public List getPageElement() { + if (pageElement == null) { + pageElement = new ArrayList(); + } + return this.pageElement; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/CharParamsType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/CharParamsType.java new file mode 100644 index 0000000..2f2cb1f --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/CharParamsType.java @@ -0,0 +1,646 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.io.Serializable; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für CharParamsType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="CharParamsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="charRecVariants" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="charRecVariant" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}CharRecognitionVariant" maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="l" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="t" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="r" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="b" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="suspicious" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="proofed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="wordStart" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="wordFromDictionary" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="wordNormal" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="wordNumeric" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="wordIdentifier" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="charConfidence" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="serifProbability" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="wordPenalty" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="meanStrokeWidth" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="characterHeight" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="hasUncertainHeight" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="baseLine" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CharParamsType", propOrder = { + "content" +}) +public class CharParamsType { + + @XmlElementRef(name = "charRecVariants", namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", type = JAXBElement.class, required = false) + @XmlMixed + protected List content; + @XmlAttribute(name = "l", required = true) + protected BigInteger l; + @XmlAttribute(name = "t", required = true) + protected BigInteger t; + @XmlAttribute(name = "r", required = true) + protected BigInteger r; + @XmlAttribute(name = "b", required = true) + protected BigInteger b; + @XmlAttribute(name = "suspicious") + protected Boolean suspicious; + @XmlAttribute(name = "proofed") + protected Boolean proofed; + @XmlAttribute(name = "wordStart") + protected Boolean wordStart; + @XmlAttribute(name = "wordFromDictionary") + protected Boolean wordFromDictionary; + @XmlAttribute(name = "wordNormal") + protected Boolean wordNormal; + @XmlAttribute(name = "wordNumeric") + protected Boolean wordNumeric; + @XmlAttribute(name = "wordIdentifier") + protected Boolean wordIdentifier; + @XmlAttribute(name = "charConfidence") + protected BigInteger charConfidence; + @XmlAttribute(name = "serifProbability") + protected BigInteger serifProbability; + @XmlAttribute(name = "wordPenalty") + protected BigInteger wordPenalty; + @XmlAttribute(name = "meanStrokeWidth") + protected BigInteger meanStrokeWidth; + @XmlAttribute(name = "characterHeight") + protected BigInteger characterHeight; + @XmlAttribute(name = "hasUncertainHeight") + protected Boolean hasUncertainHeight; + @XmlAttribute(name = "baseLine") + protected BigInteger baseLine; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link CharParamsType.CharRecVariants }{@code >} + * {@link String } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + /** + * Ruft den Wert der l-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getL() { + return l; + } + + /** + * Legt den Wert der l-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setL(BigInteger value) { + this.l = value; + } + + /** + * Ruft den Wert der t-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getT() { + return t; + } + + /** + * Legt den Wert der t-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setT(BigInteger value) { + this.t = value; + } + + /** + * Ruft den Wert der r-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getR() { + return r; + } + + /** + * Legt den Wert der r-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setR(BigInteger value) { + this.r = value; + } + + /** + * Ruft den Wert der b-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getB() { + return b; + } + + /** + * Legt den Wert der b-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setB(BigInteger value) { + this.b = value; + } + + /** + * Ruft den Wert der suspicious-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSuspicious() { + if (suspicious == null) { + return false; + } else { + return suspicious; + } + } + + /** + * Legt den Wert der suspicious-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSuspicious(Boolean value) { + this.suspicious = value; + } + + /** + * Ruft den Wert der proofed-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isProofed() { + if (proofed == null) { + return false; + } else { + return proofed; + } + } + + /** + * Legt den Wert der proofed-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setProofed(Boolean value) { + this.proofed = value; + } + + /** + * Ruft den Wert der wordStart-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isWordStart() { + return wordStart; + } + + /** + * Legt den Wert der wordStart-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWordStart(Boolean value) { + this.wordStart = value; + } + + /** + * Ruft den Wert der wordFromDictionary-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isWordFromDictionary() { + return wordFromDictionary; + } + + /** + * Legt den Wert der wordFromDictionary-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWordFromDictionary(Boolean value) { + this.wordFromDictionary = value; + } + + /** + * Ruft den Wert der wordNormal-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isWordNormal() { + return wordNormal; + } + + /** + * Legt den Wert der wordNormal-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWordNormal(Boolean value) { + this.wordNormal = value; + } + + /** + * Ruft den Wert der wordNumeric-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isWordNumeric() { + return wordNumeric; + } + + /** + * Legt den Wert der wordNumeric-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWordNumeric(Boolean value) { + this.wordNumeric = value; + } + + /** + * Ruft den Wert der wordIdentifier-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isWordIdentifier() { + return wordIdentifier; + } + + /** + * Legt den Wert der wordIdentifier-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWordIdentifier(Boolean value) { + this.wordIdentifier = value; + } + + /** + * Ruft den Wert der charConfidence-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getCharConfidence() { + return charConfidence; + } + + /** + * Legt den Wert der charConfidence-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setCharConfidence(BigInteger value) { + this.charConfidence = value; + } + + /** + * Ruft den Wert der serifProbability-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSerifProbability() { + return serifProbability; + } + + /** + * Legt den Wert der serifProbability-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSerifProbability(BigInteger value) { + this.serifProbability = value; + } + + /** + * Ruft den Wert der wordPenalty-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getWordPenalty() { + return wordPenalty; + } + + /** + * Legt den Wert der wordPenalty-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setWordPenalty(BigInteger value) { + this.wordPenalty = value; + } + + /** + * Ruft den Wert der meanStrokeWidth-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMeanStrokeWidth() { + return meanStrokeWidth; + } + + /** + * Legt den Wert der meanStrokeWidth-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMeanStrokeWidth(BigInteger value) { + this.meanStrokeWidth = value; + } + + /** + * Ruft den Wert der characterHeight-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getCharacterHeight() { + return characterHeight; + } + + /** + * Legt den Wert der characterHeight-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setCharacterHeight(BigInteger value) { + this.characterHeight = value; + } + + /** + * Ruft den Wert der hasUncertainHeight-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isHasUncertainHeight() { + return hasUncertainHeight; + } + + /** + * Legt den Wert der hasUncertainHeight-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHasUncertainHeight(Boolean value) { + this.hasUncertainHeight = value; + } + + /** + * Ruft den Wert der baseLine-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getBaseLine() { + return baseLine; + } + + /** + * Legt den Wert der baseLine-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setBaseLine(BigInteger value) { + this.baseLine = value; + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="charRecVariant" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}CharRecognitionVariant" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "charRecVariant" + }) + public static class CharRecVariants { + + protected List charRecVariant; + + /** + * Gets the value of the charRecVariant property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the charRecVariant property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getCharRecVariant().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CharRecognitionVariant } + * + * + */ + public List getCharRecVariant() { + if (charRecVariant == null) { + charRecVariant = new ArrayList(); + } + return this.charRecVariant; + } + + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/CharRecognitionVariant.java b/src/main/java/de/sub/goettingen/arendt/input/generated/CharRecognitionVariant.java new file mode 100644 index 0000000..9ccf7ba --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/CharRecognitionVariant.java @@ -0,0 +1,122 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java-Klasse für CharRecognitionVariant complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="CharRecognitionVariant">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="charConfidence" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="serifProbability" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CharRecognitionVariant", propOrder = { + "content" +}) +public class CharRecognitionVariant { + + @XmlValue + protected String content; + @XmlAttribute(name = "charConfidence") + protected BigInteger charConfidence; + @XmlAttribute(name = "serifProbability") + protected BigInteger serifProbability; + + /** + * Ruft den Wert der content-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Legt den Wert der content-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Ruft den Wert der charConfidence-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getCharConfidence() { + return charConfidence; + } + + /** + * Legt den Wert der charConfidence-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setCharConfidence(BigInteger value) { + this.charConfidence = value; + } + + /** + * Ruft den Wert der serifProbability-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSerifProbability() { + return serifProbability; + } + + /** + * Legt den Wert der serifProbability-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSerifProbability(BigInteger value) { + this.serifProbability = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/Document.java b/src/main/java/de/sub/goettingen/arendt/input/generated/Document.java new file mode 100644 index 0000000..0800984 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/Document.java @@ -0,0 +1,745 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="documentData" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="paragraphStyles" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="paragraphStyle" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}ParagraphStyleType" maxOccurs="unbounded" minOccurs="0"/>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="sections" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="section" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}SectionType" maxOccurs="unbounded" minOccurs="0"/>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="page" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="block" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}BlockType" maxOccurs="unbounded" minOccurs="0"/>
+ *                   <element name="pageSection" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}PageSectionType" maxOccurs="unbounded" minOccurs="0"/>
+ *                   <element name="pageStream" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}PageStreamType" maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="width" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                 <attribute name="height" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                 <attribute name="resolution" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                 <attribute name="originalCoords" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="producer" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="pagesCount" type="{http://www.w3.org/2001/XMLSchema}integer" default="1" />
+ *       <attribute name="mainLanguage" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="languages" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentData", + "page" +}) +@XmlRootElement(name = "document") +public class Document { + + protected Document.DocumentData documentData; + protected List page; + @XmlAttribute(name = "version", required = true) + protected String version; + @XmlAttribute(name = "producer", required = true) + protected String producer; + @XmlAttribute(name = "pagesCount") + protected BigInteger pagesCount; + @XmlAttribute(name = "mainLanguage") + protected String mainLanguage; + @XmlAttribute(name = "languages") + protected String languages; + + /** + * Ruft den Wert der documentData-Eigenschaft ab. + * + * @return + * possible object is + * {@link Document.DocumentData } + * + */ + public Document.DocumentData getDocumentData() { + return documentData; + } + + /** + * Legt den Wert der documentData-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Document.DocumentData } + * + */ + public void setDocumentData(Document.DocumentData value) { + this.documentData = value; + } + + /** + * Gets the value of the page property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the page property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPage().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Document.Page } + * + * + */ + public List getPage() { + if (page == null) { + page = new ArrayList(); + } + return this.page; + } + + /** + * Ruft den Wert der version-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersion() { + return version; + } + + /** + * Legt den Wert der version-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersion(String value) { + this.version = value; + } + + /** + * Ruft den Wert der producer-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProducer() { + return producer; + } + + /** + * Legt den Wert der producer-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProducer(String value) { + this.producer = value; + } + + /** + * Ruft den Wert der pagesCount-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getPagesCount() { + if (pagesCount == null) { + return new BigInteger("1"); + } else { + return pagesCount; + } + } + + /** + * Legt den Wert der pagesCount-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setPagesCount(BigInteger value) { + this.pagesCount = value; + } + + /** + * Ruft den Wert der mainLanguage-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMainLanguage() { + return mainLanguage; + } + + /** + * Legt den Wert der mainLanguage-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMainLanguage(String value) { + this.mainLanguage = value; + } + + /** + * Ruft den Wert der languages-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguages() { + return languages; + } + + /** + * Legt den Wert der languages-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguages(String value) { + this.languages = value; + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="paragraphStyles" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="paragraphStyle" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}ParagraphStyleType" maxOccurs="unbounded" minOccurs="0"/>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="sections" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="section" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}SectionType" maxOccurs="unbounded" minOccurs="0"/>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "paragraphStyles", + "sections" + }) + public static class DocumentData { + + protected Document.DocumentData.ParagraphStyles paragraphStyles; + protected Document.DocumentData.Sections sections; + + /** + * Ruft den Wert der paragraphStyles-Eigenschaft ab. + * + * @return + * possible object is + * {@link Document.DocumentData.ParagraphStyles } + * + */ + public Document.DocumentData.ParagraphStyles getParagraphStyles() { + return paragraphStyles; + } + + /** + * Legt den Wert der paragraphStyles-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Document.DocumentData.ParagraphStyles } + * + */ + public void setParagraphStyles(Document.DocumentData.ParagraphStyles value) { + this.paragraphStyles = value; + } + + /** + * Ruft den Wert der sections-Eigenschaft ab. + * + * @return + * possible object is + * {@link Document.DocumentData.Sections } + * + */ + public Document.DocumentData.Sections getSections() { + return sections; + } + + /** + * Legt den Wert der sections-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Document.DocumentData.Sections } + * + */ + public void setSections(Document.DocumentData.Sections value) { + this.sections = value; + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence>
+         *         <element name="paragraphStyle" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}ParagraphStyleType" maxOccurs="unbounded" minOccurs="0"/>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "paragraphStyle" + }) + public static class ParagraphStyles { + + protected List paragraphStyle; + + /** + * Gets the value of the paragraphStyle property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the paragraphStyle property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getParagraphStyle().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ParagraphStyleType } + * + * + */ + public List getParagraphStyle() { + if (paragraphStyle == null) { + paragraphStyle = new ArrayList(); + } + return this.paragraphStyle; + } + + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence>
+         *         <element name="section" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}SectionType" maxOccurs="unbounded" minOccurs="0"/>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "section" + }) + public static class Sections { + + protected List section; + + /** + * Gets the value of the section property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the section property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getSection().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link SectionType } + * + * + */ + public List getSection() { + if (section == null) { + section = new ArrayList(); + } + return this.section; + } + + } + + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="block" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}BlockType" maxOccurs="unbounded" minOccurs="0"/>
+     *         <element name="pageSection" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}PageSectionType" maxOccurs="unbounded" minOccurs="0"/>
+     *         <element name="pageStream" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}PageStreamType" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="width" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *       <attribute name="height" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *       <attribute name="resolution" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *       <attribute name="originalCoords" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "block", + "pageSection", + "pageStream" + }) + public static class Page { + + protected List block; + protected List pageSection; + protected List pageStream; + @XmlAttribute(name = "width", required = true) + protected BigInteger width; + @XmlAttribute(name = "height", required = true) + protected BigInteger height; + @XmlAttribute(name = "resolution", required = true) + protected BigInteger resolution; + @XmlAttribute(name = "originalCoords") + protected Boolean originalCoords; + + /** + * Gets the value of the block property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the block property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getBlock().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link BlockType } + * + * + */ + public List getBlock() { + if (block == null) { + block = new ArrayList(); + } + return this.block; + } + + /** + * Gets the value of the pageSection property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pageSection property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getPageSection().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PageSectionType } + * + * + */ + public List getPageSection() { + if (pageSection == null) { + pageSection = new ArrayList(); + } + return this.pageSection; + } + + /** + * Gets the value of the pageStream property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pageStream property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getPageStream().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PageStreamType } + * + * + */ + public List getPageStream() { + if (pageStream == null) { + pageStream = new ArrayList(); + } + return this.pageStream; + } + + /** + * Ruft den Wert der width-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getWidth() { + return width; + } + + /** + * Legt den Wert der width-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setWidth(BigInteger value) { + this.width = value; + } + + /** + * Ruft den Wert der height-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getHeight() { + return height; + } + + /** + * Legt den Wert der height-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setHeight(BigInteger value) { + this.height = value; + } + + /** + * Ruft den Wert der resolution-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getResolution() { + return resolution; + } + + /** + * Legt den Wert der resolution-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setResolution(BigInteger value) { + this.resolution = value; + } + + /** + * Ruft den Wert der originalCoords-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOriginalCoords() { + if (originalCoords == null) { + return false; + } else { + return originalCoords; + } + } + + /** + * Legt den Wert der originalCoords-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOriginalCoords(Boolean value) { + this.originalCoords = value; + } + + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/FontStyleType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/FontStyleType.java new file mode 100644 index 0000000..a40128d --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/FontStyleType.java @@ -0,0 +1,422 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für FontStyleType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="FontStyleType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="baseFont" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="italic" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="bold" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="underline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="strikeout" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="smallcaps" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="scaling" type="{http://www.w3.org/2001/XMLSchema}integer" default="1000" />
+ *       <attribute name="spacing" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="backgroundColor" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="ff" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="fs" use="required" type="{http://www.w3.org/2001/XMLSchema}float" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "FontStyleType") +public class FontStyleType { + + @XmlAttribute(name = "id", required = true) + protected String id; + @XmlAttribute(name = "baseFont") + protected Boolean baseFont; + @XmlAttribute(name = "italic") + protected Boolean italic; + @XmlAttribute(name = "bold") + protected Boolean bold; + @XmlAttribute(name = "underline") + protected Boolean underline; + @XmlAttribute(name = "strikeout") + protected Boolean strikeout; + @XmlAttribute(name = "smallcaps") + protected Boolean smallcaps; + @XmlAttribute(name = "scaling") + protected BigInteger scaling; + @XmlAttribute(name = "spacing") + protected BigInteger spacing; + @XmlAttribute(name = "color") + protected BigInteger color; + @XmlAttribute(name = "backgroundColor") + protected BigInteger backgroundColor; + @XmlAttribute(name = "ff", required = true) + protected String ff; + @XmlAttribute(name = "fs", required = true) + protected float fs; + + /** + * Ruft den Wert der id-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Legt den Wert der id-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Ruft den Wert der baseFont-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBaseFont() { + if (baseFont == null) { + return false; + } else { + return baseFont; + } + } + + /** + * Legt den Wert der baseFont-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBaseFont(Boolean value) { + this.baseFont = value; + } + + /** + * Ruft den Wert der italic-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isItalic() { + if (italic == null) { + return false; + } else { + return italic; + } + } + + /** + * Legt den Wert der italic-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setItalic(Boolean value) { + this.italic = value; + } + + /** + * Ruft den Wert der bold-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBold() { + if (bold == null) { + return false; + } else { + return bold; + } + } + + /** + * Legt den Wert der bold-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBold(Boolean value) { + this.bold = value; + } + + /** + * Ruft den Wert der underline-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUnderline() { + if (underline == null) { + return false; + } else { + return underline; + } + } + + /** + * Legt den Wert der underline-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUnderline(Boolean value) { + this.underline = value; + } + + /** + * Ruft den Wert der strikeout-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isStrikeout() { + if (strikeout == null) { + return false; + } else { + return strikeout; + } + } + + /** + * Legt den Wert der strikeout-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setStrikeout(Boolean value) { + this.strikeout = value; + } + + /** + * Ruft den Wert der smallcaps-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSmallcaps() { + if (smallcaps == null) { + return false; + } else { + return smallcaps; + } + } + + /** + * Legt den Wert der smallcaps-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSmallcaps(Boolean value) { + this.smallcaps = value; + } + + /** + * Ruft den Wert der scaling-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getScaling() { + if (scaling == null) { + return new BigInteger("1000"); + } else { + return scaling; + } + } + + /** + * Legt den Wert der scaling-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setScaling(BigInteger value) { + this.scaling = value; + } + + /** + * Ruft den Wert der spacing-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSpacing() { + if (spacing == null) { + return new BigInteger("0"); + } else { + return spacing; + } + } + + /** + * Legt den Wert der spacing-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSpacing(BigInteger value) { + this.spacing = value; + } + + /** + * Ruft den Wert der color-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getColor() { + if (color == null) { + return new BigInteger("0"); + } else { + return color; + } + } + + /** + * Legt den Wert der color-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setColor(BigInteger value) { + this.color = value; + } + + /** + * Ruft den Wert der backgroundColor-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getBackgroundColor() { + if (backgroundColor == null) { + return new BigInteger("0"); + } else { + return backgroundColor; + } + } + + /** + * Legt den Wert der backgroundColor-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setBackgroundColor(BigInteger value) { + this.backgroundColor = value; + } + + /** + * Ruft den Wert der ff-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFf() { + return ff; + } + + /** + * Legt den Wert der ff-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFf(String value) { + this.ff = value; + } + + /** + * Ruft den Wert der fs-Eigenschaft ab. + * + */ + public float getFs() { + return fs; + } + + /** + * Legt den Wert der fs-Eigenschaft fest. + * + */ + public void setFs(float value) { + this.fs = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/FormattingType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/FormattingType.java new file mode 100644 index 0000000..771bcc3 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/FormattingType.java @@ -0,0 +1,609 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.io.Serializable; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für FormattingType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="FormattingType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <choice maxOccurs="unbounded" minOccurs="0">
+ *           <element name="charParams" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}CharParamsType"/>
+ *           <element name="wordRecVariants">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <sequence>
+ *                     <element name="wordRecVariant" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}WordRecognitionVariant" maxOccurs="unbounded" minOccurs="0"/>
+ *                   </sequence>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *         </choice>
+ *       </sequence>
+ *       <attribute name="lang" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="ff" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="fs" type="{http://www.w3.org/2001/XMLSchema}float" />
+ *       <attribute name="bold" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="italic" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="subscript" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="superscript" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="smallcaps" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="underline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="strikeout" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="scaling" type="{http://www.w3.org/2001/XMLSchema}integer" default="1000" />
+ *       <attribute name="spacing" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="style" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="base64encoded" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "FormattingType", propOrder = { + "content" +}) +public class FormattingType { + + @XmlElementRefs({ + @XmlElementRef(name = "charParams", namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", type = JAXBElement.class, required = false), + @XmlElementRef(name = "wordRecVariants", namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", type = JAXBElement.class, required = false) + }) + @XmlMixed + protected List content; + @XmlAttribute(name = "lang", required = true) + protected String lang; + @XmlAttribute(name = "ff") + protected String ff; + @XmlAttribute(name = "fs") + protected Float fs; + @XmlAttribute(name = "bold") + protected Boolean bold; + @XmlAttribute(name = "italic") + protected Boolean italic; + @XmlAttribute(name = "subscript") + protected Boolean subscript; + @XmlAttribute(name = "superscript") + protected Boolean superscript; + @XmlAttribute(name = "smallcaps") + protected Boolean smallcaps; + @XmlAttribute(name = "underline") + protected Boolean underline; + @XmlAttribute(name = "strikeout") + protected Boolean strikeout; + @XmlAttribute(name = "color") + protected BigInteger color; + @XmlAttribute(name = "scaling") + protected BigInteger scaling; + @XmlAttribute(name = "spacing") + protected BigInteger spacing; + @XmlAttribute(name = "style") + protected String style; + @XmlAttribute(name = "base64encoded") + protected Boolean base64Encoded; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link CharParamsType }{@code >} + * {@link JAXBElement }{@code <}{@link FormattingType.WordRecVariants }{@code >} + * {@link String } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + /** + * Ruft den Wert der lang-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Legt den Wert der lang-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Ruft den Wert der ff-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFf() { + return ff; + } + + /** + * Legt den Wert der ff-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFf(String value) { + this.ff = value; + } + + /** + * Ruft den Wert der fs-Eigenschaft ab. + * + * @return + * possible object is + * {@link Float } + * + */ + public Float getFs() { + return fs; + } + + /** + * Legt den Wert der fs-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Float } + * + */ + public void setFs(Float value) { + this.fs = value; + } + + /** + * Ruft den Wert der bold-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBold() { + if (bold == null) { + return false; + } else { + return bold; + } + } + + /** + * Legt den Wert der bold-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBold(Boolean value) { + this.bold = value; + } + + /** + * Ruft den Wert der italic-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isItalic() { + if (italic == null) { + return false; + } else { + return italic; + } + } + + /** + * Legt den Wert der italic-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setItalic(Boolean value) { + this.italic = value; + } + + /** + * Ruft den Wert der subscript-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSubscript() { + if (subscript == null) { + return false; + } else { + return subscript; + } + } + + /** + * Legt den Wert der subscript-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSubscript(Boolean value) { + this.subscript = value; + } + + /** + * Ruft den Wert der superscript-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSuperscript() { + if (superscript == null) { + return false; + } else { + return superscript; + } + } + + /** + * Legt den Wert der superscript-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSuperscript(Boolean value) { + this.superscript = value; + } + + /** + * Ruft den Wert der smallcaps-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSmallcaps() { + if (smallcaps == null) { + return false; + } else { + return smallcaps; + } + } + + /** + * Legt den Wert der smallcaps-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSmallcaps(Boolean value) { + this.smallcaps = value; + } + + /** + * Ruft den Wert der underline-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUnderline() { + if (underline == null) { + return false; + } else { + return underline; + } + } + + /** + * Legt den Wert der underline-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUnderline(Boolean value) { + this.underline = value; + } + + /** + * Ruft den Wert der strikeout-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isStrikeout() { + if (strikeout == null) { + return false; + } else { + return strikeout; + } + } + + /** + * Legt den Wert der strikeout-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setStrikeout(Boolean value) { + this.strikeout = value; + } + + /** + * Ruft den Wert der color-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getColor() { + if (color == null) { + return new BigInteger("0"); + } else { + return color; + } + } + + /** + * Legt den Wert der color-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setColor(BigInteger value) { + this.color = value; + } + + /** + * Ruft den Wert der scaling-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getScaling() { + if (scaling == null) { + return new BigInteger("1000"); + } else { + return scaling; + } + } + + /** + * Legt den Wert der scaling-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setScaling(BigInteger value) { + this.scaling = value; + } + + /** + * Ruft den Wert der spacing-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSpacing() { + if (spacing == null) { + return new BigInteger("0"); + } else { + return spacing; + } + } + + /** + * Legt den Wert der spacing-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSpacing(BigInteger value) { + this.spacing = value; + } + + /** + * Ruft den Wert der style-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStyle() { + return style; + } + + /** + * Legt den Wert der style-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStyle(String value) { + this.style = value; + } + + /** + * Ruft den Wert der base64Encoded-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBase64Encoded() { + if (base64Encoded == null) { + return false; + } else { + return base64Encoded; + } + } + + /** + * Legt den Wert der base64Encoded-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBase64Encoded(Boolean value) { + this.base64Encoded = value; + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="wordRecVariant" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}WordRecognitionVariant" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "wordRecVariant" + }) + public static class WordRecVariants { + + protected List wordRecVariant; + + /** + * Gets the value of the wordRecVariant property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the wordRecVariant property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getWordRecVariant().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link WordRecognitionVariant } + * + * + */ + public List getWordRecVariant() { + if (wordRecVariant == null) { + wordRecVariant = new ArrayList(); + } + return this.wordRecVariant; + } + + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/LineType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/LineType.java new file mode 100644 index 0000000..a29957b --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/LineType.java @@ -0,0 +1,211 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für LineType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="LineType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="formatting" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}FormattingType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="baseline" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="l" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="t" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="r" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="b" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "LineType", propOrder = { + "formatting" +}) +public class LineType { + + protected List formatting; + @XmlAttribute(name = "baseline", required = true) + protected BigInteger baseline; + @XmlAttribute(name = "l", required = true) + protected BigInteger l; + @XmlAttribute(name = "t", required = true) + protected BigInteger t; + @XmlAttribute(name = "r", required = true) + protected BigInteger r; + @XmlAttribute(name = "b", required = true) + protected BigInteger b; + + /** + * Gets the value of the formatting property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the formatting property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFormatting().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link FormattingType } + * + * + */ + public List getFormatting() { + if (formatting == null) { + formatting = new ArrayList(); + } + return this.formatting; + } + + /** + * Ruft den Wert der baseline-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getBaseline() { + return baseline; + } + + /** + * Legt den Wert der baseline-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setBaseline(BigInteger value) { + this.baseline = value; + } + + /** + * Ruft den Wert der l-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getL() { + return l; + } + + /** + * Legt den Wert der l-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setL(BigInteger value) { + this.l = value; + } + + /** + * Ruft den Wert der t-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getT() { + return t; + } + + /** + * Legt den Wert der t-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setT(BigInteger value) { + this.t = value; + } + + /** + * Ruft den Wert der r-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getR() { + return r; + } + + /** + * Legt den Wert der r-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setR(BigInteger value) { + this.r = value; + } + + /** + * Ruft den Wert der b-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getB() { + return b; + } + + /** + * Legt den Wert der b-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setB(BigInteger value) { + this.b = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/ObjectFactory.java b/src/main/java/de/sub/goettingen/arendt/input/generated/ObjectFactory.java new file mode 100644 index 0000000..3da861e --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/ObjectFactory.java @@ -0,0 +1,397 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the de.sub.goettingen.arendt.input.generated package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _SeparatorBlockTypeStart_QNAME = new QName("http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", "start"); + private final static QName _SeparatorBlockTypeEnd_QNAME = new QName("http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", "end"); + private final static QName _CharParamsTypeCharRecVariants_QNAME = new QName("http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", "charRecVariants"); + private final static QName _WordRecognitionVariantVariantTextCharParams_QNAME = new QName("http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", "charParams"); + private final static QName _FormattingTypeWordRecVariants_QNAME = new QName("http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", "wordRecVariants"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: de.sub.goettingen.arendt.input.generated + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Document } + * + */ + public Document createDocument() { + return new Document(); + } + + /** + * Create an instance of {@link TextStreamType } + * + */ + public TextStreamType createTextStreamType() { + return new TextStreamType(); + } + + /** + * Create an instance of {@link FormattingType } + * + */ + public FormattingType createFormattingType() { + return new FormattingType(); + } + + /** + * Create an instance of {@link CharParamsType } + * + */ + public CharParamsType createCharParamsType() { + return new CharParamsType(); + } + + /** + * Create an instance of {@link BlockType } + * + */ + public BlockType createBlockType() { + return new BlockType(); + } + + /** + * Create an instance of {@link BlockType.Region } + * + */ + public BlockType.Region createBlockTypeRegion() { + return new BlockType.Region(); + } + + /** + * Create an instance of {@link TableRowType } + * + */ + public TableRowType createTableRowType() { + return new TableRowType(); + } + + /** + * Create an instance of {@link TableType } + * + */ + public TableType createTableType() { + return new TableType(); + } + + /** + * Create an instance of {@link WordRecognitionVariant } + * + */ + public WordRecognitionVariant createWordRecognitionVariant() { + return new WordRecognitionVariant(); + } + + /** + * Create an instance of {@link Document.DocumentData } + * + */ + public Document.DocumentData createDocumentDocumentData() { + return new Document.DocumentData(); + } + + /** + * Create an instance of {@link Document.Page } + * + */ + public Document.Page createDocumentPage() { + return new Document.Page(); + } + + /** + * Create an instance of {@link PageSectionType } + * + */ + public PageSectionType createPageSectionType() { + return new PageSectionType(); + } + + /** + * Create an instance of {@link PageStreamType } + * + */ + public PageStreamType createPageStreamType() { + return new PageStreamType(); + } + + /** + * Create an instance of {@link Point } + * + */ + public Point createPoint() { + return new Point(); + } + + /** + * Create an instance of {@link CharRecognitionVariant } + * + */ + public CharRecognitionVariant createCharRecognitionVariant() { + return new CharRecognitionVariant(); + } + + /** + * Create an instance of {@link FontStyleType } + * + */ + public FontStyleType createFontStyleType() { + return new FontStyleType(); + } + + /** + * Create an instance of {@link TextType } + * + */ + public TextType createTextType() { + return new TextType(); + } + + /** + * Create an instance of {@link ParagraphType } + * + */ + public ParagraphType createParagraphType() { + return new ParagraphType(); + } + + /** + * Create an instance of {@link SectionType } + * + */ + public SectionType createSectionType() { + return new SectionType(); + } + + /** + * Create an instance of {@link CaptionType } + * + */ + public CaptionType createCaptionType() { + return new CaptionType(); + } + + /** + * Create an instance of {@link PictureType } + * + */ + public PictureType createPictureType() { + return new PictureType(); + } + + /** + * Create an instance of {@link PageElementType } + * + */ + public PageElementType createPageElementType() { + return new PageElementType(); + } + + /** + * Create an instance of {@link ParagraphStyleType } + * + */ + public ParagraphStyleType createParagraphStyleType() { + return new ParagraphStyleType(); + } + + /** + * Create an instance of {@link SeparatorBlockType } + * + */ + public SeparatorBlockType createSeparatorBlockType() { + return new SeparatorBlockType(); + } + + /** + * Create an instance of {@link BarcodeType } + * + */ + public BarcodeType createBarcodeType() { + return new BarcodeType(); + } + + /** + * Create an instance of {@link LineType } + * + */ + public LineType createLineType() { + return new LineType(); + } + + /** + * Create an instance of {@link TextStreamType.MainText } + * + */ + public TextStreamType.MainText createTextStreamTypeMainText() { + return new TextStreamType.MainText(); + } + + /** + * Create an instance of {@link TextStreamType.ElemId } + * + */ + public TextStreamType.ElemId createTextStreamTypeElemId() { + return new TextStreamType.ElemId(); + } + + /** + * Create an instance of {@link FormattingType.WordRecVariants } + * + */ + public FormattingType.WordRecVariants createFormattingTypeWordRecVariants() { + return new FormattingType.WordRecVariants(); + } + + /** + * Create an instance of {@link CharParamsType.CharRecVariants } + * + */ + public CharParamsType.CharRecVariants createCharParamsTypeCharRecVariants() { + return new CharParamsType.CharRecVariants(); + } + + /** + * Create an instance of {@link BlockType.SeparatorsBox } + * + */ + public BlockType.SeparatorsBox createBlockTypeSeparatorsBox() { + return new BlockType.SeparatorsBox(); + } + + /** + * Create an instance of {@link BlockType.Region.Rect } + * + */ + public BlockType.Region.Rect createBlockTypeRegionRect() { + return new BlockType.Region.Rect(); + } + + /** + * Create an instance of {@link TableRowType.Cell } + * + */ + public TableRowType.Cell createTableRowTypeCell() { + return new TableRowType.Cell(); + } + + /** + * Create an instance of {@link TableType.TableCell } + * + */ + public TableType.TableCell createTableTypeTableCell() { + return new TableType.TableCell(); + } + + /** + * Create an instance of {@link WordRecognitionVariant.VariantText } + * + */ + public WordRecognitionVariant.VariantText createWordRecognitionVariantVariantText() { + return new WordRecognitionVariant.VariantText(); + } + + /** + * Create an instance of {@link Document.DocumentData.ParagraphStyles } + * + */ + public Document.DocumentData.ParagraphStyles createDocumentDocumentDataParagraphStyles() { + return new Document.DocumentData.ParagraphStyles(); + } + + /** + * Create an instance of {@link Document.DocumentData.Sections } + * + */ + public Document.DocumentData.Sections createDocumentDocumentDataSections() { + return new Document.DocumentData.Sections(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Point }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", name = "start", scope = SeparatorBlockType.class) + public JAXBElement createSeparatorBlockTypeStart(Point value) { + return new JAXBElement(_SeparatorBlockTypeStart_QNAME, Point.class, SeparatorBlockType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Point }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", name = "end", scope = SeparatorBlockType.class) + public JAXBElement createSeparatorBlockTypeEnd(Point value) { + return new JAXBElement(_SeparatorBlockTypeEnd_QNAME, Point.class, SeparatorBlockType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CharParamsType.CharRecVariants }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", name = "charRecVariants", scope = CharParamsType.class) + public JAXBElement createCharParamsTypeCharRecVariants(CharParamsType.CharRecVariants value) { + return new JAXBElement(_CharParamsTypeCharRecVariants_QNAME, CharParamsType.CharRecVariants.class, CharParamsType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CharParamsType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", name = "charParams", scope = WordRecognitionVariant.VariantText.class) + public JAXBElement createWordRecognitionVariantVariantTextCharParams(CharParamsType value) { + return new JAXBElement(_WordRecognitionVariantVariantTextCharParams_QNAME, CharParamsType.class, WordRecognitionVariant.VariantText.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CharParamsType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", name = "charParams", scope = FormattingType.class) + public JAXBElement createFormattingTypeCharParams(CharParamsType value) { + return new JAXBElement(_WordRecognitionVariantVariantTextCharParams_QNAME, CharParamsType.class, FormattingType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FormattingType.WordRecVariants }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", name = "wordRecVariants", scope = FormattingType.class) + public JAXBElement createFormattingTypeWordRecVariants(FormattingType.WordRecVariants value) { + return new JAXBElement(_FormattingTypeWordRecVariants_QNAME, FormattingType.WordRecVariants.class, FormattingType.class, value); + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/PageElementType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/PageElementType.java new file mode 100644 index 0000000..1631350 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/PageElementType.java @@ -0,0 +1,176 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für PageElementType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="PageElementType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="text" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TextType" minOccurs="0"/>
+ *         <element name="table" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TableType" minOccurs="0"/>
+ *         <element name="barcode" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}BarcodeType" minOccurs="0"/>
+ *         <element name="picture" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}PictureType" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="pageElemId" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "PageElementType", propOrder = { + "text", + "table", + "barcode", + "picture" +}) +public class PageElementType { + + protected TextType text; + protected TableType table; + protected BarcodeType barcode; + protected PictureType picture; + @XmlAttribute(name = "pageElemId", required = true) + protected String pageElemId; + + /** + * Ruft den Wert der text-Eigenschaft ab. + * + * @return + * possible object is + * {@link TextType } + * + */ + public TextType getText() { + return text; + } + + /** + * Legt den Wert der text-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link TextType } + * + */ + public void setText(TextType value) { + this.text = value; + } + + /** + * Ruft den Wert der table-Eigenschaft ab. + * + * @return + * possible object is + * {@link TableType } + * + */ + public TableType getTable() { + return table; + } + + /** + * Legt den Wert der table-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link TableType } + * + */ + public void setTable(TableType value) { + this.table = value; + } + + /** + * Ruft den Wert der barcode-Eigenschaft ab. + * + * @return + * possible object is + * {@link BarcodeType } + * + */ + public BarcodeType getBarcode() { + return barcode; + } + + /** + * Legt den Wert der barcode-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BarcodeType } + * + */ + public void setBarcode(BarcodeType value) { + this.barcode = value; + } + + /** + * Ruft den Wert der picture-Eigenschaft ab. + * + * @return + * possible object is + * {@link PictureType } + * + */ + public PictureType getPicture() { + return picture; + } + + /** + * Legt den Wert der picture-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link PictureType } + * + */ + public void setPicture(PictureType value) { + this.picture = value; + } + + /** + * Ruft den Wert der pageElemId-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPageElemId() { + return pageElemId; + } + + /** + * Legt den Wert der pageElemId-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPageElemId(String value) { + this.pageElemId = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/PageSectionType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/PageSectionType.java new file mode 100644 index 0000000..3de0a08 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/PageSectionType.java @@ -0,0 +1,74 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für PageSectionType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="PageSectionType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pageStream" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}PageStreamType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "PageSectionType", propOrder = { + "pageStream" +}) +public class PageSectionType { + + protected List pageStream; + + /** + * Gets the value of the pageStream property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pageStream property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPageStream().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PageStreamType } + * + * + */ + public List getPageStream() { + if (pageStream == null) { + pageStream = new ArrayList(); + } + return this.pageStream; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/PageStreamType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/PageStreamType.java new file mode 100644 index 0000000..a3f2336 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/PageStreamType.java @@ -0,0 +1,102 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für PageStreamType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="PageStreamType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pageElement" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}PageElementType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="streamType" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "PageStreamType", propOrder = { + "pageElement" +}) +public class PageStreamType { + + protected List pageElement; + @XmlAttribute(name = "streamType", required = true) + protected String streamType; + + /** + * Gets the value of the pageElement property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pageElement property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPageElement().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PageElementType } + * + * + */ + public List getPageElement() { + if (pageElement == null) { + pageElement = new ArrayList(); + } + return this.pageElement; + } + + /** + * Ruft den Wert der streamType-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStreamType() { + return streamType; + } + + /** + * Legt den Wert der streamType-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStreamType(String value) { + this.streamType = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphAlignment.java b/src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphAlignment.java new file mode 100644 index 0000000..87ce77e --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphAlignment.java @@ -0,0 +1,70 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für ParagraphAlignment. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + *

+ *

+ * <simpleType name="ParagraphAlignment">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Left"/>
+ *     <enumeration value="Center"/>
+ *     <enumeration value="Right"/>
+ *     <enumeration value="Justified"/>
+ *     <enumeration value="CjkJustified"/>
+ *     <enumeration value="ThaiJustified"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ParagraphAlignment") +@XmlEnum +public enum ParagraphAlignment { + + @XmlEnumValue("Left") + LEFT("Left"), + @XmlEnumValue("Center") + CENTER("Center"), + @XmlEnumValue("Right") + RIGHT("Right"), + @XmlEnumValue("Justified") + JUSTIFIED("Justified"), + @XmlEnumValue("CjkJustified") + CJK_JUSTIFIED("CjkJustified"), + @XmlEnumValue("ThaiJustified") + THAI_JUSTIFIED("ThaiJustified"); + private final String value; + + ParagraphAlignment(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ParagraphAlignment fromValue(String v) { + for (ParagraphAlignment c: ParagraphAlignment.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphStyleType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphStyleType.java new file mode 100644 index 0000000..2c16707 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphStyleType.java @@ -0,0 +1,509 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für ParagraphStyleType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="ParagraphStyleType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="fontStyle" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}FontStyleType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="mainFontStyleId" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="role" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="text"/>
+ *             <enumeration value="tableText"/>
+ *             <enumeration value="heading"/>
+ *             <enumeration value="tableHeading"/>
+ *             <enumeration value="pictureCaption"/>
+ *             <enumeration value="tableCaption"/>
+ *             <enumeration value="contents"/>
+ *             <enumeration value="footnote"/>
+ *             <enumeration value="endnote"/>
+ *             <enumeration value="rt"/>
+ *             <enumeration value="garb"/>
+ *             <enumeration value="other"/>
+ *             <enumeration value="barcode"/>
+ *             <enumeration value="headingNumber"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="roleLevel" type="{http://www.w3.org/2001/XMLSchema}integer" default="-1" />
+ *       <attribute name="align" use="required" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}ParagraphAlignment" />
+ *       <attribute name="before" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="after" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="startIndent" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="leftIndent" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="rightIndent" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="lineSpacing" type="{http://www.w3.org/2001/XMLSchema}integer" default="-1" />
+ *       <attribute name="lineSpacingRatio" type="{http://www.w3.org/2001/XMLSchema}integer" default="1" />
+ *       <attribute name="fixedLineSpacing" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ParagraphStyleType", propOrder = { + "fontStyle" +}) +public class ParagraphStyleType { + + protected List fontStyle; + @XmlAttribute(name = "id", required = true) + protected String id; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "mainFontStyleId", required = true) + protected String mainFontStyleId; + @XmlAttribute(name = "role", required = true) + protected String role; + @XmlAttribute(name = "roleLevel") + protected BigInteger roleLevel; + @XmlAttribute(name = "align", required = true) + protected ParagraphAlignment align; + @XmlAttribute(name = "before") + protected BigInteger before; + @XmlAttribute(name = "after") + protected BigInteger after; + @XmlAttribute(name = "startIndent") + protected BigInteger startIndent; + @XmlAttribute(name = "leftIndent") + protected BigInteger leftIndent; + @XmlAttribute(name = "rightIndent") + protected BigInteger rightIndent; + @XmlAttribute(name = "lineSpacing") + protected BigInteger lineSpacing; + @XmlAttribute(name = "lineSpacingRatio") + protected BigInteger lineSpacingRatio; + @XmlAttribute(name = "fixedLineSpacing") + protected Boolean fixedLineSpacing; + + /** + * Gets the value of the fontStyle property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the fontStyle property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFontStyle().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link FontStyleType } + * + * + */ + public List getFontStyle() { + if (fontStyle == null) { + fontStyle = new ArrayList(); + } + return this.fontStyle; + } + + /** + * Ruft den Wert der id-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Legt den Wert der id-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Ruft den Wert der name-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Legt den Wert der name-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Ruft den Wert der mainFontStyleId-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMainFontStyleId() { + return mainFontStyleId; + } + + /** + * Legt den Wert der mainFontStyleId-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMainFontStyleId(String value) { + this.mainFontStyleId = value; + } + + /** + * Ruft den Wert der role-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Legt den Wert der role-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Ruft den Wert der roleLevel-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getRoleLevel() { + if (roleLevel == null) { + return new BigInteger("-1"); + } else { + return roleLevel; + } + } + + /** + * Legt den Wert der roleLevel-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setRoleLevel(BigInteger value) { + this.roleLevel = value; + } + + /** + * Ruft den Wert der align-Eigenschaft ab. + * + * @return + * possible object is + * {@link ParagraphAlignment } + * + */ + public ParagraphAlignment getAlign() { + return align; + } + + /** + * Legt den Wert der align-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link ParagraphAlignment } + * + */ + public void setAlign(ParagraphAlignment value) { + this.align = value; + } + + /** + * Ruft den Wert der before-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getBefore() { + if (before == null) { + return new BigInteger("0"); + } else { + return before; + } + } + + /** + * Legt den Wert der before-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setBefore(BigInteger value) { + this.before = value; + } + + /** + * Ruft den Wert der after-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getAfter() { + if (after == null) { + return new BigInteger("0"); + } else { + return after; + } + } + + /** + * Legt den Wert der after-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setAfter(BigInteger value) { + this.after = value; + } + + /** + * Ruft den Wert der startIndent-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getStartIndent() { + if (startIndent == null) { + return new BigInteger("0"); + } else { + return startIndent; + } + } + + /** + * Legt den Wert der startIndent-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setStartIndent(BigInteger value) { + this.startIndent = value; + } + + /** + * Ruft den Wert der leftIndent-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getLeftIndent() { + if (leftIndent == null) { + return new BigInteger("0"); + } else { + return leftIndent; + } + } + + /** + * Legt den Wert der leftIndent-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setLeftIndent(BigInteger value) { + this.leftIndent = value; + } + + /** + * Ruft den Wert der rightIndent-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getRightIndent() { + if (rightIndent == null) { + return new BigInteger("0"); + } else { + return rightIndent; + } + } + + /** + * Legt den Wert der rightIndent-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setRightIndent(BigInteger value) { + this.rightIndent = value; + } + + /** + * Ruft den Wert der lineSpacing-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getLineSpacing() { + if (lineSpacing == null) { + return new BigInteger("-1"); + } else { + return lineSpacing; + } + } + + /** + * Legt den Wert der lineSpacing-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setLineSpacing(BigInteger value) { + this.lineSpacing = value; + } + + /** + * Ruft den Wert der lineSpacingRatio-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getLineSpacingRatio() { + if (lineSpacingRatio == null) { + return new BigInteger("1"); + } else { + return lineSpacingRatio; + } + } + + /** + * Legt den Wert der lineSpacingRatio-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setLineSpacingRatio(BigInteger value) { + this.lineSpacingRatio = value; + } + + /** + * Ruft den Wert der fixedLineSpacing-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFixedLineSpacing() { + if (fixedLineSpacing == null) { + return true; + } else { + return fixedLineSpacing; + } + } + + /** + * Legt den Wert der fixedLineSpacing-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFixedLineSpacing(Boolean value) { + this.fixedLineSpacing = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphType.java new file mode 100644 index 0000000..8bba598 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/ParagraphType.java @@ -0,0 +1,486 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für ParagraphType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="ParagraphType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="line" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}LineType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="dropCapCharsCount" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="dropCap-l" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="dropCap-t" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="dropCap-r" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="dropCap-b" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="align" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}ParagraphAlignment" default="Left" />
+ *       <attribute name="leftIndent" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="rightIndent" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="startIndent" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="lineSpacing" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
+ *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="style" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="hasOverflowedHead" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="hasOverflowedTail" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ParagraphType", propOrder = { + "line" +}) +public class ParagraphType { + + protected List line; + @XmlAttribute(name = "dropCapCharsCount") + protected BigInteger dropCapCharsCount; + @XmlAttribute(name = "dropCap-l") + protected BigInteger dropCapL; + @XmlAttribute(name = "dropCap-t") + protected BigInteger dropCapT; + @XmlAttribute(name = "dropCap-r") + protected BigInteger dropCapR; + @XmlAttribute(name = "dropCap-b") + protected BigInteger dropCapB; + @XmlAttribute(name = "align") + protected ParagraphAlignment align; + @XmlAttribute(name = "leftIndent") + protected BigInteger leftIndent; + @XmlAttribute(name = "rightIndent") + protected BigInteger rightIndent; + @XmlAttribute(name = "startIndent") + protected BigInteger startIndent; + @XmlAttribute(name = "lineSpacing") + protected BigInteger lineSpacing; + @XmlAttribute(name = "id") + protected String id; + @XmlAttribute(name = "style") + protected String style; + @XmlAttribute(name = "hasOverflowedHead") + protected Boolean hasOverflowedHead; + @XmlAttribute(name = "hasOverflowedTail") + protected Boolean hasOverflowedTail; + + /** + * Gets the value of the line property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the line property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getLine().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link LineType } + * + * + */ + public List getLine() { + if (line == null) { + line = new ArrayList(); + } + return this.line; + } + + /** + * Ruft den Wert der dropCapCharsCount-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getDropCapCharsCount() { + if (dropCapCharsCount == null) { + return new BigInteger("0"); + } else { + return dropCapCharsCount; + } + } + + /** + * Legt den Wert der dropCapCharsCount-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setDropCapCharsCount(BigInteger value) { + this.dropCapCharsCount = value; + } + + /** + * Ruft den Wert der dropCapL-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getDropCapL() { + return dropCapL; + } + + /** + * Legt den Wert der dropCapL-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setDropCapL(BigInteger value) { + this.dropCapL = value; + } + + /** + * Ruft den Wert der dropCapT-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getDropCapT() { + return dropCapT; + } + + /** + * Legt den Wert der dropCapT-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setDropCapT(BigInteger value) { + this.dropCapT = value; + } + + /** + * Ruft den Wert der dropCapR-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getDropCapR() { + return dropCapR; + } + + /** + * Legt den Wert der dropCapR-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setDropCapR(BigInteger value) { + this.dropCapR = value; + } + + /** + * Ruft den Wert der dropCapB-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getDropCapB() { + return dropCapB; + } + + /** + * Legt den Wert der dropCapB-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setDropCapB(BigInteger value) { + this.dropCapB = value; + } + + /** + * Ruft den Wert der align-Eigenschaft ab. + * + * @return + * possible object is + * {@link ParagraphAlignment } + * + */ + public ParagraphAlignment getAlign() { + if (align == null) { + return ParagraphAlignment.LEFT; + } else { + return align; + } + } + + /** + * Legt den Wert der align-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link ParagraphAlignment } + * + */ + public void setAlign(ParagraphAlignment value) { + this.align = value; + } + + /** + * Ruft den Wert der leftIndent-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getLeftIndent() { + if (leftIndent == null) { + return new BigInteger("0"); + } else { + return leftIndent; + } + } + + /** + * Legt den Wert der leftIndent-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setLeftIndent(BigInteger value) { + this.leftIndent = value; + } + + /** + * Ruft den Wert der rightIndent-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getRightIndent() { + if (rightIndent == null) { + return new BigInteger("0"); + } else { + return rightIndent; + } + } + + /** + * Legt den Wert der rightIndent-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setRightIndent(BigInteger value) { + this.rightIndent = value; + } + + /** + * Ruft den Wert der startIndent-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getStartIndent() { + if (startIndent == null) { + return new BigInteger("0"); + } else { + return startIndent; + } + } + + /** + * Legt den Wert der startIndent-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setStartIndent(BigInteger value) { + this.startIndent = value; + } + + /** + * Ruft den Wert der lineSpacing-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getLineSpacing() { + if (lineSpacing == null) { + return new BigInteger("0"); + } else { + return lineSpacing; + } + } + + /** + * Legt den Wert der lineSpacing-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setLineSpacing(BigInteger value) { + this.lineSpacing = value; + } + + /** + * Ruft den Wert der id-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Legt den Wert der id-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Ruft den Wert der style-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStyle() { + return style; + } + + /** + * Legt den Wert der style-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStyle(String value) { + this.style = value; + } + + /** + * Ruft den Wert der hasOverflowedHead-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHasOverflowedHead() { + if (hasOverflowedHead == null) { + return false; + } else { + return hasOverflowedHead; + } + } + + /** + * Legt den Wert der hasOverflowedHead-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHasOverflowedHead(Boolean value) { + this.hasOverflowedHead = value; + } + + /** + * Ruft den Wert der hasOverflowedTail-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHasOverflowedTail() { + if (hasOverflowedTail == null) { + return false; + } else { + return hasOverflowedTail; + } + } + + /** + * Legt den Wert der hasOverflowedTail-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHasOverflowedTail(Boolean value) { + this.hasOverflowedTail = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/PictureType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/PictureType.java new file mode 100644 index 0000000..37ad47c --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/PictureType.java @@ -0,0 +1,102 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für PictureType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="PictureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="caption" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}CaptionType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "PictureType", propOrder = { + "caption" +}) +public class PictureType { + + protected List caption; + @XmlAttribute(name = "id", required = true) + protected String id; + + /** + * Gets the value of the caption property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the caption property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCaption().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CaptionType } + * + * + */ + public List getCaption() { + if (caption == null) { + caption = new ArrayList(); + } + return this.caption; + } + + /** + * Ruft den Wert der id-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Legt den Wert der id-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/Point.java b/src/main/java/de/sub/goettingen/arendt/input/generated/Point.java new file mode 100644 index 0000000..cff72a7 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/Point.java @@ -0,0 +1,93 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für Point complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="Point">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="y" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Point") +public class Point { + + @XmlAttribute(name = "x", required = true) + protected BigInteger x; + @XmlAttribute(name = "y", required = true) + protected BigInteger y; + + /** + * Ruft den Wert der x-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getX() { + return x; + } + + /** + * Legt den Wert der x-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setX(BigInteger value) { + this.x = value; + } + + /** + * Ruft den Wert der y-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getY() { + return y; + } + + /** + * Legt den Wert der y-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setY(BigInteger value) { + this.y = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/SectionType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/SectionType.java new file mode 100644 index 0000000..58b3ff6 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/SectionType.java @@ -0,0 +1,74 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für SectionType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="SectionType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="stream" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TextStreamType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SectionType", propOrder = { + "stream" +}) +public class SectionType { + + protected List stream; + + /** + * Gets the value of the stream property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the stream property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getStream().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TextStreamType } + * + * + */ + public List getStream() { + if (stream == null) { + stream = new ArrayList(); + } + return this.stream; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/SeparatorBlockType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/SeparatorBlockType.java new file mode 100644 index 0000000..6bd4634 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/SeparatorBlockType.java @@ -0,0 +1,151 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.io.Serializable; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für SeparatorBlockType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="SeparatorBlockType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="start" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}Point"/>
+ *         <element name="end" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}Point"/>
+ *       </sequence>
+ *       <attribute name="thickness" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Unknown"/>
+ *             <enumeration value="Black"/>
+ *             <enumeration value="Dotted"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SeparatorBlockType", propOrder = { + "content" +}) +public class SeparatorBlockType { + + @XmlElementRefs({ + @XmlElementRef(name = "end", namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", type = JAXBElement.class), + @XmlElementRef(name = "start", namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", type = JAXBElement.class) + }) + @XmlMixed + protected List content; + @XmlAttribute(name = "thickness", required = true) + protected BigInteger thickness; + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link Point }{@code >} + * {@link String } + * {@link JAXBElement }{@code <}{@link Point }{@code >} + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + /** + * Ruft den Wert der thickness-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getThickness() { + return thickness; + } + + /** + * Legt den Wert der thickness-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setThickness(BigInteger value) { + this.thickness = value; + } + + /** + * Ruft den Wert der type-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Legt den Wert der type-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/TableCellBorderType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/TableCellBorderType.java new file mode 100644 index 0000000..45991dd --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/TableCellBorderType.java @@ -0,0 +1,64 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für TableCellBorderType. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + *

+ *

+ * <simpleType name="TableCellBorderType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Absent"/>
+ *     <enumeration value="Unknown"/>
+ *     <enumeration value="White"/>
+ *     <enumeration value="Black"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TableCellBorderType") +@XmlEnum +public enum TableCellBorderType { + + @XmlEnumValue("Absent") + ABSENT("Absent"), + @XmlEnumValue("Unknown") + UNKNOWN("Unknown"), + @XmlEnumValue("White") + WHITE("White"), + @XmlEnumValue("Black") + BLACK("Black"); + private final String value; + + TableCellBorderType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static TableCellBorderType fromValue(String v) { + for (TableCellBorderType c: TableCellBorderType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/TableRowType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/TableRowType.java new file mode 100644 index 0000000..222cf9c --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/TableRowType.java @@ -0,0 +1,473 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für TableRowType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="TableRowType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cell" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="text" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TextType" maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="colSpan" type="{http://www.w3.org/2001/XMLSchema}integer" default="1" />
+ *                 <attribute name="rowSpan" type="{http://www.w3.org/2001/XMLSchema}integer" default="1" />
+ *                 <attribute name="align" default="Top">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="Top"/>
+ *                       <enumeration value="Center"/>
+ *                       <enumeration value="Bottom"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="picture" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *                 <attribute name="leftBorder" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TableCellBorderType" default="Black" />
+ *                 <attribute name="topBorder" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TableCellBorderType" default="Black" />
+ *                 <attribute name="rightBorder" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TableCellBorderType" default="Black" />
+ *                 <attribute name="bottomBorder" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TableCellBorderType" default="Black" />
+ *                 <attribute name="width" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                 <attribute name="height" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TableRowType", propOrder = { + "cell" +}) +public class TableRowType { + + protected List cell; + + /** + * Gets the value of the cell property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cell property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCell().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TableRowType.Cell } + * + * + */ + public List getCell() { + if (cell == null) { + cell = new ArrayList(); + } + return this.cell; + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="text" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TextType" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="colSpan" type="{http://www.w3.org/2001/XMLSchema}integer" default="1" />
+     *       <attribute name="rowSpan" type="{http://www.w3.org/2001/XMLSchema}integer" default="1" />
+     *       <attribute name="align" default="Top">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="Top"/>
+     *             <enumeration value="Center"/>
+     *             <enumeration value="Bottom"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="picture" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *       <attribute name="leftBorder" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TableCellBorderType" default="Black" />
+     *       <attribute name="topBorder" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TableCellBorderType" default="Black" />
+     *       <attribute name="rightBorder" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TableCellBorderType" default="Black" />
+     *       <attribute name="bottomBorder" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}TableCellBorderType" default="Black" />
+     *       <attribute name="width" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *       <attribute name="height" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "text" + }) + public static class Cell { + + protected List text; + @XmlAttribute(name = "colSpan") + protected BigInteger colSpan; + @XmlAttribute(name = "rowSpan") + protected BigInteger rowSpan; + @XmlAttribute(name = "align") + protected String align; + @XmlAttribute(name = "picture") + protected Boolean picture; + @XmlAttribute(name = "leftBorder") + protected TableCellBorderType leftBorder; + @XmlAttribute(name = "topBorder") + protected TableCellBorderType topBorder; + @XmlAttribute(name = "rightBorder") + protected TableCellBorderType rightBorder; + @XmlAttribute(name = "bottomBorder") + protected TableCellBorderType bottomBorder; + @XmlAttribute(name = "width", required = true) + protected BigInteger width; + @XmlAttribute(name = "height", required = true) + protected BigInteger height; + + /** + * Gets the value of the text property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the text property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getText().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TextType } + * + * + */ + public List getText() { + if (text == null) { + text = new ArrayList(); + } + return this.text; + } + + /** + * Ruft den Wert der colSpan-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getColSpan() { + if (colSpan == null) { + return new BigInteger("1"); + } else { + return colSpan; + } + } + + /** + * Legt den Wert der colSpan-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setColSpan(BigInteger value) { + this.colSpan = value; + } + + /** + * Ruft den Wert der rowSpan-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getRowSpan() { + if (rowSpan == null) { + return new BigInteger("1"); + } else { + return rowSpan; + } + } + + /** + * Legt den Wert der rowSpan-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setRowSpan(BigInteger value) { + this.rowSpan = value; + } + + /** + * Ruft den Wert der align-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlign() { + if (align == null) { + return "Top"; + } else { + return align; + } + } + + /** + * Legt den Wert der align-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlign(String value) { + this.align = value; + } + + /** + * Ruft den Wert der picture-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPicture() { + if (picture == null) { + return false; + } else { + return picture; + } + } + + /** + * Legt den Wert der picture-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPicture(Boolean value) { + this.picture = value; + } + + /** + * Ruft den Wert der leftBorder-Eigenschaft ab. + * + * @return + * possible object is + * {@link TableCellBorderType } + * + */ + public TableCellBorderType getLeftBorder() { + if (leftBorder == null) { + return TableCellBorderType.BLACK; + } else { + return leftBorder; + } + } + + /** + * Legt den Wert der leftBorder-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link TableCellBorderType } + * + */ + public void setLeftBorder(TableCellBorderType value) { + this.leftBorder = value; + } + + /** + * Ruft den Wert der topBorder-Eigenschaft ab. + * + * @return + * possible object is + * {@link TableCellBorderType } + * + */ + public TableCellBorderType getTopBorder() { + if (topBorder == null) { + return TableCellBorderType.BLACK; + } else { + return topBorder; + } + } + + /** + * Legt den Wert der topBorder-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link TableCellBorderType } + * + */ + public void setTopBorder(TableCellBorderType value) { + this.topBorder = value; + } + + /** + * Ruft den Wert der rightBorder-Eigenschaft ab. + * + * @return + * possible object is + * {@link TableCellBorderType } + * + */ + public TableCellBorderType getRightBorder() { + if (rightBorder == null) { + return TableCellBorderType.BLACK; + } else { + return rightBorder; + } + } + + /** + * Legt den Wert der rightBorder-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link TableCellBorderType } + * + */ + public void setRightBorder(TableCellBorderType value) { + this.rightBorder = value; + } + + /** + * Ruft den Wert der bottomBorder-Eigenschaft ab. + * + * @return + * possible object is + * {@link TableCellBorderType } + * + */ + public TableCellBorderType getBottomBorder() { + if (bottomBorder == null) { + return TableCellBorderType.BLACK; + } else { + return bottomBorder; + } + } + + /** + * Legt den Wert der bottomBorder-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link TableCellBorderType } + * + */ + public void setBottomBorder(TableCellBorderType value) { + this.bottomBorder = value; + } + + /** + * Ruft den Wert der width-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getWidth() { + return width; + } + + /** + * Legt den Wert der width-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setWidth(BigInteger value) { + this.width = value; + } + + /** + * Ruft den Wert der height-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getHeight() { + return height; + } + + /** + * Legt den Wert der height-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setHeight(BigInteger value) { + this.height = value; + } + + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/TableType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/TableType.java new file mode 100644 index 0000000..e32dc7d --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/TableType.java @@ -0,0 +1,355 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für TableType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="TableType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="caption" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}CaptionType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="tableCell" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="text" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}PageElementType" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="topPos" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                 <attribute name="bottomPos" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                 <attribute name="leftPos" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                 <attribute name="rightPos" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                 <attribute name="VerticalAlignment" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="top"/>
+ *                       <enumeration value="center"/>
+ *                       <enumeration value="bottom"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TableType", propOrder = { + "caption", + "tableCell" +}) +public class TableType { + + protected List caption; + protected List tableCell; + @XmlAttribute(name = "id", required = true) + protected String id; + + /** + * Gets the value of the caption property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the caption property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCaption().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CaptionType } + * + * + */ + public List getCaption() { + if (caption == null) { + caption = new ArrayList(); + } + return this.caption; + } + + /** + * Gets the value of the tableCell property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tableCell property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTableCell().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TableType.TableCell } + * + * + */ + public List getTableCell() { + if (tableCell == null) { + tableCell = new ArrayList(); + } + return this.tableCell; + } + + /** + * Ruft den Wert der id-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Legt den Wert der id-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="text" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}PageElementType" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="topPos" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *       <attribute name="bottomPos" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *       <attribute name="leftPos" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *       <attribute name="rightPos" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *       <attribute name="VerticalAlignment" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="top"/>
+     *             <enumeration value="center"/>
+     *             <enumeration value="bottom"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "text" + }) + public static class TableCell { + + protected PageElementType text; + @XmlAttribute(name = "topPos", required = true) + protected BigInteger topPos; + @XmlAttribute(name = "bottomPos", required = true) + protected BigInteger bottomPos; + @XmlAttribute(name = "leftPos", required = true) + protected BigInteger leftPos; + @XmlAttribute(name = "rightPos", required = true) + protected BigInteger rightPos; + @XmlAttribute(name = "VerticalAlignment", required = true) + protected String verticalAlignment; + + /** + * Ruft den Wert der text-Eigenschaft ab. + * + * @return + * possible object is + * {@link PageElementType } + * + */ + public PageElementType getText() { + return text; + } + + /** + * Legt den Wert der text-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link PageElementType } + * + */ + public void setText(PageElementType value) { + this.text = value; + } + + /** + * Ruft den Wert der topPos-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getTopPos() { + return topPos; + } + + /** + * Legt den Wert der topPos-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setTopPos(BigInteger value) { + this.topPos = value; + } + + /** + * Ruft den Wert der bottomPos-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getBottomPos() { + return bottomPos; + } + + /** + * Legt den Wert der bottomPos-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setBottomPos(BigInteger value) { + this.bottomPos = value; + } + + /** + * Ruft den Wert der leftPos-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getLeftPos() { + return leftPos; + } + + /** + * Legt den Wert der leftPos-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setLeftPos(BigInteger value) { + this.leftPos = value; + } + + /** + * Ruft den Wert der rightPos-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getRightPos() { + return rightPos; + } + + /** + * Legt den Wert der rightPos-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setRightPos(BigInteger value) { + this.rightPos = value; + } + + /** + * Ruft den Wert der verticalAlignment-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerticalAlignment() { + return verticalAlignment; + } + + /** + * Legt den Wert der verticalAlignment-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerticalAlignment(String value) { + this.verticalAlignment = value; + } + + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/TextStreamType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/TextStreamType.java new file mode 100644 index 0000000..c723885 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/TextStreamType.java @@ -0,0 +1,378 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für TextStreamType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="TextStreamType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mainText" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="rtl" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *                 <attribute name="columnCount" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="elemId" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="role" default="text">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="garb"/>
+ *             <enumeration value="text"/>
+ *             <enumeration value="footnote"/>
+ *             <enumeration value="incut"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="vertCjk" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="beginPage" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="endPage" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TextStreamType", propOrder = { + "mainText", + "elemId" +}) +public class TextStreamType { + + protected TextStreamType.MainText mainText; + protected List elemId; + @XmlAttribute(name = "role") + protected String role; + @XmlAttribute(name = "vertCjk") + protected Boolean vertCjk; + @XmlAttribute(name = "beginPage", required = true) + protected BigInteger beginPage; + @XmlAttribute(name = "endPage") + protected BigInteger endPage; + + /** + * Ruft den Wert der mainText-Eigenschaft ab. + * + * @return + * possible object is + * {@link TextStreamType.MainText } + * + */ + public TextStreamType.MainText getMainText() { + return mainText; + } + + /** + * Legt den Wert der mainText-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link TextStreamType.MainText } + * + */ + public void setMainText(TextStreamType.MainText value) { + this.mainText = value; + } + + /** + * Gets the value of the elemId property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the elemId property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getElemId().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TextStreamType.ElemId } + * + * + */ + public List getElemId() { + if (elemId == null) { + elemId = new ArrayList(); + } + return this.elemId; + } + + /** + * Ruft den Wert der role-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + if (role == null) { + return "text"; + } else { + return role; + } + } + + /** + * Legt den Wert der role-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Ruft den Wert der vertCjk-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isVertCjk() { + if (vertCjk == null) { + return false; + } else { + return vertCjk; + } + } + + /** + * Legt den Wert der vertCjk-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVertCjk(Boolean value) { + this.vertCjk = value; + } + + /** + * Ruft den Wert der beginPage-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getBeginPage() { + return beginPage; + } + + /** + * Legt den Wert der beginPage-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setBeginPage(BigInteger value) { + this.beginPage = value; + } + + /** + * Ruft den Wert der endPage-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getEndPage() { + return endPage; + } + + /** + * Legt den Wert der endPage-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setEndPage(BigInteger value) { + this.endPage = value; + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class ElemId { + + @XmlAttribute(name = "id", required = true) + protected String id; + + /** + * Ruft den Wert der id-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Legt den Wert der id-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="rtl" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *       <attribute name="columnCount" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class MainText { + + @XmlAttribute(name = "rtl") + protected Boolean rtl; + @XmlAttribute(name = "columnCount", required = true) + protected BigInteger columnCount; + + /** + * Ruft den Wert der rtl-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRtl() { + if (rtl == null) { + return false; + } else { + return rtl; + } + } + + /** + * Legt den Wert der rtl-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRtl(Boolean value) { + this.rtl = value; + } + + /** + * Ruft den Wert der columnCount-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getColumnCount() { + return columnCount; + } + + /** + * Legt den Wert der columnCount-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setColumnCount(BigInteger value) { + this.columnCount = value; + } + + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/TextType.java b/src/main/java/de/sub/goettingen/arendt/input/generated/TextType.java new file mode 100644 index 0000000..02d7ca7 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/TextType.java @@ -0,0 +1,236 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für TextType complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="TextType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="par" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}ParagraphType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="orientation" default="Normal">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Normal"/>
+ *             <enumeration value="RotatedClockwise"/>
+ *             <enumeration value="RotatedUpsidedown"/>
+ *             <enumeration value="RotatedCounterclockwise"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="backgroundColor" type="{http://www.w3.org/2001/XMLSchema}integer" default="16777215" />
+ *       <attribute name="mirrored" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="inverted" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TextType", propOrder = { + "par" +}) +public class TextType { + + protected List par; + @XmlAttribute(name = "id") + protected String id; + @XmlAttribute(name = "orientation") + protected String orientation; + @XmlAttribute(name = "backgroundColor") + protected BigInteger backgroundColor; + @XmlAttribute(name = "mirrored") + protected Boolean mirrored; + @XmlAttribute(name = "inverted") + protected Boolean inverted; + + /** + * Gets the value of the par property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the par property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPar().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ParagraphType } + * + * + */ + public List getPar() { + if (par == null) { + par = new ArrayList(); + } + return this.par; + } + + /** + * Ruft den Wert der id-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Legt den Wert der id-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Ruft den Wert der orientation-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOrientation() { + if (orientation == null) { + return "Normal"; + } else { + return orientation; + } + } + + /** + * Legt den Wert der orientation-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOrientation(String value) { + this.orientation = value; + } + + /** + * Ruft den Wert der backgroundColor-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getBackgroundColor() { + if (backgroundColor == null) { + return new BigInteger("16777215"); + } else { + return backgroundColor; + } + } + + /** + * Legt den Wert der backgroundColor-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setBackgroundColor(BigInteger value) { + this.backgroundColor = value; + } + + /** + * Ruft den Wert der mirrored-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMirrored() { + if (mirrored == null) { + return false; + } else { + return mirrored; + } + } + + /** + * Legt den Wert der mirrored-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMirrored(Boolean value) { + this.mirrored = value; + } + + /** + * Ruft den Wert der inverted-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isInverted() { + if (inverted == null) { + return false; + } else { + return inverted; + } + } + + /** + * Legt den Wert der inverted-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInverted(Boolean value) { + this.inverted = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/WordRecognitionVariant.java b/src/main/java/de/sub/goettingen/arendt/input/generated/WordRecognitionVariant.java new file mode 100644 index 0000000..d81a7c0 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/WordRecognitionVariant.java @@ -0,0 +1,311 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + + +package de.sub.goettingen.arendt.input.generated; + +import java.io.Serializable; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für WordRecognitionVariant complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType name="WordRecognitionVariant">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="variantText">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="charParams" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}CharParamsType" maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="wordFromDictionary" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="wordNormal" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="wordNumeric" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="wordIdentifier" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="wordPenalty" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="meanStrokeWidth" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "WordRecognitionVariant", propOrder = { + "variantText" +}) +public class WordRecognitionVariant { + + @XmlElement(required = true) + protected WordRecognitionVariant.VariantText variantText; + @XmlAttribute(name = "wordFromDictionary") + protected Boolean wordFromDictionary; + @XmlAttribute(name = "wordNormal") + protected Boolean wordNormal; + @XmlAttribute(name = "wordNumeric") + protected Boolean wordNumeric; + @XmlAttribute(name = "wordIdentifier") + protected Boolean wordIdentifier; + @XmlAttribute(name = "wordPenalty") + protected BigInteger wordPenalty; + @XmlAttribute(name = "meanStrokeWidth") + protected BigInteger meanStrokeWidth; + + /** + * Ruft den Wert der variantText-Eigenschaft ab. + * + * @return + * possible object is + * {@link WordRecognitionVariant.VariantText } + * + */ + public WordRecognitionVariant.VariantText getVariantText() { + return variantText; + } + + /** + * Legt den Wert der variantText-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link WordRecognitionVariant.VariantText } + * + */ + public void setVariantText(WordRecognitionVariant.VariantText value) { + this.variantText = value; + } + + /** + * Ruft den Wert der wordFromDictionary-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isWordFromDictionary() { + return wordFromDictionary; + } + + /** + * Legt den Wert der wordFromDictionary-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWordFromDictionary(Boolean value) { + this.wordFromDictionary = value; + } + + /** + * Ruft den Wert der wordNormal-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isWordNormal() { + return wordNormal; + } + + /** + * Legt den Wert der wordNormal-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWordNormal(Boolean value) { + this.wordNormal = value; + } + + /** + * Ruft den Wert der wordNumeric-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isWordNumeric() { + return wordNumeric; + } + + /** + * Legt den Wert der wordNumeric-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWordNumeric(Boolean value) { + this.wordNumeric = value; + } + + /** + * Ruft den Wert der wordIdentifier-Eigenschaft ab. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isWordIdentifier() { + return wordIdentifier; + } + + /** + * Legt den Wert der wordIdentifier-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWordIdentifier(Boolean value) { + this.wordIdentifier = value; + } + + /** + * Ruft den Wert der wordPenalty-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getWordPenalty() { + return wordPenalty; + } + + /** + * Legt den Wert der wordPenalty-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setWordPenalty(BigInteger value) { + this.wordPenalty = value; + } + + /** + * Ruft den Wert der meanStrokeWidth-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMeanStrokeWidth() { + return meanStrokeWidth; + } + + /** + * Legt den Wert der meanStrokeWidth-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMeanStrokeWidth(BigInteger value) { + this.meanStrokeWidth = value; + } + + + /** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="charParams" type="{http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml}CharParamsType" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "content" + }) + public static class VariantText { + + @XmlElementRef(name = "charParams", namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", type = JAXBElement.class, required = false) + @XmlMixed + protected List content; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getContent().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * {@link JAXBElement }{@code <}{@link CharParamsType }{@code >} + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/input/generated/package-info.java b/src/main/java/de/sub/goettingen/arendt/input/generated/package-info.java new file mode 100644 index 0000000..6af54ee --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/input/generated/package-info.java @@ -0,0 +1,9 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.08 um 11:15:23 AM CET +// + +@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package de.sub.goettingen.arendt.input.generated; diff --git a/src/main/java/de/sub/goettingen/arendt/ocrmapping/Cli.java b/src/main/java/de/sub/goettingen/arendt/ocrmapping/Cli.java new file mode 100644 index 0000000..1133072 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/ocrmapping/Cli.java @@ -0,0 +1,232 @@ +package de.sub.goettingen.arendt.ocrmapping; + +/* + * 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. + * + */ + +/** + * This class is responsible for parsing the command line options, + * traversing through directories and calling the conversion methods. + * + * @author Johannes Biermann, SUB Göttingen + * @version 1.0 + */ +import java.io.IOException; +import java.nio.file.FileVisitResult; +import java.nio.file.FileVisitor; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.nio.file.attribute.BasicFileAttributes; + +import com.beust.jcommander.JCommander; +import com.beust.jcommander.Parameter; +import com.beust.jcommander.ParameterException; +import com.beust.jcommander.Parameters; + +import de.sub.goettingen.arendt.output.generated.TEI; + + +public class Cli { + + @Parameters(commandDescription = "Process a single XML File") + public static class CommandSingle { + @Parameter(names = { "-i", "--input" }, description = "The source XML OCR File from ABBYY", required = true) + private String inputFile = null; + + @Parameter(names = { "-o", "--output" }, description = "The path and filename to the generated TEI output file", required = true) + private String outputFile = null; + + @Parameter(names = { "-lb", "--linebreak" }, description = "Add line breaks to p elements", required = false, arity = 1) + private boolean lineBreak = true; + + @Parameter(names = { "-h", "--help" }, description = "print this message", help = true) + private boolean help; + } + + @Parameters(commandDescription = "Process recursively a whole directory") + public static class CommandDir { + @Parameter(names = { "-d", "--dir" }, description = "The start path of the directory for processing the files", required = true) + private String path = null; + + @Parameter(names = { "-lb", "--linebreak" }, description = "Add line breaks to p elements", required = false, arity = 1) + private boolean lineBreak = true; + + @Parameter(names = { "-s", "--specific" }, description = "Do very project specific directory scanning (outside of this project do NOT set this option to true)", required = false) + private boolean specificWalk = false; + + @Parameter(names = { "-p", "--pattern" }, description = "The regex pattern for matching the OCR xml files", required = false) + private String pattern = "ocr_(.*).xml"; + + @Parameter(names = { "-h", "--help" }, description = "print this message", help = true) + private boolean help; + } + + static CommandSingle commandSingle; + static CommandDir commandDir; + private int cntr; + + + public static void main(String[] args) { + Cli main = new Cli(); + commandSingle = new CommandSingle(); + commandDir = new CommandDir(); + + + JCommander jc = JCommander.newBuilder() + .addObject(main) + .addCommand("file", commandSingle) + .addCommand("dir", commandDir) + .build(); + jc.setProgramName("Finereader XML to basic TEI converter"); + try { + jc.parse(args); + } catch (ParameterException e) { + jc.usage(); + System.out.println(e.getMessage()); + System.out.println("Parameter missing or invalid, cannot start."); + System.exit(-1); + } + + if (jc.getParsedCommand() != null) { + if (jc.getParsedCommand().equals("single")) { + main.runSingle(); + }else if (jc.getParsedCommand().equals("dir")) { + main.rundDirectory(); + } + }else { + jc.usage(); + System.exit(-1); + } + + } + + private void runSingle() { + long start = System.currentTimeMillis(); + System.out.println("Start to process Input File " + Cli.commandSingle.inputFile + " into " + Cli.commandSingle.outputFile); + + try { + TEI tei = ReadXML.convert2Tei(Cli.commandSingle.inputFile, Cli.commandSingle.lineBreak); + boolean success = OutputXML.writeXMLOutput(tei, Cli.commandSingle.outputFile); + if (success == false) { + System.out.println("Failure on writing XML output"); + System.exit(-1); + } + + } catch (Exception e) { + System.out.println("Failure on processing " + Cli.commandSingle.inputFile ); + e.printStackTrace(); + System.exit(-1); + } + + long duration = (System.currentTimeMillis()) - start; + + System.out.println("Finished processing. Duration: " + duration +" ms"); + + } + + private void rundDirectory() { + Path start = Paths.get(Cli.commandDir.path); + + try { + Files.walkFileTree(start, new FileVisitor() { + + public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { + return FileVisitResult.CONTINUE; + } + + public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { + + if (file.getFileName().toString().matches(Cli.commandDir.pattern)) { + Cli.this.cntr++; + long start = System.currentTimeMillis(); + System.out.println("file found at path: " + file.toAbsolutePath()); + System.out.println("\tStart to process Input File " + file.getFileName().toString() + " into TEI"); + String teiFilePath = null; + + // project specific Filename and path setting + // dir is structured like + // IV-NUMBER/IV-NUMBER_tif <- scans + // IV-NUMBER/ocr <- ocr data + // IV-NUMBER/IV-NUMBER_xml <- input data + // create DIR IV-NUMBER/ocr/IV-NUMBER_TEI + // with file IV-NUMBER_TEI_Originalfilename.xml + if (Cli.commandDir.specificWalk) { + String newTEIDirname = file.getParent().getFileName().toString().replace("_xml", "_TEI"); + Path newTEIDir= file.getParent().resolveSibling(newTEIDirname); + + String teiFilename = newTEIDirname +"_"+ file.getFileName().toString().replace("ocr_", ""); + teiFilePath = Paths.get(newTEIDir.toString(), teiFilename).toString(); + + if (!Files.exists(newTEIDir)) { + try { + Files.createDirectory(newTEIDir); + System.out.println("\tCreated new output directory "+newTEIDir.toString()); + } catch (IOException e) { + System.err.println("\tFailed to create TEI output directory"); + System.err.println(e); + return FileVisitResult.CONTINUE; + } + } + }else { + // generic dir traverse, just append TEI and use the original file name + // and save it into the same dir + String teiFilename = "TEI-"+file.getFileName().toString(); + teiFilePath = Paths.get(file.getParent().toString(), teiFilename).toString(); + } + + + try { + TEI tei = ReadXML.convert2Tei(file.toAbsolutePath().toString(), true); + + boolean success = OutputXML.writeXMLOutput(tei, teiFilePath); + if (success == false) { + System.out.println("Failure on writing XML output"); + return FileVisitResult.CONTINUE; + } + + } catch (Exception e) { + System.out.println("\tFailure on processing " + file.getFileName().toString()); + e.printStackTrace(); + return FileVisitResult.CONTINUE; + } + + long duration = (System.currentTimeMillis()) - start; + System.out.println("\tTEI file is on " + teiFilePath.toString()); + + System.out.println("\tFinished processing. Duration: " + duration + " ms"); + + return FileVisitResult.CONTINUE; + } + + return FileVisitResult.CONTINUE; + } + + public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException { + System.out.println("visit file failed: " + file); + return FileVisitResult.CONTINUE; + } + + public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException { + return FileVisitResult.CONTINUE; + } + }); + } catch (IOException e) { + e.printStackTrace(); + System.exit(-1); + } + System.out.println("Finished, processed " + cntr + " files"); + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/ocrmapping/OutputXML.java b/src/main/java/de/sub/goettingen/arendt/ocrmapping/OutputXML.java new file mode 100644 index 0000000..958032c --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/ocrmapping/OutputXML.java @@ -0,0 +1,170 @@ +package de.sub.goettingen.arendt.ocrmapping; +import java.io.File; +import java.math.BigInteger; +import java.text.SimpleDateFormat; + +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBException; +import javax.xml.bind.Marshaller; + +import de.sub.goettingen.arendt.output.generated.Creation; +import de.sub.goettingen.arendt.output.generated.EditionStmt; +import de.sub.goettingen.arendt.output.generated.EditorialDecl; +import de.sub.goettingen.arendt.output.generated.EncodingDesc; +import de.sub.goettingen.arendt.output.generated.FileDesc; +import de.sub.goettingen.arendt.output.generated.LangUsage; +import de.sub.goettingen.arendt.output.generated.Language; +import de.sub.goettingen.arendt.output.generated.P; +import de.sub.goettingen.arendt.output.generated.ProfileDesc; +import de.sub.goettingen.arendt.output.generated.ProjectDesc; +import de.sub.goettingen.arendt.output.generated.PublicationStmt; +import de.sub.goettingen.arendt.output.generated.RefsDecl; +import de.sub.goettingen.arendt.output.generated.SourceDesc; +import de.sub.goettingen.arendt.output.generated.TEI; +import de.sub.goettingen.arendt.output.generated.TeiHeader; +import de.sub.goettingen.arendt.output.generated.TitleStmt; + +/* + * 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. + * + */ + +/** + * Here we offer methods to write a default TEI header into the output XML + * and do the XML marshalling. + * + * @author Johannes Biermann, SUB Göttingen + * @version 1.0 + */ +public class OutputXML { + + + /** + * writes the TEI XML head element + * it is not very nice, JAXB does not create builders + * a plugin like https://github.com/mklemm/jaxb2-rich-contract-plugin + * would be nicer, but for the main contents we don't have that many nested elements + * like in the TEI header + * @return + */ + public static TEI getTEIHeader(String mainLang) { + TEI tei = new TEI(); + + if (mainLang != null) + tei.setLang(mainLang); + TeiHeader teiHeader = new TeiHeader(); + + FileDesc fileDesc = new FileDesc(); + TitleStmt titleStmt = new TitleStmt(); + titleStmt.setTitle("Automatic OCR transformation, please change title"); + fileDesc.setTitleStmt(titleStmt); + EditionStmt editionStmt = new EditionStmt(); + editionStmt.setP(new P()); + fileDesc.setEditionStmt(editionStmt); + + fileDesc.setExtent(new BigInteger("0")); + PublicationStmt publicationStmt = new PublicationStmt(); + publicationStmt.setP(new P()); + fileDesc.setPublicationStmt(publicationStmt); + SourceDesc sourceDesc = new SourceDesc(); + sourceDesc.setP(new P()); + fileDesc.setSourceDesc(sourceDesc); + teiHeader.setFileDesc(fileDesc); + + EncodingDesc encodingDesc = new EncodingDesc(); + EditorialDecl editorialDecl = new EditorialDecl(); + editorialDecl.setP(new P()); + encodingDesc.setEditorialDecl(editorialDecl); + ProjectDesc projectDesc = new ProjectDesc(); + projectDesc.setP(new P()); + encodingDesc.setProjectDesc(projectDesc); + RefsDecl refsDecl = new RefsDecl(); + refsDecl.setP(new P()); + encodingDesc.setRefsDecl(refsDecl); + teiHeader.setEncodingDesc(encodingDesc); + + ProfileDesc profileDesc = new ProfileDesc(); + Creation creation = new Creation(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + creation.setDate(sdf.format(new java.util.Date())); + profileDesc.setCreation(creation); + LangUsage langUsage = new LangUsage(); + Language langEn = new Language(); + langEn.setIdent("en"); + langEn.setContent("English"); + Language langDe = new Language(); + langDe.setIdent("de"); + langDe.setContent("German"); + Language langfr = new Language(); + langfr.setIdent("fr"); + langfr.setContent("French"); + Language langla = new Language(); + langla.setIdent("la"); + langla.setContent("Latin"); + Language langgrc = new Language(); + langgrc.setIdent("grc"); + langgrc.setContent("Greek (ancient), original letters"); + Language langgrca = new Language(); + langgrca.setIdent("grc-la"); + langgrca.setContent("Greek (ancient), written in Latin script"); + langUsage.getLanguage().add(langEn); + langUsage.getLanguage().add(langDe); + langUsage.getLanguage().add(langfr); + langUsage.getLanguage().add(langla); + langUsage.getLanguage().add(langgrc); + langUsage.getLanguage().add(langgrca); + profileDesc.setLangUsage(langUsage); + teiHeader.setProfileDesc(profileDesc); + + tei.setTeiHeader(teiHeader); + + return tei; + } + + public static boolean writeXMLOutput(TEI tei, String outputfilename) { + try { + File outputFile = new File(outputfilename); + JAXBContext jaxbContext = JAXBContext.newInstance(TEI.class); + Marshaller marshaller = jaxbContext.createMarshaller(); + marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); + // get rid of the standalone=yes thing in the xml header + marshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE); + marshaller.setProperty("com.sun.xml.internal.bind.xmlHeaders", ""); + + marshaller.marshal(tei, outputFile); + + return true; + } catch (JAXBException e) { + e.printStackTrace(); + } + return false; + + } + + public static void writeXMLOutputToStdout(TEI tei) { + try { + JAXBContext jaxbContext = JAXBContext.newInstance(TEI.class); + Marshaller marshaller = jaxbContext.createMarshaller(); + marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); + // get rid of the standalone=yes thing in the xml header + marshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE); + marshaller.setProperty("com.sun.xml.internal.bind.xmlHeaders", ""); + + marshaller.marshal(tei, System.out); + + } catch (JAXBException e) { + e.printStackTrace(); + } + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/ocrmapping/ReadXML.java b/src/main/java/de/sub/goettingen/arendt/ocrmapping/ReadXML.java new file mode 100644 index 0000000..a26053d --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/ocrmapping/ReadXML.java @@ -0,0 +1,297 @@ +package de.sub.goettingen.arendt.ocrmapping; + +import java.io.File; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.Unmarshaller; + +import de.sub.goettingen.arendt.input.generated.BlockType; +import de.sub.goettingen.arendt.input.generated.CharParamsType; +import de.sub.goettingen.arendt.input.generated.Document; +import de.sub.goettingen.arendt.input.generated.Document.Page; +import de.sub.goettingen.arendt.input.generated.FormattingType; +import de.sub.goettingen.arendt.input.generated.LineType; +import de.sub.goettingen.arendt.input.generated.ParagraphType; +import de.sub.goettingen.arendt.input.generated.TextType; +import de.sub.goettingen.arendt.output.generated.Body; +import de.sub.goettingen.arendt.output.generated.Hi; +import de.sub.goettingen.arendt.output.generated.P; +import de.sub.goettingen.arendt.output.generated.Pb; +import de.sub.goettingen.arendt.output.generated.TEI; +import de.sub.goettingen.arendt.output.generated.Text; +import de.sub.goettingen.arendt.output.generated.Unclear; + +/* + * 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. + * + */ + +/** + * Here we read the XML input and map it to the TEI XML + * + * @author Johannes Biermann, SUB Göttingen + * @version 1.0 + */ +public class ReadXML { + + /** + * Just for local tests within the IDE without using the Cli interface + */ + public static void main(String args[]) throws Exception { + + TEI tei = convert2Tei("/tmp/ocr_1504081850380.xml", true); + + OutputXML.writeXMLOutputToStdout(tei); + } + + /** + * + * @param filepath + * @return + */ + private static Document unMarshallInputFile(String filepath) { + File file = new File(filepath); + Document inputDocument = null; + try { + JAXBContext jaxbContext = JAXBContext.newInstance(Document.class); + Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller(); + inputDocument = (Document) jaxbUnmarshaller.unmarshal(file); + }catch (Exception e){ + System.out.println("Problem parsing input file"); + e.printStackTrace(); + System.exit(-1); + } + + return inputDocument; + } + + /** + * This is the main conversion method. It loops around the instantiated beans from the input + * XML to java objects. + * @param inputFilePath the path to the input XML document + * @param lineBreakToP if newlines should be added to the p elements, only for better readability of the p elements + * @return + * @throws Exception + */ + public static TEI convert2Tei (String inputFilePath, boolean lineBreakToP) throws Exception { + + Document inputDocument = unMarshallInputFile(inputFilePath); + + // this class represents the output XML + TEI oTei = OutputXML.getTEIHeader(null); + + Text oText = new Text(); + //oText.setLang("en"); + + // tei body + Body oBody = new Body(); + + // the XML structure + // here https://abbyy.technology/en:features:ocr:xml + // and here https://ocrsdk.com/documentation/specifications/xml-scheme-recognized-document/ + + int pageNumber = 1; + for (Page iPage : inputDocument.getPage()) { + // we are at the page level here + + Pb oPb = new Pb(); + // if the images has been correctly labeled like 000001.tif etc + // this should exactly represent that file. We can't get the original filename from the XML + oPb.setN(String.format("%06d", pageNumber)); + oBody.getPOrAbOrPb().add(oPb); + + // the XML has Text, Table, Picture, Barcode, Separator, SeparatorsBox + // picture are just coordinates, for TEI we could insert a blank Figure for later editing + // Separator is just like a bigger blank thing + // currently only text blocks are supported + for (BlockType iBlockType : iPage.getBlock()) { + + if (iBlockType.getBlockType().equalsIgnoreCase("Text")) { + // the text tag just surrounds the elements, no mapping needed here, there is one element per block + for (TextType iTextType : iBlockType.getText()) { + + // now we are at the paragraph level + for (ParagraphType iParagraphType : iTextType.getPar()) { + // start tei output p + List oP = new ArrayList(); + + // the line elements marks a line on the original document + String outputString = ""; + for (LineType iLineType : iParagraphType.getLine()) { + + // then follows 1-N formating types, so it spans + // either the entire line , single characters or whole words, depending on the formating + // used on the original text + for (FormattingType iFormatingType : iLineType.getFormatting()) { + + // see if there is a special formating + Hi oHi = handleFormatingInstruction(iFormatingType); + + // now each individual character (charParams) is encoded in XML, remove this + for (Serializable sChar : iFormatingType.getContent()) { + // since it does just return a list of serializable objects, we need + // to see if it is an JAXB element and cast it to an JAXBElement, the list + // contains also newlines we need to ignore + if (sChar.getClass().getTypeName() != "javax.xml.bind.JAXBElement") + continue; + + JAXBElement e = (JAXBElement) sChar; + // now we need to cast the generic JAXBElement into the XML Representation of CharParamsType + // according to the XSD this is the only type + // there is some word type mentioning on the graph from the documentation, but no + // of the xml files has this type + CharParamsType iCharParamsType = (CharParamsType) e.getValue(); + // each charParams contains only one element, get first item of the list + String iCharacter = (String) iCharParamsType.getContent().get(0); + + // Finereader encodes the linebreaks withing words with ¬, remove this char + // we don't need the output line by line in TEI + if (iCharacter.equals("¬")) { + continue; + }else if (iCharParamsType.isSuspicious()) { + // the unclear message from OCR is per character + // since it is an inner type, just wrap the character with the XML + // unclear element and continue the loop + Unclear oUnclear = new Unclear(); + oUnclear.setReason("illegible"); + oUnclear.setCert("unknown"); + oUnclear.setContent(iCharacter); + + if (oHi != null) { + // if we have a special formating, just add the unclear to the formating + if (outputString.length() > 0) { + oHi.getContent().add(outputString); + outputString = ""; + } + oHi.getContent().add(oUnclear); + }else { + if (outputString.length() > 0) { + oP.add(outputString); + outputString = ""; + } + oP.add(oUnclear); + } + continue; + + }else{ + outputString += iCharacter; + } + } + + // special formating instruction + if (oHi != null) { + oHi.getContent().add((outputString)); + oP.add(oHi); + outputString = ""; + } + + } + // for better readability of the output add a line break + if (outputString.length() > 0 && lineBreakToP) + outputString += "\n"; + } + // add any left over text to the P element (e.g. just plain format) + if (outputString.length() > 0) + oP.add(outputString); + + // add the P element to the TEI + oBody.getPOrAbOrPb().add(getP(oP)); + + } + + + } + + } + + + }// end blocktype text + pageNumber++; + + } + + oText.setBody(oBody); + oTei.setText(oText); + + return oTei; + + } + + /** + * See if we need to wrap the output with special formating instruction or not + * @param formating + * @return + */ + private static Hi handleFormatingInstruction(FormattingType formating) { + Hi oHi = new Hi(); + if (formating.isItalic() ) { + oHi.setRend("italic"); + }else if (formating.isBold()) { + oHi.setRend("bold"); + } + else if (formating.isUnderline()) { + oHi.setRend("underline"); + }else if (formating.isStrikeout()) { + oHi.setRend("strikethrough"); + //}else if (formating.isSubscript()) { + // oHi.setRend("subscript"); // we dont have this in our output xsd defined + }else if (formating.isSuperscript()) { + oHi.setRend("super"); + }else { + return null; + } + + return oHi; + + } + + // this is a really dirty hack. If you add mixed content elements in JAXB + // and two following elements are string[1] and string[2], it inserts a blank between + // the string. If another xml element follows a string, there is no whitespace + // -> so simplify the list by combining all text entries before any other xml + // element is started + private static P getP(List list) { + + P p = new P(); + + String content = ""; + boolean wasString = false; + + for (int i=0; i 0) { + p.getContent().add(content); + } + } + + + return p; + } + + +} diff --git a/src/main/java/de/sub/goettingen/arendt/ocrmapping/package-info.java b/src/main/java/de/sub/goettingen/arendt/ocrmapping/package-info.java new file mode 100644 index 0000000..a571ba6 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/ocrmapping/package-info.java @@ -0,0 +1,24 @@ +/* + * 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. + * + */ + +/** + * This package is responsible for converting the finereader xmk + * to a simple TEI. It uses the generated classes from JAXB. + * + * @author Johannes Biermann, SUB Göttingen + * @version 1.0 + */ + +package de.sub.goettingen.arendt.ocrmapping; \ No newline at end of file diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/Ab.java b/src/main/java/de/sub/goettingen/arendt/output/generated/Ab.java new file mode 100644 index 0000000..f527717 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/Ab.java @@ -0,0 +1,120 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element ref="{http://www.tei-c.org/ns/1.0}hi"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}unclear"/>
+ *       </choice>
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}NCName" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "ab") +public class Ab { + + @XmlElementRefs({ + @XmlElementRef(name = "unclear", namespace = "http://www.tei-c.org/ns/1.0", type = Unclear.class, required = false), + @XmlElementRef(name = "hi", namespace = "http://www.tei-c.org/ns/1.0", type = Hi.class, required = false) + }) + @XmlMixed + protected List content; + @XmlAttribute(name = "type") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NCName") + protected String type; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Hi } + * {@link String } + * {@link Unclear } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + /** + * Ruft den Wert der type-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Legt den Wert der type-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/Body.java b/src/main/java/de/sub/goettingen/arendt/output/generated/Body.java new file mode 100644 index 0000000..301b561 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/Body.java @@ -0,0 +1,87 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element ref="{http://www.tei-c.org/ns/1.0}p"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}ab"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}pb"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "pOrAbOrPb" +}) +@XmlRootElement(name = "body") +public class Body { + + @XmlElements({ + @XmlElement(name = "p", type = P.class), + @XmlElement(name = "ab", type = Ab.class), + @XmlElement(name = "pb", type = Pb.class) + }) + protected List pOrAbOrPb; + + /** + * Gets the value of the pOrAbOrPb property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pOrAbOrPb property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPOrAbOrPb().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link P } + * {@link Ab } + * {@link Pb } + * + * + */ + public List getPOrAbOrPb() { + if (pOrAbOrPb == null) { + pOrAbOrPb = new ArrayList(); + } + return this.pOrAbOrPb; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/Creation.java b/src/main/java/de/sub/goettingen/arendt/output/generated/Creation.java new file mode 100644 index 0000000..ce863c4 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/Creation.java @@ -0,0 +1,71 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}date"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "date" +}) +@XmlRootElement(name = "creation") +public class Creation { + + @XmlElement(required = true) + protected String date; + + /** + * Ruft den Wert der date-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDate() { + return date; + } + + /** + * Legt den Wert der date-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDate(String value) { + this.date = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/Date.java b/src/main/java/de/sub/goettingen/arendt/output/generated/Date.java new file mode 100644 index 0000000..3d48937 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/Date.java @@ -0,0 +1,39 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.07 um 04:49:24 PM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "date") +public class Date { + + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/EditionStmt.java b/src/main/java/de/sub/goettingen/arendt/output/generated/EditionStmt.java new file mode 100644 index 0000000..998e0cd --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/EditionStmt.java @@ -0,0 +1,71 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}p"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "p" +}) +@XmlRootElement(name = "editionStmt") +public class EditionStmt { + + @XmlElement(required = true) + protected P p; + + /** + * Ruft den Wert der p-Eigenschaft ab. + * + * @return + * possible object is + * {@link P } + * + */ + public P getP() { + return p; + } + + /** + * Legt den Wert der p-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link P } + * + */ + public void setP(P value) { + this.p = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/EditorialDecl.java b/src/main/java/de/sub/goettingen/arendt/output/generated/EditorialDecl.java new file mode 100644 index 0000000..7d790db --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/EditorialDecl.java @@ -0,0 +1,71 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}p"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "p" +}) +@XmlRootElement(name = "editorialDecl") +public class EditorialDecl { + + @XmlElement(required = true) + protected P p; + + /** + * Ruft den Wert der p-Eigenschaft ab. + * + * @return + * possible object is + * {@link P } + * + */ + public P getP() { + return p; + } + + /** + * Legt den Wert der p-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link P } + * + */ + public void setP(P value) { + this.p = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/EncodingDesc.java b/src/main/java/de/sub/goettingen/arendt/output/generated/EncodingDesc.java new file mode 100644 index 0000000..a5aa5b9 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/EncodingDesc.java @@ -0,0 +1,127 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}editorialDecl"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}projectDesc"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}refsDecl"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "editorialDecl", + "projectDesc", + "refsDecl" +}) +@XmlRootElement(name = "encodingDesc") +public class EncodingDesc { + + @XmlElement(required = true) + protected EditorialDecl editorialDecl; + @XmlElement(required = true) + protected ProjectDesc projectDesc; + @XmlElement(required = true) + protected RefsDecl refsDecl; + + /** + * Ruft den Wert der editorialDecl-Eigenschaft ab. + * + * @return + * possible object is + * {@link EditorialDecl } + * + */ + public EditorialDecl getEditorialDecl() { + return editorialDecl; + } + + /** + * Legt den Wert der editorialDecl-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link EditorialDecl } + * + */ + public void setEditorialDecl(EditorialDecl value) { + this.editorialDecl = value; + } + + /** + * Ruft den Wert der projectDesc-Eigenschaft ab. + * + * @return + * possible object is + * {@link ProjectDesc } + * + */ + public ProjectDesc getProjectDesc() { + return projectDesc; + } + + /** + * Legt den Wert der projectDesc-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link ProjectDesc } + * + */ + public void setProjectDesc(ProjectDesc value) { + this.projectDesc = value; + } + + /** + * Ruft den Wert der refsDecl-Eigenschaft ab. + * + * @return + * possible object is + * {@link RefsDecl } + * + */ + public RefsDecl getRefsDecl() { + return refsDecl; + } + + /** + * Legt den Wert der refsDecl-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link RefsDecl } + * + */ + public void setRefsDecl(RefsDecl value) { + this.refsDecl = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/Extent.java b/src/main/java/de/sub/goettingen/arendt/output/generated/Extent.java new file mode 100644 index 0000000..605f431 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/Extent.java @@ -0,0 +1,39 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.07 um 04:49:24 PM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "extent") +public class Extent { + + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/FileDesc.java b/src/main/java/de/sub/goettingen/arendt/output/generated/FileDesc.java new file mode 100644 index 0000000..177a89c --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/FileDesc.java @@ -0,0 +1,184 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}titleStmt"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}editionStmt"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}extent"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}publicationStmt"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}sourceDesc"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "titleStmt", + "editionStmt", + "extent", + "publicationStmt", + "sourceDesc" +}) +@XmlRootElement(name = "fileDesc") +public class FileDesc { + + @XmlElement(required = true) + protected TitleStmt titleStmt; + @XmlElement(required = true) + protected EditionStmt editionStmt; + @XmlElement(required = true) + protected BigInteger extent; + @XmlElement(required = true) + protected PublicationStmt publicationStmt; + @XmlElement(required = true) + protected SourceDesc sourceDesc; + + /** + * Ruft den Wert der titleStmt-Eigenschaft ab. + * + * @return + * possible object is + * {@link TitleStmt } + * + */ + public TitleStmt getTitleStmt() { + return titleStmt; + } + + /** + * Legt den Wert der titleStmt-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link TitleStmt } + * + */ + public void setTitleStmt(TitleStmt value) { + this.titleStmt = value; + } + + /** + * Ruft den Wert der editionStmt-Eigenschaft ab. + * + * @return + * possible object is + * {@link EditionStmt } + * + */ + public EditionStmt getEditionStmt() { + return editionStmt; + } + + /** + * Legt den Wert der editionStmt-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link EditionStmt } + * + */ + public void setEditionStmt(EditionStmt value) { + this.editionStmt = value; + } + + /** + * Ruft den Wert der extent-Eigenschaft ab. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getExtent() { + return extent; + } + + /** + * Legt den Wert der extent-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setExtent(BigInteger value) { + this.extent = value; + } + + /** + * Ruft den Wert der publicationStmt-Eigenschaft ab. + * + * @return + * possible object is + * {@link PublicationStmt } + * + */ + public PublicationStmt getPublicationStmt() { + return publicationStmt; + } + + /** + * Legt den Wert der publicationStmt-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link PublicationStmt } + * + */ + public void setPublicationStmt(PublicationStmt value) { + this.publicationStmt = value; + } + + /** + * Ruft den Wert der sourceDesc-Eigenschaft ab. + * + * @return + * possible object is + * {@link SourceDesc } + * + */ + public SourceDesc getSourceDesc() { + return sourceDesc; + } + + /** + * Legt den Wert der sourceDesc-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link SourceDesc } + * + */ + public void setSourceDesc(SourceDesc value) { + this.sourceDesc = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/Foreign.java b/src/main/java/de/sub/goettingen/arendt/output/generated/Foreign.java new file mode 100644 index 0000000..83ce3d9 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/Foreign.java @@ -0,0 +1,101 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute ref="{http://www.w3.org/XML/1998/namespace}lang use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "foreign") +public class Foreign { + + @XmlValue + protected String content; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NCName") + protected String lang; + + /** + * Ruft den Wert der content-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Legt den Wert der content-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Ruft den Wert der lang-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Legt den Wert der lang-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/Hi.java b/src/main/java/de/sub/goettingen/arendt/output/generated/Hi.java new file mode 100644 index 0000000..786688b --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/Hi.java @@ -0,0 +1,114 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}unclear" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="rend" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "hi") +public class Hi { + + @XmlElementRef(name = "unclear", namespace = "http://www.tei-c.org/ns/1.0", type = Unclear.class, required = false) + @XmlMixed + protected List content; + @XmlAttribute(name = "rend", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NCName") + protected String rend; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * {@link Unclear } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + /** + * Ruft den Wert der rend-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRend() { + return rend; + } + + /** + * Legt den Wert der rend-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRend(String value) { + this.rend = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/LangUsage.java b/src/main/java/de/sub/goettingen/arendt/output/generated/LangUsage.java new file mode 100644 index 0000000..4e06c4d --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/LangUsage.java @@ -0,0 +1,78 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}language" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "language" +}) +@XmlRootElement(name = "langUsage") +public class LangUsage { + + @XmlElement(required = true) + protected List language; + + /** + * Gets the value of the language property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the language property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getLanguage().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Language } + * + * + */ + public List getLanguage() { + if (language == null) { + language = new ArrayList(); + } + return this.language; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/Language.java b/src/main/java/de/sub/goettingen/arendt/output/generated/Language.java new file mode 100644 index 0000000..dc75ad2 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/Language.java @@ -0,0 +1,101 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="ident" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "language") +public class Language { + + @XmlValue + protected String content; + @XmlAttribute(name = "ident", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NCName") + protected String ident; + + /** + * Ruft den Wert der content-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Legt den Wert der content-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Ruft den Wert der ident-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdent() { + return ident; + } + + /** + * Legt den Wert der ident-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdent(String value) { + this.ident = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/ObjectFactory.java b/src/main/java/de/sub/goettingen/arendt/output/generated/ObjectFactory.java new file mode 100644 index 0000000..04d3c98 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/ObjectFactory.java @@ -0,0 +1,257 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import java.math.BigInteger; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the de.sub.goettingen.arendt.output.generated package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Title_QNAME = new QName("http://www.tei-c.org/ns/1.0", "title"); + private final static QName _Extent_QNAME = new QName("http://www.tei-c.org/ns/1.0", "extent"); + private final static QName _Date_QNAME = new QName("http://www.tei-c.org/ns/1.0", "date"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: de.sub.goettingen.arendt.output.generated + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Hi } + * + */ + public Hi createHi() { + return new Hi(); + } + + /** + * Create an instance of {@link Unclear } + * + */ + public Unclear createUnclear() { + return new Unclear(); + } + + /** + * Create an instance of {@link Language } + * + */ + public Language createLanguage() { + return new Language(); + } + + /** + * Create an instance of {@link FileDesc } + * + */ + public FileDesc createFileDesc() { + return new FileDesc(); + } + + /** + * Create an instance of {@link TitleStmt } + * + */ + public TitleStmt createTitleStmt() { + return new TitleStmt(); + } + + /** + * Create an instance of {@link EditionStmt } + * + */ + public EditionStmt createEditionStmt() { + return new EditionStmt(); + } + + /** + * Create an instance of {@link P } + * + */ + public P createP() { + return new P(); + } + + /** + * Create an instance of {@link Foreign } + * + */ + public Foreign createForeign() { + return new Foreign(); + } + + /** + * Create an instance of {@link PublicationStmt } + * + */ + public PublicationStmt createPublicationStmt() { + return new PublicationStmt(); + } + + /** + * Create an instance of {@link SourceDesc } + * + */ + public SourceDesc createSourceDesc() { + return new SourceDesc(); + } + + /** + * Create an instance of {@link Body } + * + */ + public Body createBody() { + return new Body(); + } + + /** + * Create an instance of {@link Ab } + * + */ + public Ab createAb() { + return new Ab(); + } + + /** + * Create an instance of {@link Pb } + * + */ + public Pb createPb() { + return new Pb(); + } + + /** + * Create an instance of {@link RefsDecl } + * + */ + public RefsDecl createRefsDecl() { + return new RefsDecl(); + } + + /** + * Create an instance of {@link ProfileDesc } + * + */ + public ProfileDesc createProfileDesc() { + return new ProfileDesc(); + } + + /** + * Create an instance of {@link Creation } + * + */ + public Creation createCreation() { + return new Creation(); + } + + /** + * Create an instance of {@link LangUsage } + * + */ + public LangUsage createLangUsage() { + return new LangUsage(); + } + + /** + * Create an instance of {@link EncodingDesc } + * + */ + public EncodingDesc createEncodingDesc() { + return new EncodingDesc(); + } + + /** + * Create an instance of {@link EditorialDecl } + * + */ + public EditorialDecl createEditorialDecl() { + return new EditorialDecl(); + } + + /** + * Create an instance of {@link ProjectDesc } + * + */ + public ProjectDesc createProjectDesc() { + return new ProjectDesc(); + } + + /** + * Create an instance of {@link Text } + * + */ + public Text createText() { + return new Text(); + } + + /** + * Create an instance of {@link TeiHeader } + * + */ + public TeiHeader createTeiHeader() { + return new TeiHeader(); + } + + /** + * Create an instance of {@link TEI } + * + */ + public TEI createTEI() { + return new TEI(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.tei-c.org/ns/1.0", name = "title") + public JAXBElement createTitle(String value) { + return new JAXBElement(_Title_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.tei-c.org/ns/1.0", name = "extent") + public JAXBElement createExtent(BigInteger value) { + return new JAXBElement(_Extent_QNAME, BigInteger.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.tei-c.org/ns/1.0", name = "date") + public JAXBElement createDate(String value) { + return new JAXBElement(_Date_QNAME, String.class, null, value); + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/P.java b/src/main/java/de/sub/goettingen/arendt/output/generated/P.java new file mode 100644 index 0000000..fa2afd3 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/P.java @@ -0,0 +1,90 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element ref="{http://www.tei-c.org/ns/1.0}hi"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}unclear"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}foreign"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "p") +public class P { + + @XmlElementRefs({ + @XmlElementRef(name = "foreign", namespace = "http://www.tei-c.org/ns/1.0", type = Foreign.class, required = false), + @XmlElementRef(name = "unclear", namespace = "http://www.tei-c.org/ns/1.0", type = Unclear.class, required = false), + @XmlElementRef(name = "hi", namespace = "http://www.tei-c.org/ns/1.0", type = Hi.class, required = false) + }) + @XmlMixed + protected List content; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Unclear } + * {@link Foreign } + * {@link Hi } + * {@link String } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/Pb.java b/src/main/java/de/sub/goettingen/arendt/output/generated/Pb.java new file mode 100644 index 0000000..3de9533 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/Pb.java @@ -0,0 +1,72 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="n" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "pb") +public class Pb { + + @XmlAttribute(name = "n", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NMTOKEN") + protected String n; + + /** + * Ruft den Wert der n-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getN() { + return n; + } + + /** + * Legt den Wert der n-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setN(String value) { + this.n = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/ProfileDesc.java b/src/main/java/de/sub/goettingen/arendt/output/generated/ProfileDesc.java new file mode 100644 index 0000000..2138c8e --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/ProfileDesc.java @@ -0,0 +1,99 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}creation"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}langUsage"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "creation", + "langUsage" +}) +@XmlRootElement(name = "profileDesc") +public class ProfileDesc { + + @XmlElement(required = true) + protected Creation creation; + @XmlElement(required = true) + protected LangUsage langUsage; + + /** + * Ruft den Wert der creation-Eigenschaft ab. + * + * @return + * possible object is + * {@link Creation } + * + */ + public Creation getCreation() { + return creation; + } + + /** + * Legt den Wert der creation-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Creation } + * + */ + public void setCreation(Creation value) { + this.creation = value; + } + + /** + * Ruft den Wert der langUsage-Eigenschaft ab. + * + * @return + * possible object is + * {@link LangUsage } + * + */ + public LangUsage getLangUsage() { + return langUsage; + } + + /** + * Legt den Wert der langUsage-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link LangUsage } + * + */ + public void setLangUsage(LangUsage value) { + this.langUsage = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/ProjectDesc.java b/src/main/java/de/sub/goettingen/arendt/output/generated/ProjectDesc.java new file mode 100644 index 0000000..80a428f --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/ProjectDesc.java @@ -0,0 +1,71 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}p"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "p" +}) +@XmlRootElement(name = "projectDesc") +public class ProjectDesc { + + @XmlElement(required = true) + protected P p; + + /** + * Ruft den Wert der p-Eigenschaft ab. + * + * @return + * possible object is + * {@link P } + * + */ + public P getP() { + return p; + } + + /** + * Legt den Wert der p-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link P } + * + */ + public void setP(P value) { + this.p = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/PublicationStmt.java b/src/main/java/de/sub/goettingen/arendt/output/generated/PublicationStmt.java new file mode 100644 index 0000000..54b80c7 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/PublicationStmt.java @@ -0,0 +1,71 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}p"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "p" +}) +@XmlRootElement(name = "publicationStmt") +public class PublicationStmt { + + @XmlElement(required = true) + protected P p; + + /** + * Ruft den Wert der p-Eigenschaft ab. + * + * @return + * possible object is + * {@link P } + * + */ + public P getP() { + return p; + } + + /** + * Legt den Wert der p-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link P } + * + */ + public void setP(P value) { + this.p = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/RefsDecl.java b/src/main/java/de/sub/goettingen/arendt/output/generated/RefsDecl.java new file mode 100644 index 0000000..e692726 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/RefsDecl.java @@ -0,0 +1,71 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}p"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "p" +}) +@XmlRootElement(name = "refsDecl") +public class RefsDecl { + + @XmlElement(required = true) + protected P p; + + /** + * Ruft den Wert der p-Eigenschaft ab. + * + * @return + * possible object is + * {@link P } + * + */ + public P getP() { + return p; + } + + /** + * Legt den Wert der p-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link P } + * + */ + public void setP(P value) { + this.p = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/SourceDesc.java b/src/main/java/de/sub/goettingen/arendt/output/generated/SourceDesc.java new file mode 100644 index 0000000..0848937 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/SourceDesc.java @@ -0,0 +1,71 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}p"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "p" +}) +@XmlRootElement(name = "sourceDesc") +public class SourceDesc { + + @XmlElement(required = true) + protected P p; + + /** + * Ruft den Wert der p-Eigenschaft ab. + * + * @return + * possible object is + * {@link P } + * + */ + public P getP() { + return p; + } + + /** + * Legt den Wert der p-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link P } + * + */ + public void setP(P value) { + this.p = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/TEI.java b/src/main/java/de/sub/goettingen/arendt/output/generated/TEI.java new file mode 100644 index 0000000..268497a --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/TEI.java @@ -0,0 +1,132 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}teiHeader"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}text"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.w3.org/XML/1998/namespace}lang use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "teiHeader", + "text" +}) +@XmlRootElement(name = "TEI") +public class TEI { + + @XmlElement(required = true) + protected TeiHeader teiHeader; + @XmlElement(required = true) + protected Text text; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NCName") + protected String lang; + + /** + * Ruft den Wert der teiHeader-Eigenschaft ab. + * + * @return + * possible object is + * {@link TeiHeader } + * + */ + public TeiHeader getTeiHeader() { + return teiHeader; + } + + /** + * Legt den Wert der teiHeader-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link TeiHeader } + * + */ + public void setTeiHeader(TeiHeader value) { + this.teiHeader = value; + } + + /** + * Ruft den Wert der text-Eigenschaft ab. + * + * @return + * possible object is + * {@link Text } + * + */ + public Text getText() { + return text; + } + + /** + * Legt den Wert der text-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Text } + * + */ + public void setText(Text value) { + this.text = value; + } + + /** + * Ruft den Wert der lang-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Legt den Wert der lang-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/TeiHeader.java b/src/main/java/de/sub/goettingen/arendt/output/generated/TeiHeader.java new file mode 100644 index 0000000..136a563 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/TeiHeader.java @@ -0,0 +1,127 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}fileDesc"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}encodingDesc"/>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}profileDesc"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "fileDesc", + "encodingDesc", + "profileDesc" +}) +@XmlRootElement(name = "teiHeader") +public class TeiHeader { + + @XmlElement(required = true) + protected FileDesc fileDesc; + @XmlElement(required = true) + protected EncodingDesc encodingDesc; + @XmlElement(required = true) + protected ProfileDesc profileDesc; + + /** + * Ruft den Wert der fileDesc-Eigenschaft ab. + * + * @return + * possible object is + * {@link FileDesc } + * + */ + public FileDesc getFileDesc() { + return fileDesc; + } + + /** + * Legt den Wert der fileDesc-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link FileDesc } + * + */ + public void setFileDesc(FileDesc value) { + this.fileDesc = value; + } + + /** + * Ruft den Wert der encodingDesc-Eigenschaft ab. + * + * @return + * possible object is + * {@link EncodingDesc } + * + */ + public EncodingDesc getEncodingDesc() { + return encodingDesc; + } + + /** + * Legt den Wert der encodingDesc-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link EncodingDesc } + * + */ + public void setEncodingDesc(EncodingDesc value) { + this.encodingDesc = value; + } + + /** + * Ruft den Wert der profileDesc-Eigenschaft ab. + * + * @return + * possible object is + * {@link ProfileDesc } + * + */ + public ProfileDesc getProfileDesc() { + return profileDesc; + } + + /** + * Legt den Wert der profileDesc-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link ProfileDesc } + * + */ + public void setProfileDesc(ProfileDesc value) { + this.profileDesc = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/Text.java b/src/main/java/de/sub/goettingen/arendt/output/generated/Text.java new file mode 100644 index 0000000..702a89d --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/Text.java @@ -0,0 +1,104 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}body"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.w3.org/XML/1998/namespace}lang use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "body" +}) +@XmlRootElement(name = "text") +public class Text { + + @XmlElement(required = true) + protected Body body; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NCName") + protected String lang; + + /** + * Ruft den Wert der body-Eigenschaft ab. + * + * @return + * possible object is + * {@link Body } + * + */ + public Body getBody() { + return body; + } + + /** + * Legt den Wert der body-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link Body } + * + */ + public void setBody(Body value) { + this.body = value; + } + + /** + * Ruft den Wert der lang-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Legt den Wert der lang-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/TitleStmt.java b/src/main/java/de/sub/goettingen/arendt/output/generated/TitleStmt.java new file mode 100644 index 0000000..98097fa --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/TitleStmt.java @@ -0,0 +1,71 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.tei-c.org/ns/1.0}title"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "title" +}) +@XmlRootElement(name = "titleStmt") +public class TitleStmt { + + @XmlElement(required = true) + protected String title; + + /** + * Ruft den Wert der title-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Legt den Wert der title-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/Unclear.java b/src/main/java/de/sub/goettingen/arendt/output/generated/Unclear.java new file mode 100644 index 0000000..66e0d8a --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/Unclear.java @@ -0,0 +1,130 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + + +package de.sub.goettingen.arendt.output.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java-Klasse für anonymous complex type. + * + *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="cert" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
+ *       <attribute name="reason" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "unclear") +public class Unclear { + + @XmlValue + protected String content; + @XmlAttribute(name = "cert", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NCName") + protected String cert; + @XmlAttribute(name = "reason", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NCName") + protected String reason; + + /** + * Ruft den Wert der content-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Legt den Wert der content-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Ruft den Wert der cert-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCert() { + return cert; + } + + /** + * Legt den Wert der cert-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCert(String value) { + this.cert = value; + } + + /** + * Ruft den Wert der reason-Eigenschaft ab. + * + * @return + * possible object is + * {@link String } + * + */ + public String getReason() { + return reason; + } + + /** + * Legt den Wert der reason-Eigenschaft fest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setReason(String value) { + this.reason = value; + } + +} diff --git a/src/main/java/de/sub/goettingen/arendt/output/generated/package-info.java b/src/main/java/de/sub/goettingen/arendt/output/generated/package-info.java new file mode 100644 index 0000000..a48c0b6 --- /dev/null +++ b/src/main/java/de/sub/goettingen/arendt/output/generated/package-info.java @@ -0,0 +1,9 @@ +// +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert +// Siehe http://java.sun.com/xml/jaxb +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2017.11.09 um 08:08:26 AM CET +// + +@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.tei-c.org/ns/1.0", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package de.sub.goettingen.arendt.output.generated;