├── .devcontainer └── devcontainer.json ├── .github ├── ISSUE_TEMPLATE │ ├── 01-submit-bug.yml │ ├── 02-enhancement.yml │ ├── 03-chore.yml │ └── config.yml ├── dependabot.yml └── workflows │ ├── asciidoc_2_gh_pages.yml │ ├── build_fj-doc-native-quarkus_test.yml │ ├── build_maven_compatibility.yml │ ├── build_maven_package.yml │ ├── codeql-analysis.yml │ ├── deploy_maven_package.yml │ └── docker_publish.yml ├── .gitignore ├── .idea ├── icon.png ├── icon_dark.png └── readme.txt ├── .mvn └── wrapper │ ├── .gitignore │ └── maven-wrapper.properties ├── CHANGELOG.md ├── CNAME ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LEGACY_README.md ├── LICENSE ├── README.md ├── _config.yml ├── docs ├── draw │ ├── 00X_type_handler.odg │ └── 10X_pipeline.odg ├── html │ └── doc_meta_info.html └── img │ ├── 001_type_handler.gif │ ├── 002_simple_doc_facade.gif │ ├── 003_doc_handler_facade.gif │ ├── 004_doc_process_config.gif │ ├── 005_process_doc_facade.gif │ ├── 101_basic_pipeline.gif │ └── 102_dynamic_pipeline.gif ├── fj-doc-base-json ├── README.md ├── pom.xml └── src │ ├── main │ ├── docs │ │ ├── xml_conversion.md │ │ └── xml_conversion_ng.md │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── json │ │ ├── ng │ │ ├── DocJsonParserNG.java │ │ ├── DocXmlToJsonNG.java │ │ └── XmlToJsonConverterNG.java │ │ └── parse │ │ ├── DocJsonFacade.java │ │ ├── DocJsonParser.java │ │ ├── DocJsonToXml.java │ │ ├── DocObjectMapperConstants.java │ │ ├── DocObjectMapperHelper.java │ │ └── DocXmlToJson.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ ├── base │ │ └── facade │ │ │ └── TestDocFacadeSourceJson.java │ │ └── json │ │ ├── ng │ │ └── TestJsonParserNG.java │ │ └── parse │ │ ├── TestDocJsonToXml.java │ │ ├── TestDocXmlToJson.java │ │ └── TestJsonParser.java │ └── resources │ ├── log4j2.xml │ └── sample │ ├── doc_test_01.json │ ├── doc_test_01.xml │ ├── doc_test_01_ng.json │ ├── doc_test_02.json │ ├── doc_test_02_ko.json │ ├── doc_test_fail_01.json │ └── doc_test_fail_02.json ├── fj-doc-base-kotlin ├── README.md ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── base │ │ └── kotlin │ │ ├── dsl │ │ ├── Background.kt │ │ ├── Barcode.kt │ │ ├── Body.kt │ │ ├── Bookmark.kt │ │ ├── BookmarkTree.kt │ │ ├── Br.kt │ │ ├── Cell.kt │ │ ├── Doc.kt │ │ ├── Footer.kt │ │ ├── FooterExt.kt │ │ ├── H.kt │ │ ├── Header.kt │ │ ├── HeaderExt.kt │ │ ├── HelperDSL.kt │ │ ├── Image.kt │ │ ├── Info.kt │ │ ├── Li.kt │ │ ├── List.kt │ │ ├── Meta.kt │ │ ├── Metadata.kt │ │ ├── Nbsp.kt │ │ ├── PageBreak.kt │ │ ├── Para.kt │ │ ├── Phrase.kt │ │ ├── Pl.kt │ │ ├── Row.kt │ │ ├── Table.kt │ │ └── dslDoc.kt │ │ └── parse │ │ └── DocKotlinParser.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── base │ │ └── kotlin │ │ ├── model │ │ └── DocAltTest.kt │ │ └── parse │ │ ├── People.java │ │ └── TestKotlinParser.java │ └── resources │ ├── doc-dsl-sample │ ├── sample-2-coverage-a.kts │ ├── sample-2-coverage-b.kts │ ├── sample-2-coverage-c.kts │ ├── sample-2-coverage-d.kts │ ├── sample-2-coverage-e.kts │ ├── sample-2-coverage-f.kts │ ├── sample-2-coverage-g.kts │ ├── sample-2-coverage-h.kts │ ├── sample-2-coverage-i.kts │ ├── sample-2-coverage.kts │ ├── sample-2-params.kts │ ├── sample-2.kts │ └── sample-map.kts │ └── log4j2.xml ├── fj-doc-base-yaml ├── README.md ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── yaml │ │ └── parse │ │ ├── DocJsonFacade.java │ │ ├── DocYamlParser.java │ │ └── DocYamlToXml.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ ├── base │ │ └── facade │ │ │ └── TestDocFacadeSourceYaml.java │ │ └── yaml │ │ └── parse │ │ ├── TestDocXmlToYaml.java │ │ ├── TestDocYamlToXml.java │ │ └── TestYamlParser.java │ └── resources │ ├── log4j2.xml │ └── sample │ ├── doc_test_01.xml │ ├── doc_test_01.yaml │ ├── doc_test_02.yaml │ ├── doc_test_02_ko.yaml │ ├── doc_test_fail_01.yaml │ └── doc_test_fail_02.yaml ├── fj-doc-base ├── DocXsdChangelog.md ├── README.md ├── pom.xml └── src │ ├── main │ ├── config │ │ ├── native-helper-config.yaml │ │ └── reflect-config-nhg.json │ ├── docs │ │ └── doc_xsd_config_ref.html │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ └── doc │ │ │ └── base │ │ │ ├── config │ │ │ ├── DocCharsetProvider.java │ │ │ ├── DocConfig.java │ │ │ ├── DocConstants.java │ │ │ ├── DocException.java │ │ │ ├── DocInput.java │ │ │ ├── DocOutput.java │ │ │ ├── DocResult.java │ │ │ ├── DocTypeHandler.java │ │ │ ├── DocTypeHandlerDecorator.java │ │ │ ├── DocTypeHandlerDefault.java │ │ │ ├── DocTypeHandlerXML.java │ │ │ ├── DocTypeHandlerXMLUTF8.java │ │ │ ├── DocVersion.java │ │ │ └── InitHandler.java │ │ │ ├── enums │ │ │ ├── EnumDocAlignH.java │ │ │ ├── EnumDocAlignV.java │ │ │ └── EnumDocStyle.java │ │ │ ├── facade │ │ │ ├── DocFacade.java │ │ │ ├── DocFacadeSource.java │ │ │ ├── DocFacadeSourceConfig.java │ │ │ ├── DocHandlerFacade.java │ │ │ ├── DocHandlerFactory.java │ │ │ ├── ProcessDocFacade.java │ │ │ └── SimpleDocFacade.java │ │ │ ├── helper │ │ │ ├── Base64Helper.java │ │ │ ├── DefaultMimeHelper.java │ │ │ ├── DocHelperEuro.java │ │ │ ├── DocTypeFacadeAbstract.java │ │ │ ├── DocTypeFacadeDefault.java │ │ │ ├── DocTypeFacadeHelper.java │ │ │ ├── SourceResolverHelper.java │ │ │ └── TextWrapHelper.java │ │ │ ├── model │ │ │ ├── DocBackground.java │ │ │ ├── DocBarcode.java │ │ │ ├── DocBase.java │ │ │ ├── DocBookmark.java │ │ │ ├── DocBookmarkTree.java │ │ │ ├── DocBorders.java │ │ │ ├── DocBr.java │ │ │ ├── DocCell.java │ │ │ ├── DocContainer.java │ │ │ ├── DocElement.java │ │ │ ├── DocFooter.java │ │ │ ├── DocHeader.java │ │ │ ├── DocHeaderFooter.java │ │ │ ├── DocHelper.java │ │ │ ├── DocImage.java │ │ │ ├── DocInfo.java │ │ │ ├── DocLi.java │ │ │ ├── DocList.java │ │ │ ├── DocNbsp.java │ │ │ ├── DocPageBreak.java │ │ │ ├── DocPara.java │ │ │ ├── DocPhrase.java │ │ │ ├── DocRow.java │ │ │ ├── DocStyle.java │ │ │ ├── DocTable.java │ │ │ ├── DocText.java │ │ │ ├── package.html │ │ │ └── util │ │ │ │ └── DocTableUtil.java │ │ │ ├── parser │ │ │ ├── AbstractDocParser.java │ │ │ ├── DocEvalWithDataModel.java │ │ │ ├── DocParser.java │ │ │ ├── DocParserContext.java │ │ │ ├── DocParserHelper.java │ │ │ ├── DocParserUtil.java │ │ │ └── DocValidationResult.java │ │ │ ├── process │ │ │ ├── DocProcessConfig.java │ │ │ ├── DocProcessContext.java │ │ │ ├── DocProcessData.java │ │ │ ├── DocProcessor.java │ │ │ └── DocProcessorBasic.java │ │ │ ├── typehandler │ │ │ └── markdown │ │ │ │ ├── AbstractCustomMarkdownTypeHandler.java │ │ │ │ ├── MarkdownBasicDocFacade.java │ │ │ │ ├── MarkdownExtDocFacade.java │ │ │ │ ├── SimpleMarkdownBasicTypeHandler.java │ │ │ │ ├── SimpleMarkdownBasicTypeHandlerNoCommentsUTF8.java │ │ │ │ ├── SimpleMarkdownBasicTypeHandlerUTF8.java │ │ │ │ ├── SimpleMarkdownExtTypeHandler.java │ │ │ │ ├── SimpleMarkdownExtTypeHandlerNoCommentsUTF8.java │ │ │ │ └── SimpleMarkdownExtTypeHandlerUTF8.java │ │ │ ├── typehelper │ │ │ ├── csv │ │ │ │ └── CsvHelperConsts.java │ │ │ ├── excel │ │ │ │ ├── ExcelHelperConsts.java │ │ │ │ ├── ExcelHelperUtils.java │ │ │ │ ├── MatrixCell.java │ │ │ │ └── TableMatrix.java │ │ │ ├── generic │ │ │ │ ├── FormatTypeConsts.java │ │ │ │ └── GenericConsts.java │ │ │ └── html │ │ │ │ └── HtmlHelperConsts.java │ │ │ └── xml │ │ │ ├── DocContentHandler.java │ │ │ ├── DocModelUtils.java │ │ │ ├── DocStyleAlignHelper.java │ │ │ ├── DocValidator.java │ │ │ ├── DocXMLUtils.java │ │ │ ├── DocXmlParser.java │ │ │ └── SAXUtils.java │ ├── javadoc │ │ ├── overview.html │ │ └── stylesheet.css │ └── resources │ │ ├── META-INF │ │ └── native-image │ │ │ └── org.fugerit.java │ │ │ └── fj-doc-base │ │ │ ├── native-image.properties │ │ │ ├── reflect-config.json │ │ │ └── resource-config.json │ │ └── config │ │ ├── default_mime.xml │ │ ├── doc-1-0.dtd │ │ ├── doc-1-0.xsd │ │ ├── doc-1-1.xsd │ │ ├── doc-1-10.xsd │ │ ├── doc-1-2.xsd │ │ ├── doc-1-3.xsd │ │ ├── doc-1-4.xsd │ │ ├── doc-1-5.xsd │ │ ├── doc-1-6.xsd │ │ ├── doc-1-7.xsd │ │ ├── doc-1-8.xsd │ │ ├── doc-1-9.xsd │ │ ├── doc-2-0.xsd │ │ ├── doc-2-1.xsd │ │ ├── error-doc.xml │ │ ├── init_doc │ │ └── doc-init.xml │ │ ├── schema-validator-config.xml │ │ └── type-handler-default.xml │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── base │ │ ├── config │ │ ├── TestDocCharsetProvider.java │ │ ├── TestDocException.java │ │ ├── TestDocInput.java │ │ ├── TestDocOutput.java │ │ ├── TestDocTypeHandlerDecorator.java │ │ ├── TestDocTypeHandlerDefault.java │ │ └── TestDocVersion.java │ │ ├── coverage │ │ ├── ProcessStepCoverage.java │ │ ├── TestConfig.java │ │ ├── TestCoverage.java │ │ ├── TestDocContentHandler.java │ │ ├── TestDocFacade.java │ │ ├── TestDocHandlerFactory.java │ │ ├── TestDocTypeFacade.java │ │ ├── TestExcelHelpers.java │ │ └── TestProcessDocFacade.java │ │ ├── facade │ │ ├── TestDocFacade.java │ │ ├── TestDocFacadeSource.java │ │ ├── TestDocHandlerFacade.java │ │ └── TestDocHandlerFactory.java │ │ ├── helper │ │ ├── TestSourceResolverHelper.java │ │ └── TestTextWrapHelper.java │ │ ├── md │ │ └── TestMDHandlers.java │ │ ├── model │ │ ├── HelperDocT.java │ │ ├── TestBarcode.java │ │ ├── TestDocBackground.java │ │ ├── TestDocBase.java │ │ ├── TestDocBoders.java │ │ ├── TestDocBookmark.java │ │ ├── TestDocCell.java │ │ ├── TestDocHeaderFooter.java │ │ ├── TestDocImage.java │ │ ├── TestDocLi.java │ │ ├── TestDocList.java │ │ ├── TestDocNbsp.java │ │ ├── TestDocPara.java │ │ ├── TestDocPhrase.java │ │ └── TestDocText.java │ │ ├── process │ │ └── TestDocProcessContext.java │ │ └── xml │ │ ├── TestDocModelUtils.java │ │ ├── TestDocValidator.java │ │ ├── TestDocXMLUtils.java │ │ ├── TestDocXmlParser.java │ │ └── TestSAXUtils.java │ └── resources │ ├── coverage │ ├── config │ │ ├── doc-handler-sample.xml │ │ └── doc-process-autodoc.xml │ ├── template │ │ ├── html_doc.ftl │ │ └── macro │ │ │ ├── html_element.ftl │ │ │ └── html_element_1-x.ftl │ └── xml │ │ ├── default_doc.xml │ │ ├── default_doc_alt.xml │ │ ├── default_doc_empty.xml │ │ ├── default_doc_fail1.xml │ │ ├── default_doc_fail2.xml │ │ ├── default_doc_missing_tag.xml │ │ └── doc_test_01.xml │ ├── log4j2.xml │ ├── sample │ ├── default_doc.xml │ ├── default_doc_alt.xml │ ├── default_doc_fail1.xml │ ├── default_doc_toclean.xml │ ├── doc_test_01.xml │ └── doc_test_02_ko.xml │ ├── test │ ├── img_test_blue.png │ ├── img_test_green.png │ ├── img_test_red.png │ ├── img_test_teal.jpg │ └── img_test_teal.png │ └── txt │ └── test.txt ├── fj-doc-freemarker ├── CHANGELOG.md ├── README.md ├── pom.xml └── src │ ├── main │ ├── config │ │ ├── native-helper-config.yaml │ │ └── reflect-config-nhg.json │ ├── docs │ │ └── fdp_xsd_config_ref.html │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ └── doc │ │ │ └── freemarker │ │ │ ├── asciidoc │ │ │ ├── FreeMarkerAsciidocTypeHandler.java │ │ │ └── FreeMarkerAsciidocTypeHandlerUTF8.java │ │ │ ├── config │ │ │ ├── FreeMarkerComplexProcessStep.java │ │ │ ├── FreeMarkerConfigStep.java │ │ │ ├── FreeMarkerConstants.java │ │ │ ├── FreeMarkerFunctionStep.java │ │ │ ├── FreeMarkerKotlinStep.java │ │ │ ├── FreeMarkerMapStep.java │ │ │ ├── FreeMarkerProcessStep.java │ │ │ ├── FreeMarkerSkipProcessStep.java │ │ │ └── FreemarkerApplyHelper.java │ │ │ ├── fun │ │ │ ├── Base64ToStringFun.java │ │ │ ├── CleanTextFun.java │ │ │ ├── CleanXmlFun.java │ │ │ ├── FMFunHelper.java │ │ │ ├── FormatLocalDateTimeFun.java │ │ │ ├── ImageBase64CLFun.java │ │ │ ├── SimpleMessageFun.java │ │ │ ├── SimpleSumLongFun.java │ │ │ └── TextWrapFun.java │ │ │ ├── helper │ │ │ ├── FreeMarkerDocHelperTypeHandler.java │ │ │ └── FreeMarkerDocProcess.java │ │ │ ├── html │ │ │ ├── FreeMarkerHtmlFragmentTypeHandler.java │ │ │ ├── FreeMarkerHtmlFragmentTypeHandlerEscapeUTF8.java │ │ │ ├── FreeMarkerHtmlFragmentTypeHandlerUTF8.java │ │ │ ├── FreeMarkerHtmlTypeHandler.java │ │ │ ├── FreeMarkerHtmlTypeHandlerEscapeUTF8.java │ │ │ └── FreeMarkerHtmlTypeHandlerUTF8.java │ │ │ ├── process │ │ │ ├── ChainStepModel.java │ │ │ ├── DefaultChainProvider.java │ │ │ ├── DocChainModel.java │ │ │ ├── DocInputProcess.java │ │ │ ├── FreemarkerDocProcessConfig.java │ │ │ ├── FreemarkerDocProcessConfigFacade.java │ │ │ └── FreemarkerDocProcessConfigValidator.java │ │ │ └── tool │ │ │ ├── FreeMarkerTemplateSyntaxVerifier.java │ │ │ ├── GenerateStub.java │ │ │ ├── LegacyConfigRead.java │ │ │ ├── model │ │ │ ├── ChainModel.java │ │ │ ├── ConfigModel.java │ │ │ └── StepModel.java │ │ │ └── verify │ │ │ ├── VerifyTemplateInfo.java │ │ │ └── VerifyTemplateOutput.java │ └── resources │ │ ├── META-INF │ │ └── native-image │ │ │ └── org.fugerit.java │ │ │ └── fj-doc-freemarker │ │ │ ├── native-image.properties │ │ │ ├── reflect-config.json │ │ │ └── resource-config.json │ │ ├── autodoc_detail │ │ └── autodoc-detail-html.xml │ │ ├── config_fm_xsd │ │ ├── freemarker-doc-process-1-0.xsd │ │ └── schema-validator-config-freemarker.xml │ │ └── fj_doc_freemarker_config │ │ ├── fm-freemarker-doc-process-config.xml │ │ └── template │ │ ├── asciidoc.ftl │ │ ├── freemarker-doc-process-config-stub.ftl │ │ ├── freemarker-verify-syntax-report.ftl │ │ ├── html_doc.ftl │ │ ├── html_fragment.ftl │ │ └── macro │ │ ├── ascidoc-element.ftl │ │ ├── feature-escape-html.ftl │ │ ├── feature-escape-none.ftl │ │ ├── html_element.ftl │ │ └── html_element_1-x.ftl │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── freemarker │ │ ├── coverage │ │ └── TestFreemarkerCoverage.java │ │ ├── process │ │ ├── People.java │ │ ├── TestFreeMarkerConstants.java │ │ ├── TestFreemarkerConfigStep.java │ │ ├── TestFreemarkerDocProcessConfig.java │ │ ├── TestFreemarkerDocProcessConfigValidator.java │ │ ├── TestFreemarkerGenerateStub.java │ │ └── TestFreemarkerKotlinStep.java │ │ └── tool │ │ ├── TestFreeMarkerTemplateSyntaxyVerifier.java │ │ └── TestGenerateStub.java │ └── resources │ ├── coverage │ ├── kts │ │ ├── document-kotlin.kts │ │ └── sample-2-coverage.kts │ └── xml │ │ ├── asciidoc.xml │ │ ├── default_doc.xml │ │ ├── default_doc_alt.xml │ │ ├── default_doc_fail1.xml │ │ └── default_doc_sample.xml │ ├── fj_doc_test │ ├── freemarker-doc-process-1.xml │ ├── freemarker-doc-process-2.xml │ ├── freemarker-doc-process-3.xml │ ├── freemarker-doc-process.xml │ ├── freemarker-doc-process_alt.xml │ ├── freemarker-doc-process_ko.xml │ ├── freemarker-doc-process_sec.xml │ ├── template-fail │ │ ├── test_01.ftl │ │ ├── test_02.ftl │ │ └── test_03.xml │ ├── template-macro │ │ ├── macro │ │ │ └── macro.ftl │ │ ├── test_01.ftl │ │ └── test_02.ftl │ └── template │ │ ├── asciidoc-json.ftl │ │ ├── asciidoc-xml.ftl │ │ ├── asciidoc-yaml.ftl │ │ ├── error_chain.ftl │ │ ├── sample_chain.ftl │ │ ├── test_01.ftl │ │ └── test_02.ftl │ ├── generate-stub-test │ └── doc-process-autodoc.xml │ ├── image │ └── logo.svg │ ├── log4j2.xml │ └── test │ ├── img_test_blue.png │ ├── img_test_green.png │ ├── img_test_red.png │ ├── img_test_teal.jpg │ └── img_test_teal.png ├── fj-doc-guide ├── pom.xml └── src │ ├── css │ └── default_venus_docs_style.css │ └── main │ └── docs │ └── asciidoc │ ├── attributes │ ├── _attributes-common.adoc │ └── _attributes-pdf.adoc │ ├── chapters │ ├── 00_1_what_is.adoc │ ├── 00_2_release_notes.adoc │ ├── 00_3_native_support.adoc │ ├── 00_introduction.adoc │ ├── 01_quickstart.adoc │ ├── 02_1_maven_plugin_add.adoc │ ├── 02_2_maven_plugin_init.adoc │ ├── 02_3_maven_plugin_verify.adoc │ ├── 02_4_maven_plugin_direct.adoc │ ├── 02_maven_plugin.adoc │ ├── 03_1_doc_format_xml.adoc │ ├── 03_2_doc_format_json_yaml.adoc │ ├── 03_3_doc_format_kotlin.adoc │ ├── 03_4_doc_format_info.adoc │ ├── 03_doc_format.adoc │ ├── 04_1_doc_freemarker_config.adoc │ ├── 04_2_doc_freemarker_chain.adoc │ ├── 04_3_doc_freemarker_usage.adoc │ ├── 04_doc_freemarker.adoc │ ├── 06_0_base.adoc │ ├── 06_1_freemarker-html.adoc │ ├── 06_2_mod-fop.adoc │ ├── 06_3_mod-poi.adoc │ ├── 06_4_mod-opencsv.adoc │ ├── 06_5_mod-openpdf-ext.adoc │ ├── 06_6_mod-openrtf-ext.adoc │ ├── 06_doc_handlers.adoc │ ├── 07_001_doc-faq-create-project.adoc │ ├── 07_002_doc-faq-validate-document.adoc │ ├── 07_003_doc-faq-clean-source.adoc │ ├── 07_004_doc-faq-resize-xls.adoc │ ├── 07_005_doc-faq-kotlin-step.adoc │ ├── 07_006_doc-faq-endline-fop.adoc │ ├── 07_doc-faq.adoc │ ├── 08_1_eager-startup.adoc │ ├── 08_doc-optmization.adoc │ └── 09_doc-playground.adoc │ ├── index.adoc │ └── resources │ ├── images │ └── readme.txt │ └── themes │ ├── basic-theme.yml │ ├── book_cover_back_basic_v1.0.0.png │ └── book_cover_basic_v1.0.0.png ├── fj-doc-lib-autodoc ├── CHANGELOG.md ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ └── doc │ │ │ └── lib │ │ │ └── autodoc │ │ │ ├── AutodocDocConfig.java │ │ │ ├── AutodocModule.java │ │ │ ├── VenusAutodocFacade.java │ │ │ ├── VenusFreemarkerAutodocFacade.java │ │ │ ├── detail │ │ │ └── AutodocDetailModel.java │ │ │ ├── facade │ │ │ ├── AutodocDetailFacade.java │ │ │ ├── AutodocMetaFacade.java │ │ │ ├── AutodocModelToSinpleTableFacade.java │ │ │ └── XsdParserFacade.java │ │ │ ├── fun │ │ │ └── AnnotationAsSingleStringFun.java │ │ │ ├── meta │ │ │ └── AutodocMetaModel.java │ │ │ └── parser │ │ │ └── model │ │ │ ├── AutodocAttribute.java │ │ │ ├── AutodocChoice.java │ │ │ ├── AutodocElement.java │ │ │ ├── AutodocModel.java │ │ │ ├── AutodocMulti.java │ │ │ ├── AutodocSequence.java │ │ │ ├── AutodocSimpleType.java │ │ │ ├── AutodocType.java │ │ │ └── AutodocUtils.java │ └── resources │ │ ├── fj_doc_lib_autodoc │ │ ├── fm-doc-process-config-autodoc.xml │ │ ├── html_template │ │ │ └── main_template.html │ │ ├── i18n │ │ │ ├── label.properties │ │ │ ├── label_en.properties │ │ │ └── label_it.properties │ │ └── template │ │ │ ├── autodoc.ftl │ │ │ ├── autodoc_common.ftl │ │ │ ├── autodoc_detail.ftl │ │ │ ├── autodoc_macro.ftl │ │ │ ├── autodoc_macro_schema.ftl │ │ │ ├── autodoc_meta.ftl │ │ │ └── autodoc_schema.ftl │ │ └── xsd │ │ ├── autodoc-detail-1-0.xsd │ │ └── autodoc-meta-1-0.xsd │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── lib │ │ └── autodoc │ │ ├── TestAutodocModule.java │ │ ├── facade │ │ ├── TestAutodocDetailFacade.java │ │ ├── TestAutodocDocConfig.java │ │ ├── TestAutodocDocConfigDetail.java │ │ ├── TestAutodocDocSchemaConfig.java │ │ ├── TestFreemarkerAutodocDocConfig.java │ │ └── TestXsdParserFacade.java │ │ ├── fun │ │ └── TestAnnotationAsSingleStringFun.java │ │ └── meta │ │ ├── GenerateDocHelper.java │ │ └── TestGenerateDocMetaInfo.java │ └── resources │ ├── docs │ ├── doc-custom.xsd │ └── meta_xml │ │ └── adm_standard_meta_info.xml │ ├── log4j2.xml │ └── sample_xsd │ ├── sample_1_include.xsd │ └── sample_1_main.xsd ├── fj-doc-lib-direct ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── lib │ │ └── direct │ │ ├── VenusDirectFacade.java │ │ └── config │ │ ├── VenusDirectConfig.java │ │ ├── VenusDirectConfigChain.java │ │ ├── VenusDirectConfigHandler.java │ │ └── VenusDirectConfigOutput.java │ └── test │ ├── java │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── lib │ │ └── direct │ │ └── TestVenusDirectFacade.java │ └── resources │ ├── config │ ├── venus-direct-config-1.yaml │ └── venus-direct-config-2.yaml │ ├── data-model │ ├── data-model-1.json │ └── data-model-1.yaml │ └── template │ └── test-doc.ftl ├── fj-doc-lib-kotlin ├── README.md ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── base │ │ └── kotlin │ │ └── gen │ │ ├── GenerateKotlinConfig.java │ │ └── GenerateKotlinFacade.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── base │ │ └── kotlin │ │ └── model │ │ └── GenerateKotlinTest.java │ └── resources │ ├── generate-kotlin │ ├── config.properties │ └── helper-dsl.txt │ └── log4j2.xml ├── fj-doc-lib-simpletable-import ├── CHANGELOG.md ├── README.md ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── lib │ │ └── simpletableimport │ │ ├── CommonConvertUtils.java │ │ ├── ConvertCsvToSimpleTableFacade.java │ │ └── ConvertXlsxToSimpleTableFacade.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── lib │ │ └── simpletableimport │ │ ├── TestImportSimpleTableCsv.java │ │ └── TestImportSimpleTableXlsx.java │ └── resources │ └── xlsx │ ├── simple_table_01.csv │ └── simple_table_01.xlsx ├── fj-doc-lib-simpletable ├── CHANGELOG.md ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ └── doc │ │ │ └── lib │ │ │ └── simpletable │ │ │ ├── SimpleTableDocConfig.java │ │ │ ├── SimpleTableFacade.java │ │ │ ├── SimpleTableHelper.java │ │ │ └── model │ │ │ ├── SimpleCell.java │ │ │ ├── SimpleRow.java │ │ │ └── SimpleTable.java │ └── resources │ │ └── fj_doc_lib_simpletable │ │ └── template │ │ └── simple_table.ftl │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── lib │ │ └── simpletable │ │ ├── TestSimpleTable.java │ │ ├── TestSimpleTableConfig.java │ │ └── TestSimpleTableHelperColumns.java │ └── resources │ └── log4j2.xml ├── fj-doc-maven-plugin ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ └── doc │ │ │ ├── maven │ │ │ ├── MojoAdd.java │ │ │ ├── MojoDirect.java │ │ │ ├── MojoInit.java │ │ │ └── MojoVerify.java │ │ │ └── project │ │ │ └── facade │ │ │ ├── AddVenusFacade.java │ │ │ ├── BasicVenusFacade.java │ │ │ ├── FeatureFacade.java │ │ │ ├── FlavourContext.java │ │ │ ├── FlavourFacade.java │ │ │ ├── FreemarkerTemplateFacade.java │ │ │ ├── ModuleFacade.java │ │ │ ├── PluginUtils.java │ │ │ ├── VenusConsts.java │ │ │ ├── VenusContext.java │ │ │ ├── VersionCheck.java │ │ │ └── flavour │ │ │ ├── FlavourConfig.java │ │ │ ├── ProcessEntry.java │ │ │ └── extra │ │ │ ├── FlavourExtraConfig.java │ │ │ ├── FlavourExtraConfigFacade.java │ │ │ └── ParamConfig.java │ └── resources │ │ ├── META-INF │ │ └── m2e │ │ │ └── lifecycle-mapping-metadata.xml │ │ └── config │ │ ├── example │ │ ├── document-json.ftl │ │ ├── document-kotlin.ftl │ │ ├── document-kotlin.kts │ │ ├── document-yaml.ftl │ │ ├── document.ftl │ │ └── fop-config.xml │ │ ├── feature │ │ ├── direct-copy.txt │ │ └── direct │ │ │ ├── README_DIRECT.md │ │ │ └── src │ │ │ └── main │ │ │ └── resources │ │ │ └── venus-direct-config │ │ │ ├── data-model │ │ │ ├── sample-model.json │ │ │ └── sample-model.yaml │ │ │ └── template │ │ │ └── sample-doc.ftl │ │ ├── flavour-extra-config │ │ ├── direct-config.yml │ │ ├── micronaut-4-config.yml │ │ ├── openliberty-config.yml │ │ ├── quarkus-2-config.yml │ │ ├── quarkus-3-config.yml │ │ ├── quarkus-3-gradle-config.yml │ │ ├── quarkus-3-gradle-kts-config.yml │ │ ├── quarkus-3-properties-config.yml │ │ └── springboot-3-config.yml │ │ ├── flavour │ │ ├── direct-copy.txt │ │ ├── flavour_versions_default.properties │ │ ├── micronaut-4-copy.txt │ │ ├── micronaut-4 │ │ │ ├── aot-jar.properties │ │ │ ├── aot-native-image.properties │ │ │ ├── micronaut-cli.yml │ │ │ ├── openapi.properties │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── logback.xml │ │ ├── openliberty-copy.txt │ │ ├── openliberty │ │ │ ├── .dockerignore │ │ │ ├── .gitignore │ │ │ ├── Dockerfile │ │ │ ├── README.txt │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── fugerit │ │ │ │ │ └── java │ │ │ │ │ └── template │ │ │ │ │ └── rest │ │ │ │ │ ├── GreetingResource.java │ │ │ │ │ └── RestApplication.java │ │ │ │ ├── liberty │ │ │ │ └── config │ │ │ │ │ └── server.xml │ │ │ │ ├── resources │ │ │ │ └── META-INF │ │ │ │ │ └── microprofile-config.properties │ │ │ │ └── webapp │ │ │ │ └── WEB-INF │ │ │ │ └── web.xml │ │ ├── quarkus-2-copy.txt │ │ ├── quarkus-2 │ │ │ ├── .dockerignore │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── docker │ │ │ │ ├── Dockerfile.jvm │ │ │ │ ├── Dockerfile.legacy-jar │ │ │ │ ├── Dockerfile.native │ │ │ │ └── Dockerfile.native-micro │ │ │ │ └── resources │ │ │ │ └── application.yml │ │ ├── quarkus-3-copy.txt │ │ ├── quarkus-3-gradle-copy.txt │ │ ├── quarkus-3-gradle-kts-copy.txt │ │ ├── quarkus-3-gradle-kts │ │ │ ├── .dockerignore │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── docker │ │ │ │ ├── Dockerfile.jvm │ │ │ │ ├── Dockerfile.legacy-jar │ │ │ │ ├── Dockerfile.native │ │ │ │ └── Dockerfile.native-micro │ │ ├── quarkus-3-gradle │ │ │ ├── .dockerignore │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── docker │ │ │ │ ├── Dockerfile.jvm │ │ │ │ ├── Dockerfile.legacy-jar │ │ │ │ ├── Dockerfile.native │ │ │ │ └── Dockerfile.native-micro │ │ ├── quarkus-3-properties-copy.txt │ │ ├── quarkus-3-properties │ │ │ ├── .dockerignore │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── docker │ │ │ │ ├── Dockerfile.jvm │ │ │ │ ├── Dockerfile.legacy-jar │ │ │ │ ├── Dockerfile.native │ │ │ │ └── Dockerfile.native-micro │ │ ├── quarkus-3 │ │ │ ├── .dockerignore │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── docker │ │ │ │ ├── Dockerfile.jvm │ │ │ │ ├── Dockerfile.legacy-jar │ │ │ │ ├── Dockerfile.native │ │ │ │ └── Dockerfile.native-micro │ │ ├── springboot-3-copy.txt │ │ ├── springboot-3 │ │ │ └── HELP.md │ │ └── vanilla-copy.txt │ │ └── template │ │ ├── DocHelperExample.ftl │ │ ├── DocHelperTest.ftl │ │ ├── People.ftl │ │ ├── feature │ │ ├── direct-fm-yml.ftl │ │ └── direct │ │ │ └── venus-direct-config.ftl │ │ ├── flavour │ │ ├── direct-fm-yml.ftl │ │ ├── direct │ │ │ ├── README.ftl │ │ │ ├── gitignore.ftl │ │ │ └── pom.ftl │ │ ├── flavour-macro.ftl │ │ ├── micronaut-4-fm-yml.ftl │ │ ├── micronaut-4 │ │ │ ├── Application.ftl │ │ │ ├── DocController.ftl │ │ │ ├── MicronautController.ftl │ │ │ ├── MicronautTest.ftl │ │ │ ├── README.ftl │ │ │ ├── application_yml.ftl │ │ │ ├── gitignore.ftl │ │ │ └── pom.ftl │ │ ├── openliberty-fm-yml.ftl │ │ ├── openliberty │ │ │ ├── DocResource.ftl │ │ │ ├── GreetingResource.ftl │ │ │ ├── README.ftl │ │ │ ├── RestApplication.ftl │ │ │ ├── gitignore.ftl │ │ │ ├── pom.ftl │ │ │ ├── server.ftl │ │ │ └── web.ftl │ │ ├── quarkus-2-fm-yml.ftl │ │ ├── quarkus-2 │ │ │ ├── DocResource.ftl │ │ │ ├── DocResourceTest.ftl │ │ │ ├── GreetingConfig.ftl │ │ │ ├── GreetingResource.ftl │ │ │ ├── GreetingResourceIT.ftl │ │ │ ├── GreetingResourceTest.ftl │ │ │ ├── README.ftl │ │ │ ├── gitignore.ftl │ │ │ └── pom.ftl │ │ ├── quarkus-3-fm-yml.ftl │ │ ├── quarkus-3-gradle-fm-yml.ftl │ │ ├── quarkus-3-gradle-kts-fm-yml.ftl │ │ ├── quarkus-3-gradle-kts │ │ │ ├── AppInit.ftl │ │ │ ├── DocHelper.ftl │ │ │ ├── DocResource.ftl │ │ │ ├── DocResourceIT.ftl │ │ │ ├── DocResourceTest.ftl │ │ │ ├── GreetingConfig.ftl │ │ │ ├── GreetingResource.ftl │ │ │ ├── GreetingResourceIT.ftl │ │ │ ├── GreetingResourceTest.ftl │ │ │ ├── README.ftl │ │ │ ├── application.ftl │ │ │ ├── build.gradle.ftl │ │ │ ├── gitignore.ftl │ │ │ ├── gradle.ftl │ │ │ └── settings.gradle.ftl │ │ ├── quarkus-3-gradle │ │ │ ├── AppInit.ftl │ │ │ ├── DocHelper.ftl │ │ │ ├── DocResource.ftl │ │ │ ├── DocResourceIT.ftl │ │ │ ├── DocResourceTest.ftl │ │ │ ├── GreetingConfig.ftl │ │ │ ├── GreetingResource.ftl │ │ │ ├── GreetingResourceIT.ftl │ │ │ ├── GreetingResourceTest.ftl │ │ │ ├── README.ftl │ │ │ ├── application.ftl │ │ │ ├── build.gradle.ftl │ │ │ ├── gitignore.ftl │ │ │ ├── gradle.ftl │ │ │ └── settings.gradle.ftl │ │ ├── quarkus-3-properties-fm-yml.ftl │ │ ├── quarkus-3-properties │ │ │ ├── AppInit.ftl │ │ │ ├── DocHelper.ftl │ │ │ ├── DocResource.ftl │ │ │ ├── DocResourceIT.ftl │ │ │ ├── DocResourceTest.ftl │ │ │ ├── GreetingConfig.ftl │ │ │ ├── GreetingResource.ftl │ │ │ ├── GreetingResourceIT.ftl │ │ │ ├── GreetingResourceTest.ftl │ │ │ ├── README.ftl │ │ │ ├── application.ftl │ │ │ ├── gitignore.ftl │ │ │ └── pom.ftl │ │ ├── quarkus-3 │ │ │ ├── AppInit.ftl │ │ │ ├── DocHelper.ftl │ │ │ ├── DocResource.ftl │ │ │ ├── DocResourceIT.ftl │ │ │ ├── DocResourceTest.ftl │ │ │ ├── GreetingConfig.ftl │ │ │ ├── GreetingResource.ftl │ │ │ ├── GreetingResourceIT.ftl │ │ │ ├── GreetingResourceTest.ftl │ │ │ ├── README.ftl │ │ │ ├── application.ftl │ │ │ ├── gitignore.ftl │ │ │ └── pom.ftl │ │ ├── springboot-3-fm-yml.ftl │ │ ├── springboot-3 │ │ │ ├── AppInit.ftl │ │ │ ├── DocController.ftl │ │ │ ├── DocHelper.ftl │ │ │ ├── README.ftl │ │ │ ├── SpringbootApplication.ftl │ │ │ ├── SpringbootApplicationTests.ftl │ │ │ ├── application.ftl │ │ │ ├── gitignore.ftl │ │ │ └── pom.ftl │ │ ├── vanilla-fm-yml.ftl │ │ └── vanilla │ │ │ ├── README.ftl │ │ │ ├── gitignore.ftl │ │ │ └── pom.ftl │ │ ├── fm-doc-process-config-template.ftl │ │ └── macro │ │ └── DocHelperMacro.ftl │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── project │ │ └── facade │ │ ├── TestAddVenusFacade.java │ │ ├── TestDirect.java │ │ ├── TestFlavourExtraConfigFacade.java │ │ ├── TestInit.java │ │ ├── TestMojoVerify.java │ │ ├── TestVenusContext.java │ │ └── TestVersionCheck.java │ └── resources │ ├── config │ └── flavour-extra-config │ │ └── flavourtest-1-config.yml │ ├── direct │ ├── config │ │ └── venus-direct-config-1.yaml │ └── template │ │ └── test-doc.ftl │ ├── fj_doc_test │ ├── template-fail │ │ ├── test_01.ftl │ │ ├── test_02.ftl │ │ └── test_03.xml │ └── template │ │ ├── test_01.ftl │ │ └── test_02.ftl │ ├── ko1-pom │ └── pom.xml │ ├── log4j2.xml │ ├── maven │ └── pom.properties │ ├── ok1-pom │ └── pom.xml │ ├── ok2-pom │ └── pom.xml │ ├── ok3-pom │ └── pom.xml │ ├── ok4-pom │ └── pom.xml │ └── ok5-pom │ └── pom.xml ├── fj-doc-mod-fop ├── CHANGELOG.md ├── README.md ├── pom.xml └── src │ ├── main │ ├── config │ │ ├── native-helper-config.yaml │ │ └── reflect-config-nhg.json │ ├── docs │ │ ├── apache-fop-ref-accessibility.md │ │ └── apache-fop-ref.md │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ └── doc │ │ │ └── mod │ │ │ └── fop │ │ │ ├── FopConfig.java │ │ │ ├── FopConfigDefault.java │ │ │ ├── FopConfigWrap.java │ │ │ ├── FreeMarkerFopTypeHandler.java │ │ │ ├── FreeMarkerFopTypeHandlerUTF8.java │ │ │ ├── InitFopHandler.java │ │ │ ├── PdfFopTypeHandler.java │ │ │ ├── PoolUtils.java │ │ │ └── config │ │ │ ├── ClassLoaderResourceResolverWrapper.java │ │ │ ├── FopConfigClassLoaderWrapper.java │ │ │ └── ResourceResolverWrapper.java │ └── resources │ │ ├── META-INF │ │ └── native-image │ │ │ └── org.fugerit.java │ │ │ └── fj-doc-mod-fop │ │ │ ├── reflect-config.json │ │ │ └── resource-config.json │ │ ├── fj-doc-mod-fop-config.xml │ │ └── fj_doc_mod_fop_config │ │ ├── fm-fop-process-config.xml │ │ └── template │ │ ├── fop_doc.ftl │ │ └── macro │ │ ├── doc_element.ftl │ │ ├── doc_element_1-x.ftl │ │ └── doc_info.ftl │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── mod │ │ └── fop │ │ ├── DoNothingResourceResolver.java │ │ ├── TestAlt.java │ │ ├── TestFopConfig.java │ │ ├── TestInitFreeMarkerConfig.java │ │ ├── TestPdfFopTypeHandler.java │ │ ├── TestPdfFopTypePooledHandler.java │ │ └── TestResourceResolver.java │ └── resources │ ├── config │ ├── test_config_err1.xml │ ├── test_config_err2.xml │ └── test_config_ok.xml │ ├── fj-test-error-config.xml │ ├── fm-config.xml │ ├── fop-config-pdfa.xml │ ├── fop-config-pdfa_er.xml │ ├── fop-config-pdfua.xml │ ├── fop-config-pdfua_er.xml │ ├── fop-config.xml │ ├── log4j2.xml │ └── sample │ ├── doc_alt_01.xml │ ├── doc_test_01.xml │ └── doc_test_02_ko.xml ├── fj-doc-mod-opencsv ├── README.md ├── pom.xml └── src │ ├── main │ ├── config │ │ ├── native-helper-config.yaml │ │ └── reflect-config-nhg.json │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ └── doc │ │ │ └── mod │ │ │ └── opencsv │ │ │ ├── OpenCSVTypeHandler.java │ │ │ └── OpenCSVTypeHandlerUTF8.java │ └── resources │ │ └── META-INF │ │ └── native-image │ │ └── org.fugerit.java │ │ └── fj-doc-mod-opencsv │ │ ├── native-image.properties │ │ ├── reflect-config.json │ │ └── resource-config.json │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── mod │ │ └── opencsv │ │ └── coverage │ │ └── TestOpencsvCoverage.java │ └── resources │ ├── coverage │ └── xml │ │ ├── default_doc.xml │ │ ├── default_doc_alt.xml │ │ └── default_doc_fail1.xml │ └── log4j2.xml ├── fj-doc-mod-openpdf-ext ├── README.md ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── mod │ │ └── openpdf │ │ └── ext │ │ ├── HtmlTypeHandler.java │ │ ├── PdfTypeHandler.java │ │ └── helpers │ │ ├── CellParent.java │ │ ├── DocumentMetaHelper.java │ │ ├── DocumentParent.java │ │ ├── OpenPDFConfigHelper.java │ │ ├── OpenPdfDocTableHelper.java │ │ ├── OpenPdfFontHelper.java │ │ ├── OpenPdfHelper.java │ │ ├── OpenPpfDocHandler.java │ │ ├── ParentElement.java │ │ ├── PdfHelper.java │ │ └── PhraseParent.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── mod │ │ └── openpdf │ │ └── ext │ │ ├── TestDefaultDoc.java │ │ ├── TestDocBase.java │ │ ├── TestOpenPdfFontHelper.java │ │ ├── TestOpenPdfHelper.java │ │ ├── TestPdfHelper.java │ │ ├── TestPhraseParent.java │ │ └── TestSpec.java │ └── resources │ ├── fm-test-mod-openpdf-config.xml │ ├── font │ ├── TitilliumWeb-Bold.ttf │ ├── TitilliumWeb-BoldItalic.ttf │ ├── TitilliumWeb-Italic.ttf │ └── TitilliumWeb-Regular.ttf │ ├── log4j2.xml │ ├── test │ └── img_test_teal.jpg │ └── xml │ ├── default_doc.xml │ ├── default_doc_alt.xml │ ├── default_doc_fail1.xml │ ├── default_doc_pdfa.xml │ ├── default_doc_simple.xml │ └── test.xml ├── fj-doc-mod-openrtf-ext ├── README.md ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── mod │ │ └── openrtf │ │ └── ext │ │ ├── RtfTypeHandler.java │ │ └── helpers │ │ └── OpenRtfDocHandler.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── mod │ │ └── openrtf │ │ └── ext │ │ ├── TestDefaultDoc.java │ │ └── TestDocBase.java │ └── resources │ ├── fm-test-mod-openpdf-config.xml │ ├── font │ ├── TitilliumWeb-Bold.ttf │ ├── TitilliumWeb-BoldItalic.ttf │ ├── TitilliumWeb-Italic.ttf │ └── TitilliumWeb-Regular.ttf │ ├── log4j2.xml │ ├── test │ └── img_test_teal.jpg │ └── xml │ ├── default_doc.xml │ ├── default_doc_alt.xml │ ├── default_doc_fail1.xml │ └── test.xml ├── fj-doc-mod-poi ├── README.md ├── pom.xml └── src │ ├── main │ ├── config │ │ ├── native-helper-config.yaml │ │ └── reflect-config-nhg.json │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ └── doc │ │ │ └── mod │ │ │ └── poi │ │ │ ├── BasicPoiTypeHandler.java │ │ │ ├── PoiCellStyleModel.java │ │ │ ├── PoiUtils.java │ │ │ ├── WorkbookHelper.java │ │ │ ├── XlsPoiTypeHandler.java │ │ │ └── XlsxPoiTypeHandler.java │ └── resources │ │ └── META-INF │ │ └── native-image │ │ └── org.fugerit.java │ │ └── fj-doc-mod-poi │ │ ├── reflect-config.json │ │ └── resource-config.json │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── mod │ │ └── poi │ │ └── coverage │ │ ├── TestPOIUtils.java │ │ └── TestPoiCoverage.java │ └── resources │ ├── coverage │ ├── xls_as_xls.xls │ ├── xlsx_as_xlsx.xlsx │ └── xml │ │ ├── default_doc.xml │ │ ├── default_doc_alt.xml │ │ ├── default_doc_fail1.xml │ │ └── test_doc.xml │ └── log4j2.xml ├── fj-doc-native-quarkus ├── .dockerignore ├── .gitignore ├── README.md ├── pom.xml └── src │ ├── main │ ├── docker │ │ ├── Dockerfile.jvm │ │ ├── Dockerfile.legacy-jar │ │ ├── Dockerfile.native │ │ └── Dockerfile.native-micro │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ └── fjdocnativequarkus │ │ │ ├── AppInit.java │ │ │ ├── DocHelper.java │ │ │ ├── DocResource.java │ │ │ ├── GreetingConfig.java │ │ │ ├── GreetingResource.java │ │ │ └── People.java │ └── resources │ │ ├── application.yml │ │ └── fj-doc-native-quarkus │ │ ├── fm-doc-process-config.xml │ │ └── template │ │ └── document.ftl │ └── test │ └── java │ └── test │ └── org │ └── fugerit │ └── java │ └── fjdocnativequarkus │ ├── DocHelperTest.java │ ├── DocResourceIT.java │ ├── DocResourceTest.java │ ├── GreetingResourceIT.java │ └── GreetingResourceTest.java ├── fj-doc-playground-quarkus ├── .gitignore ├── Dockerfile ├── README.md ├── pom.xml └── src │ ├── main │ ├── docs │ │ └── asciidoc │ │ │ ├── attributes │ │ │ ├── _attributes-common.adoc │ │ │ └── _attributes-pdf.adoc │ │ │ ├── features │ │ │ ├── doc-config-convert.adoc │ │ │ ├── doc-conversion.adoc │ │ │ ├── doc-generator.adoc │ │ │ ├── doc-project-init.adoc │ │ │ ├── doc-type-validator.adoc │ │ │ └── home.adoc │ │ │ ├── index.adoc │ │ │ └── resources │ │ │ ├── images │ │ │ └── readme.txt │ │ │ └── themes │ │ │ ├── basic-theme.yml │ │ │ ├── book_cover_back_basic_v1.0.0.png │ │ │ └── book_cover_basic_v1.0.0.jpeg │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ ├── GreetingResource.java │ │ │ └── doc │ │ │ └── playground │ │ │ ├── InitPlayground.java │ │ │ ├── RestHelper.java │ │ │ ├── catalog │ │ │ ├── CatalogOutput.java │ │ │ └── CatalogRest.java │ │ │ ├── config │ │ │ ├── ConvertConfigFacade.java │ │ │ ├── ConvertConfigInput.java │ │ │ ├── ConvertConfigOutput.java │ │ │ └── ConvertConfigRest.java │ │ │ ├── convert │ │ │ ├── ConvertFacade.java │ │ │ ├── ConvertInput.java │ │ │ ├── ConvertOutput.java │ │ │ └── ConvertRest.java │ │ │ ├── doc │ │ │ ├── GenerateFacade.java │ │ │ ├── GenerateInput.java │ │ │ ├── GenerateOutput.java │ │ │ └── GenerateRest.java │ │ │ ├── facade │ │ │ ├── BasicInput.java │ │ │ ├── BasicOutput.java │ │ │ └── InputFacade.java │ │ │ ├── init │ │ │ ├── ProjectInitInput.java │ │ │ ├── ProjectInitOutput.java │ │ │ └── ProjectRest.java │ │ │ ├── meta │ │ │ └── MetaRest.java │ │ │ └── val │ │ │ ├── ValInput.java │ │ │ ├── ValOutput.java │ │ │ ├── ValRest.java │ │ │ └── ValUtils.java │ ├── react │ │ ├── .gitignore │ │ ├── README.md │ │ ├── index.html │ │ ├── package.json │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── index.html │ │ │ ├── logo.png │ │ │ ├── manifest.json │ │ │ ├── robots.txt │ │ │ └── vite.svg │ │ ├── src │ │ │ ├── App.css │ │ │ ├── App.js │ │ │ ├── App.jsx │ │ │ ├── App.test.js │ │ │ ├── Playground.jsx │ │ │ ├── common │ │ │ │ ├── PageHelp.jsx │ │ │ │ ├── app-service.jsx │ │ │ │ ├── fetch-service.jsx │ │ │ │ └── network-config.jsx │ │ │ ├── index.css │ │ │ ├── logo.svg │ │ │ ├── main.jsx │ │ │ ├── playground │ │ │ │ ├── DocCatalog.jsx │ │ │ │ ├── DocConfigConvert.jsx │ │ │ │ ├── DocConversion.jsx │ │ │ │ ├── DocProjectInit.jsx │ │ │ │ ├── DocValTestForm.jsx │ │ │ │ ├── DocXmlEditor.jsx │ │ │ │ ├── Home.jsx │ │ │ │ ├── Info.jsx │ │ │ │ └── Version.jsx │ │ │ ├── setupTests.js │ │ │ └── themes.jsx │ │ └── vite.config.js │ └── resources │ │ ├── META-INF │ │ └── resources │ │ │ ├── .gitignore │ │ │ ├── index.html │ │ │ └── playground │ │ │ └── index.html │ │ ├── application.yaml │ │ ├── catalog_res │ │ ├── convert-config-stub.properties │ │ └── doc-process-stub.xml │ │ ├── font │ │ ├── TitilliumWeb-Bold.ttf │ │ ├── TitilliumWeb-BoldItalic.ttf │ │ ├── TitilliumWeb-Italic.ttf │ │ └── TitilliumWeb-Regular.ttf │ │ ├── log4j2.xml │ │ └── playground-config │ │ └── fm-playground-doc-process.xml │ └── test │ ├── java │ └── org │ │ └── fugerit │ │ └── java │ │ ├── GreetingResourceIT.java │ │ ├── GreetingResourceTest.java │ │ ├── TestConsts.java │ │ └── doc │ │ └── playground │ │ ├── CatalogRestTest.java │ │ ├── ConfigConvertRestTest.java │ │ ├── ConvertRestTest.java │ │ ├── GenerateRestTest.java │ │ ├── InitRestTest.java │ │ ├── MetaRestTest.java │ │ ├── TestConvertFacade.java │ │ ├── TestGenerateFacade.java │ │ ├── TestRestHelper.java │ │ ├── ValRestTest.java │ │ └── ValUtilsTest.java │ └── resources │ └── request │ └── payload │ ├── convert │ ├── test_convert_input_01.json │ ├── test_convert_input_02.json │ ├── test_convert_input_03.json │ ├── test_convert_input_04.json │ ├── test_convert_input_05.json │ ├── test_convert_input_06.json │ ├── test_convert_input_07.json │ └── test_convert_input_08.json │ ├── convert_config │ ├── test_convert_config_1.json │ ├── test_convert_config_error.json │ ├── test_convert_config_ni1.json │ └── test_convert_config_ni2.json │ ├── generate │ ├── test_generate_input_01.json │ ├── test_generate_input_02.json │ ├── test_generate_input_03.json │ ├── test_generate_input_04.json │ ├── test_generate_input_05.json │ ├── test_generate_input_06.json │ ├── test_generate_input_07.json │ ├── test_generate_input_08.json │ ├── test_generate_input_09.json │ ├── test_generate_input_10.json │ └── test_generate_input_11.json │ ├── init │ ├── init_ko_1.json │ ├── init_ko_2.json │ ├── init_ko_3.json │ └── init_ok_1.json │ └── val │ ├── pdf_as_pdf.pdf │ └── png_as_pdf.pdf ├── fj-doc-sample ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ └── doc │ │ │ └── sample │ │ │ └── facade │ │ │ ├── DocCatalogEntry.java │ │ │ └── DocCatalogSample.java │ └── resources │ │ ├── config │ │ ├── doc-handler-sample.xml │ │ ├── freemarker-doc-process-pdf-a-ua.xml │ │ ├── freemarker-doc-process-test-doc-handler.xml │ │ └── freemarker-doc-process.xml │ │ ├── font │ │ ├── TitilliumWeb-Bold.ttf │ │ ├── TitilliumWeb-BoldItalic.ttf │ │ ├── TitilliumWeb-Italic.ttf │ │ └── TitilliumWeb-Regular.ttf │ │ ├── fop-config-pdf-a-ua.xml │ │ ├── fop-config-pdfa.xml │ │ ├── fop-config-pdfua.xml │ │ ├── fop-config.xml │ │ ├── free_marker │ │ ├── basic.ftl │ │ ├── color_test.ftl │ │ ├── format_test.ftl │ │ ├── include │ │ │ └── test_01_row.ftl │ │ ├── pdf_a_test.ftl │ │ ├── test_01.ftl │ │ ├── test_02.ftl │ │ ├── test_03.ftl │ │ └── test_fop_font.ftl │ │ ├── kts │ │ └── kotlin-01.kts │ │ ├── sample_docs │ │ ├── doc_catalog.xml │ │ ├── junit_base │ │ │ ├── autodoc_helper.xml │ │ │ ├── basic.xml │ │ │ ├── full_doc_header_footer.xml │ │ │ ├── handler_full_test.xml │ │ │ ├── intro_01.json │ │ │ ├── intro_01.xml │ │ │ ├── intro_01.yaml │ │ │ └── intro_02.xml │ │ └── playground │ │ │ ├── data │ │ │ ├── default.json │ │ │ ├── full-document.json │ │ │ ├── json-props-document.json │ │ │ ├── kotlin.json │ │ │ └── table-align.json │ │ │ ├── default_doc.ftl │ │ │ ├── default_doc.json │ │ │ ├── default_doc.xml │ │ │ ├── default_doc.yaml │ │ │ ├── doc_test_01.xml │ │ │ ├── full-document.ftl │ │ │ ├── full-document.json │ │ │ ├── full-document.xml │ │ │ ├── full-document.yaml │ │ │ ├── full_doc_header_footer.xml │ │ │ ├── json-props-document.ftl │ │ │ ├── sample-1.kts │ │ │ ├── sample-2.kts │ │ │ └── table-align.ftl │ │ ├── test │ │ ├── img_test_blue.png │ │ ├── img_test_green.png │ │ ├── img_test_red.png │ │ ├── img_test_teal.jpg │ │ └── img_test_teal.png │ │ └── venus-config-direct │ │ ├── data-model │ │ └── issue-426.yaml │ │ ├── venus-direct-config.yaml │ │ └── venus-template │ │ └── issue-426.ftl │ └── test │ ├── java │ ├── log4j2.xml │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── sample │ │ ├── TestSampleDirect.java │ │ ├── config │ │ └── TestDocHandlerFactory.java │ │ ├── coverage │ │ └── TestCoverageHelper.java │ │ ├── dev │ │ ├── AutodocDetailFullDocHelper.java │ │ ├── DevHelper.java │ │ ├── TestFo01.java │ │ ├── TestHtml01.java │ │ ├── TestItext2.java │ │ ├── TestMarkdown01.java │ │ └── TestXml01.java │ │ ├── facade │ │ ├── BasicFacadeTest.java │ │ ├── TestAutodocHelper.java │ │ ├── TestDocCatalogSample.java │ │ ├── TestDocFacadeSource.java │ │ ├── TestIntro01.java │ │ ├── TestIntro01Json.java │ │ ├── TestIntro01Yaml.java │ │ ├── TestIntro02.java │ │ └── TestKotlinScript.java │ │ ├── format │ │ ├── TestFormatBase.java │ │ └── TestPOI.java │ │ ├── freemarker │ │ ├── BasicFreeMarkerTest.java │ │ ├── TestDocHandlerFacade.java │ │ ├── TestFreeMarker01.java │ │ ├── TestFreeMarker01DataStep.java │ │ ├── TestFreeMarker01Fop.java │ │ ├── TestFreeMarker01FreeMarkerHtml.java │ │ ├── TestFreeMarker01FullFacade.java │ │ ├── TestFreeMarker02.java │ │ ├── TestFreeMarkerColorTest.java │ │ ├── TestFreeMarkerFopFont.java │ │ ├── TestFreeMarkerFormatTest.java │ │ ├── TestFreemarkerConfigValidation.java │ │ ├── TestPdfA.java │ │ ├── TestPdfADirect.java │ │ └── TestPdfAUA.java │ │ ├── handlertest │ │ ├── TestFullFopPDF.java │ │ ├── TestFullFreemarkerHTML.java │ │ └── TestHandleBase.java │ │ ├── model │ │ └── UserModel.java │ │ └── simpletable │ │ └── TestSimpleTable.java │ └── resources │ ├── coverage │ ├── default_doc.xml │ ├── default_doc_alt.xml │ └── default_doc_fail1.xml │ ├── dev │ ├── test-fo-01.fo │ ├── test-xml-01.xml │ └── test-xml-02.xml │ └── log4j2.xml ├── fj-doc-tool ├── CHANGELOG.md ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── fugerit │ │ │ └── java │ │ │ └── doc │ │ │ └── tool │ │ │ ├── DocTool.java │ │ │ └── handler │ │ │ └── GenerateStubHandler.java │ └── resources │ │ ├── help │ │ └── generate-stub.properties │ │ └── log4j2.xml │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── tool │ │ ├── TestConvertConfigTool.java │ │ ├── TestDocTool.java │ │ ├── TestFail.java │ │ ├── TestGenerateHelperTool.java │ │ └── TestGenerateStubTool.java │ └── resources │ ├── convert-config-test │ ├── doc-process-autodoc.xml │ ├── doc-process-sample.xml │ ├── doc-process-yaml.xml │ └── fop-process-config.xml │ ├── log4j2.xml │ └── params-test │ ├── convert-config-autodoc.properties │ ├── convert-config-fop.properties │ ├── convert-config-help.properties │ ├── convert-config-sample.properties │ ├── convert-config-yaml.properties │ ├── generate-stub-001.properties │ ├── generate-stub-002.properties │ ├── generate-stub-help.properties │ ├── test-fail-01.properties │ ├── test-fail-02.properties │ ├── test-fail-03.properties │ └── test-generate-helper.properties ├── fj-doc-val-core ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── val │ │ └── core │ │ ├── DocTypeValidationResult.java │ │ ├── DocTypeValidator.java │ │ ├── DocValidatorFacade.java │ │ ├── DocValidatorTypeCheck.java │ │ ├── basic │ │ ├── AbstractDocTypeValidator.java │ │ ├── ImageValidator.java │ │ └── XmlValidator.java │ │ └── io │ │ └── NopOutputStream.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── core │ │ └── val │ │ ├── HelperDocValidator.java │ │ ├── TestAllValidatorFacade.java │ │ ├── TestDocValidatorFacade.java │ │ ├── TestDocValidatorTypeCheck.java │ │ ├── TestImageValidator.java │ │ ├── TestNopOutputStream.java │ │ ├── TestTiffValidator.java │ │ └── TestXmlValidator.java │ └── resources │ ├── log4j2.xml │ └── sample │ ├── doc_as_doc.doc │ ├── docx_as_doc.doc │ ├── docx_as_docx.docx │ ├── jpg_as_jpg.jpeg │ ├── jpg_as_jpg.jpg │ ├── jpg_as_xlsx.xlsx │ ├── pdf_as_jpg.jpg │ ├── pdf_as_pdf.pdf │ ├── png_as_pdf.pdf │ ├── png_as_png.png │ ├── tiff_as_tiff.tif │ ├── tiff_as_tiff.tiff │ ├── xls_as_xls.xls │ ├── xls_as_xml.xml │ ├── xlsx_as_xls.xlsx │ ├── xlsx_as_xlsx.xlsx │ └── xml_as_xml.xml ├── fj-doc-val-p7m ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── val │ │ └── p7m │ │ ├── P7MContentValidator.java │ │ ├── P7MLegacyValidator.java │ │ ├── P7MPemValidator.java │ │ ├── P7MRawValidator.java │ │ ├── P7MUtils.java │ │ └── P7MValidator.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── val │ │ └── p7m │ │ ├── TestDocValidatorFacade.java │ │ ├── TestExtractContentP7M.java │ │ ├── TestP7MContentValidator.java │ │ └── TestP7MValidator.java │ └── resources │ ├── log4j2.xml │ └── sample │ ├── docx_as_docx.docx │ ├── pdf_as_pdf.p7m │ ├── pkcs7_test_ko1.p7m │ ├── pkcs7_test_ok1.p7m │ ├── pkcs7_test_ok2.p7m │ └── png_as_p7m.p7m ├── fj-doc-val-pdfbox ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── val │ │ └── pdf │ │ └── box │ │ ├── PdfboxStrictValidator.java │ │ ├── PdfboxUtils.java │ │ └── PdfboxValidator.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── pdfbox │ │ └── val │ │ ├── TestDocValidatorFacade.java │ │ ├── TestPdfboxStrictValidator.java │ │ └── TestPdfboxValidator.java │ └── resources │ ├── log4j2.xml │ └── sample │ ├── pdf_as_pdf.pdf │ ├── pdf_as_pdf_p7m.pdf │ └── png_as_pdf.pdf ├── fj-doc-val-poi ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── val │ │ └── poi │ │ ├── DocValidator.java │ │ ├── DocxValidator.java │ │ ├── XlsValidator.java │ │ └── XlsxValidator.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── poi │ │ └── val │ │ ├── TestDocValidatorFacade.java │ │ └── TestPoiValidator.java │ └── resources │ ├── log4j2.xml │ └── sample │ ├── doc_as_doc.doc │ ├── doc_as_docx.docx │ ├── docx_as_doc.doc │ ├── docx_as_docx.docx │ ├── jpg_as_xlsx.xlsx │ ├── xls_as_xls.xls │ ├── xlsx_as_xls.xlsx │ └── xlsx_as_xlsx.xlsx ├── fj-doc-val ├── README.md ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── val │ │ └── DocValidatorFacadeFactory.java │ └── test │ ├── java │ └── test │ │ └── org │ │ └── fugerit │ │ └── java │ │ └── doc │ │ └── val │ │ └── TestCreateFullFactory.java │ └── resources │ └── log4j2.xml ├── mvnw ├── mvnw.cmd └── pom.xml /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- 1 | { 2 | "image": "mcr.microsoft.com/devcontainers/universal:2", 3 | "features": {} 4 | } 5 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Do you have any questions about Fugerit Venus Doc usage? 4 | url: https://github.com/fugerit-org/fj-doc/discussions/categories/q-a 5 | about: For any question adn answer on the project 6 | - name: Do you have any ideas for new features or improvements? 7 | url: https://github.com/fugerit-org/fj-doc/discussions/categories/ideas 8 | about: Contribute with your feedback to improve the framework 9 | - name: Where can i find the documentation? 10 | url: https://venusdocs.fugerit.org/guide/ 11 | about: The official guide where is explained how to setup and use Fugerit Venus Doc -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "maven" # See documentation for possible values 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "weekly" 12 | -------------------------------------------------------------------------------- /.idea/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/.idea/icon.png -------------------------------------------------------------------------------- /.idea/icon_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/.idea/icon_dark.png -------------------------------------------------------------------------------- /.idea/readme.txt: -------------------------------------------------------------------------------- 1 | It contains just the idea logo 2 | -------------------------------------------------------------------------------- /.mvn/wrapper/.gitignore: -------------------------------------------------------------------------------- 1 | /maven-wrapper.jar 2 | -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar 3 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | venusdocs.fugerit.org -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of conduct 2 | 3 | refer to [fugerit-org](https://github.com/fugerit-org) [code of conduct](https://github.com/fugerit-org/fj-universe/blob/main/CODE_OF_CONDUCT.md). 4 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-slate -------------------------------------------------------------------------------- /docs/draw/00X_type_handler.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/docs/draw/00X_type_handler.odg -------------------------------------------------------------------------------- /docs/draw/10X_pipeline.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/docs/draw/10X_pipeline.odg -------------------------------------------------------------------------------- /docs/img/001_type_handler.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/docs/img/001_type_handler.gif -------------------------------------------------------------------------------- /docs/img/002_simple_doc_facade.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/docs/img/002_simple_doc_facade.gif -------------------------------------------------------------------------------- /docs/img/003_doc_handler_facade.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/docs/img/003_doc_handler_facade.gif -------------------------------------------------------------------------------- /docs/img/004_doc_process_config.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/docs/img/004_doc_process_config.gif -------------------------------------------------------------------------------- /docs/img/005_process_doc_facade.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/docs/img/005_process_doc_facade.gif -------------------------------------------------------------------------------- /docs/img/101_basic_pipeline.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/docs/img/101_basic_pipeline.gif -------------------------------------------------------------------------------- /docs/img/102_dynamic_pipeline.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/docs/img/102_dynamic_pipeline.gif -------------------------------------------------------------------------------- /fj-doc-base-json/src/main/docs/xml_conversion.md: -------------------------------------------------------------------------------- 1 | # XML conversion conventions 2 | 3 | As of version fj-doc-base-json 3.1.0 the conversion is made through the project [fj-xml-to-json](https://github.com/fugerit-org/fj-xml-to-json). 4 | 5 | see [xml_conversion on fj-xml-to-json](https://github.com/fugerit-org/fj-xml-to-json/blob/main/src/main/docs/xml_conversion.md) project. 6 | 7 | It should be backward compatible. -------------------------------------------------------------------------------- /fj-doc-base-json/src/main/java/org/fugerit/java/doc/json/ng/DocJsonParserNG.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.json.ng; 2 | 3 | import org.fugerit.java.doc.base.facade.DocFacadeSource; 4 | import org.fugerit.java.doc.json.parse.DocJsonParser; 5 | import org.fugerit.java.xml2json.XmlToJsonHandler; 6 | 7 | public class DocJsonParserNG extends DocJsonParser { 8 | 9 | public DocJsonParserNG() { 10 | super(DocFacadeSource.SOURCE_TYPE_JSON_NG, new XmlToJsonHandler( new XmlToJsonConverterNG() ) ); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-base-json/src/main/java/org/fugerit/java/doc/json/ng/DocXmlToJsonNG.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.json.ng; 2 | 3 | import org.fugerit.java.doc.json.parse.DocXmlToJson; 4 | import org.fugerit.java.xml2json.XmlToJsonHandler; 5 | 6 | public class DocXmlToJsonNG extends DocXmlToJson { 7 | 8 | public DocXmlToJsonNG() { 9 | super(new XmlToJsonHandler( new XmlToJsonConverterNG() ) ); 10 | } 11 | 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /fj-doc-base-json/src/main/java/org/fugerit/java/doc/json/parse/DocJsonFacade.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.json.parse; 2 | 3 | import java.io.Reader; 4 | 5 | import org.fugerit.java.doc.base.config.DocException; 6 | import org.fugerit.java.doc.base.model.DocBase; 7 | 8 | public class DocJsonFacade { 9 | 10 | private DocJsonFacade() {} // java:S1118 11 | 12 | public static DocBase parse( Reader is ) throws DocException { 13 | DocJsonParser parser = new DocJsonParser(); 14 | return parser.parse( is ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-base-json/src/main/java/org/fugerit/java/doc/json/parse/DocObjectMapperConstants.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.json.parse; 2 | 3 | public class DocObjectMapperConstants { 4 | 5 | private DocObjectMapperConstants() {} 6 | 7 | public static final String PROPERTY_XSD_VERSION = "xsd-version"; 8 | 9 | } 10 | -------------------------------------------------------------------------------- /fj-doc-base-json/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-base-kotlin/src/main/java/org/fugerit/java/doc/base/kotlin/dsl/Background.kt: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.kotlin.dsl 2 | 3 | /** 4 | * Background represents the background element. 5 | * 6 | * This class will provide function to handle all background attributes and kids 7 | */ 8 | class Background : HelperDSL.TagWithText( "background" ) { 9 | /** 10 | * Creates a new default Image instance. 11 | * @return the new instance. 12 | */ 13 | fun image( init: Image.() -> Unit = {} ): Image { 14 | return initTag(Image(), init); 15 | } 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /fj-doc-base-kotlin/src/main/java/org/fugerit/java/doc/base/kotlin/dsl/BookmarkTree.kt: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.kotlin.dsl 2 | 3 | /** 4 | * BookmarkTree represents the bookmark-tree element. 5 | * 6 | * This class will provide function to handle all bookmark-tree attributes and kids 7 | */ 8 | class BookmarkTree : HelperDSL.TagWithText( "bookmark-tree" ) { 9 | /** 10 | * Creates a new default Bookmark instance. 11 | * @return the new instance. 12 | */ 13 | fun bookmark( text: String = "", init: Bookmark.() -> Unit = {} ): Bookmark { 14 | return initTag(Bookmark(text), init); 15 | } 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /fj-doc-base-kotlin/src/main/java/org/fugerit/java/doc/base/kotlin/dsl/Br.kt: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.kotlin.dsl 2 | 3 | /** 4 | * Br represents the br element. 5 | * 6 | * This class will provide function to handle all br attributes and kids 7 | */ 8 | class Br : HelperDSL.TagWithText( "br" ) { 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-base-kotlin/src/main/java/org/fugerit/java/doc/base/kotlin/dsl/Nbsp.kt: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.kotlin.dsl 2 | 3 | /** 4 | * Nbsp represents the nbsp element. 5 | * 6 | * This class will provide function to handle all nbsp attributes and kids 7 | */ 8 | class Nbsp : HelperDSL.TagWithText( "nbsp" ) { 9 | 10 | /** 11 | * Function handling length attribute of the Nbsp with specific check on type. 12 | * @return the value for the length attribute. 13 | */ 14 | fun length( value: Int ): Nbsp = lengthType( this, "length", value ) 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-base-kotlin/src/main/java/org/fugerit/java/doc/base/kotlin/dsl/PageBreak.kt: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.kotlin.dsl 2 | 3 | /** 4 | * PageBreak represents the page-break element. 5 | * 6 | * This class will provide function to handle all page-break attributes and kids 7 | */ 8 | class PageBreak : HelperDSL.TagWithText( "page-break" ) { 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-base-kotlin/src/main/java/org/fugerit/java/doc/base/kotlin/dsl/Pl.kt: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.kotlin.dsl 2 | 3 | /** 4 | * Pl represents the pl element. 5 | * 6 | * This class will provide function to handle all pl attributes and kids 7 | */ 8 | class Pl : HelperDSL.TagWithText( "pl" ) { 9 | /** 10 | * Creates a new default Phrase instance. 11 | * @return the new instance. 12 | */ 13 | fun phrase( text: String = "", init: Phrase.() -> Unit = {} ): Phrase { 14 | return initTag(Phrase(text), init); 15 | } 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /fj-doc-base-kotlin/src/main/java/org/fugerit/java/doc/base/kotlin/dsl/dslDoc.kt: -------------------------------------------------------------------------------- 1 | @file:JvmName("dslDocKt") 2 | 3 | package org.fugerit.java.doc.base.kotlin.dsl 4 | 5 | /** 6 | * The base function for this domain specific language. 7 | */ 8 | fun dslDoc(block: Doc.() -> Unit): Doc = 9 | Doc().apply(block) -------------------------------------------------------------------------------- /fj-doc-base-kotlin/src/test/java/test/org/fugerit/java/doc/base/kotlin/parse/People.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.base.kotlin.parse; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Getter; 5 | 6 | @Getter 7 | @AllArgsConstructor 8 | public class People { 9 | 10 | private String name; 11 | 12 | private String surname; 13 | 14 | private String title; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-base-kotlin/src/test/resources/doc-dsl-sample/sample-2-coverage-h.kts: -------------------------------------------------------------------------------- 1 | import org.fugerit.java.doc.base.kotlin.dsl.dslDoc 2 | 3 | dslDoc { 4 | meta() 5 | body() 6 | } -------------------------------------------------------------------------------- /fj-doc-base-kotlin/src/test/resources/doc-dsl-sample/sample-2-coverage-i.kts: -------------------------------------------------------------------------------- 1 | import org.fugerit.java.doc.base.kotlin.dsl.dslDoc 2 | 3 | dslDoc { 4 | metadata() 5 | body() 6 | } -------------------------------------------------------------------------------- /fj-doc-base-kotlin/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-base-yaml/src/main/java/org/fugerit/java/doc/yaml/parse/DocJsonFacade.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.yaml.parse; 2 | 3 | import java.io.Reader; 4 | 5 | import org.fugerit.java.doc.base.config.DocException; 6 | import org.fugerit.java.doc.base.model.DocBase; 7 | 8 | public class DocJsonFacade { 9 | 10 | private DocJsonFacade() {} // java:S1118 11 | 12 | public static DocBase parse( Reader is ) throws DocException { 13 | DocYamlParser parser = new DocYamlParser(); 14 | return parser.parse( is ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-base-yaml/src/main/java/org/fugerit/java/doc/yaml/parse/DocYamlParser.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.yaml.parse; 2 | 3 | import org.fugerit.java.doc.base.facade.DocFacadeSource; 4 | import org.fugerit.java.doc.json.parse.DocJsonParser; 5 | import org.fugerit.java.xml2json.XmlToJsonHandler; 6 | 7 | import com.fasterxml.jackson.dataformat.yaml.YAMLMapper; 8 | 9 | public class DocYamlParser extends DocJsonParser { 10 | 11 | public DocYamlParser( XmlToJsonHandler handler ) { 12 | super( DocFacadeSource.SOURCE_TYPE_YAML, handler ); 13 | } 14 | 15 | public DocYamlParser() { 16 | this( new XmlToJsonHandler( new YAMLMapper() ) ); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /fj-doc-base-yaml/src/main/java/org/fugerit/java/doc/yaml/parse/DocYamlToXml.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.yaml.parse; 2 | 3 | import org.fugerit.java.doc.json.parse.DocJsonToXml; 4 | 5 | import com.fasterxml.jackson.databind.ObjectMapper; 6 | import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; 7 | 8 | public class DocYamlToXml extends DocJsonToXml { 9 | 10 | public DocYamlToXml() { 11 | super( new ObjectMapper( new YAMLFactory() ) ); 12 | } 13 | 14 | public DocYamlToXml(ObjectMapper mapper) { 15 | super(mapper); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /fj-doc-base-yaml/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/config/reflect-config-nhg.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "java.lang.Class", 4 | "methods": [ 5 | { "name": "getSimpleName", "parameterTypes": [] }, 6 | { "name": "getName", "parameterTypes": [] }, 7 | { "name": "getCanonicalName", "parameterTypes": [] } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/config/DocOutput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.config; 2 | 3 | import java.io.OutputStream; 4 | 5 | import lombok.Getter; 6 | 7 | public class DocOutput { 8 | 9 | @Getter private OutputStream os; 10 | 11 | @Getter private DocResult result; 12 | 13 | public DocOutput(OutputStream os) { 14 | super(); 15 | this.os = os; 16 | this.result = new DocResult(); 17 | } 18 | 19 | public static DocOutput newOutput( OutputStream os ) { 20 | return new DocOutput( os ); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/config/DocResult.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.config; 2 | 3 | import org.fugerit.java.core.lang.helpers.Result; 4 | 5 | public class DocResult extends Result { 6 | 7 | /** 8 | * 9 | */ 10 | private static final long serialVersionUID = -8959553583732082503L; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/config/DocTypeHandler.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.config; 2 | 3 | import java.io.Serializable; 4 | import java.nio.charset.Charset; 5 | 6 | import org.fugerit.java.core.util.collection.KeyString; 7 | 8 | public interface DocTypeHandler extends Serializable, KeyString { 9 | 10 | String getType(); 11 | 12 | String getModule(); 13 | 14 | String getMime(); 15 | 16 | String getFormat(); 17 | 18 | Charset getCharset(); 19 | 20 | void handle( DocInput docInput, DocOutput docOutput ) throws Exception; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/config/DocTypeHandlerXMLUTF8.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.config; 2 | 3 | public class DocTypeHandlerXMLUTF8 extends DocTypeHandlerDecorator { 4 | 5 | private static final long serialVersionUID = -8512962187951518109L; 6 | 7 | public static final DocTypeHandler HANDLER = new DocTypeHandlerXMLUTF8(); 8 | 9 | public DocTypeHandlerXMLUTF8() { 10 | super( DocTypeHandlerXML.HANDLER_UTF8 ); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/facade/DocFacadeSourceConfig.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.facade; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Getter; 5 | import lombok.NoArgsConstructor; 6 | import lombok.With; 7 | 8 | @NoArgsConstructor 9 | @AllArgsConstructor 10 | public class DocFacadeSourceConfig { 11 | 12 | public static final DocFacadeSourceConfig DEFAULT_CONFIG = new DocFacadeSourceConfig().withFailOnSourceModuleNotFound(false); 13 | 14 | @Getter @With private boolean failOnSourceModuleNotFound; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/helper/DefaultMimeHelper.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.helper; 2 | 3 | import java.util.Properties; 4 | 5 | import org.fugerit.java.core.util.PropsIO; 6 | 7 | public class DefaultMimeHelper { 8 | 9 | private DefaultMimeHelper() {} // java:S1118 10 | 11 | private static Properties props = PropsIO.loadFromClassLoaderSafe( "config/default_mime.xml" ); 12 | 13 | public static String getDefaultMime(String type) { 14 | return props.getProperty(type); 15 | } 16 | 17 | 18 | 19 | } 20 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/helper/DocHelperEuro.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.helper; 2 | 3 | import org.fugerit.java.doc.base.model.DocHelper; 4 | 5 | public class DocHelperEuro extends DocHelper { 6 | 7 | @Override 8 | public String filterText(String temp) { 9 | // no more needed to be specialized 10 | return temp; 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/model/DocBarcode.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.model; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | public class DocBarcode extends DocElement { 7 | 8 | public static final String TAG_NAME = "barcode"; 9 | 10 | /** 11 | * 12 | */ 13 | private static final long serialVersionUID = 887515352642661380L; 14 | 15 | @Getter @Setter private int size; 16 | 17 | @Getter @Setter private String text; 18 | 19 | @Getter @Setter private String type; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/model/DocHelper.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.model; 2 | 3 | /** 4 | *

Currently the DocHelper is not supported as the library moved to a less programmatic approach.

5 | * 6 | *

NOTE: the support may be added once again, or it may be deprecated / deleted in the future.

7 | * 8 | */ 9 | public class DocHelper { 10 | 11 | public static final DocHelper DEFAULT = new DocHelper(); 12 | 13 | public String filterText( String text ) { 14 | return text; 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/model/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | package javadoc description 5 | 6 | 7 |

Package containing classes and interfaces modeling the document.

8 |

The java model is built on the xml generation, defined by XSD

9 |

NB: it's anyway possible to generate use directly the java model.

10 | 11 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/parser/DocEvalWithDataModel.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.parser; 2 | 3 | import java.io.Reader; 4 | import java.util.Map; 5 | 6 | public interface DocEvalWithDataModel { 7 | 8 | /** 9 | * Function to eval data model 10 | * 11 | * @param reader reader on the script or template to be evaluated 12 | * @param dataModel the data model to evaluate 13 | * @return the content evaluated 14 | */ 15 | String evalWithDataModel(Reader reader, Map dataModel); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/parser/DocParserUtil.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.parser; 2 | 3 | import java.util.Properties; 4 | 5 | public class DocParserUtil { 6 | 7 | private DocParserUtil() {} 8 | 9 | public static String doubleNested( Properties atts, String key1, String key2 ) { 10 | return atts.getProperty( key1, atts.getProperty( key2 ) ); 11 | } 12 | 13 | public static int doubleNestedWithDefaultInt( Properties atts, String key1, String key2, String defValue ) { 14 | return Integer.valueOf( atts.getProperty( key1, atts.getProperty( key2, defValue ) ) ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/process/DocProcessData.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.process; 2 | 3 | import java.io.Reader; 4 | import java.io.StringReader; 5 | 6 | import org.fugerit.java.core.util.filterchain.MiniFilterData; 7 | 8 | public class DocProcessData implements MiniFilterData { 9 | 10 | private String currentXmlData; 11 | 12 | public String getCurrentXmlData() { 13 | return currentXmlData; 14 | } 15 | 16 | public void setCurrentXmlData(String currentXmlData) { 17 | this.currentXmlData = currentXmlData; 18 | } 19 | 20 | public Reader getCurrentXmlReader() { 21 | return new StringReader( this.getCurrentXmlData() ); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/process/DocProcessor.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.process; 2 | 3 | public interface DocProcessor { 4 | 5 | public int process( DocProcessContext context, DocProcessData data ) throws Exception; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/typehandler/markdown/SimpleMarkdownBasicTypeHandlerUTF8.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.typehandler.markdown; 2 | 3 | import org.fugerit.java.doc.base.config.DocTypeHandler; 4 | import org.fugerit.java.doc.base.config.DocTypeHandlerDecorator; 5 | 6 | public class SimpleMarkdownBasicTypeHandlerUTF8 extends DocTypeHandlerDecorator { 7 | 8 | private static final long serialVersionUID = 2821034278291920037L; 9 | 10 | public static final DocTypeHandler HANDLER = new SimpleMarkdownBasicTypeHandlerUTF8(); 11 | 12 | public SimpleMarkdownBasicTypeHandlerUTF8() { 13 | super( SimpleMarkdownBasicTypeHandler.HANDLER_UTF8 ); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/typehandler/markdown/SimpleMarkdownExtTypeHandlerUTF8.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.typehandler.markdown; 2 | 3 | import org.fugerit.java.doc.base.config.DocTypeHandler; 4 | import org.fugerit.java.doc.base.config.DocTypeHandlerDecorator; 5 | 6 | public class SimpleMarkdownExtTypeHandlerUTF8 extends DocTypeHandlerDecorator { 7 | 8 | private static final long serialVersionUID = 2821034278291920037L; 9 | 10 | public static final DocTypeHandler HANDLER = new SimpleMarkdownExtTypeHandlerUTF8(); 11 | 12 | public SimpleMarkdownExtTypeHandlerUTF8() { 13 | super( SimpleMarkdownExtTypeHandler.HANDLER_UTF8 ); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/java/org/fugerit/java/doc/base/xml/DocModelUtils.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.base.xml; 2 | 3 | import java.awt.Color; 4 | 5 | import org.fugerit.java.core.util.BinaryCalc; 6 | 7 | public class DocModelUtils { 8 | 9 | private DocModelUtils() {} 10 | 11 | public static Color parseHtmlColor( String c ) { 12 | int r = (int)BinaryCalc.hexToLong( c.substring( 1, 3 ) ); 13 | int g = (int)BinaryCalc.hexToLong( c.substring( 3, 5 ) ); 14 | int b = (int)BinaryCalc.hexToLong( c.substring( 5, 7 ) ); 15 | return new Color( r, g, b ); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/javadoc/overview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | overview javadoc description 5 | 6 | 7 |

Fugerit Doc Library (Framework for rendering document meta model in various formats)

8 |

9 | This project contains the basic meta model definition and the infrastructure for creating and configuring renders. 10 |

11 |

12 | You can find more informations about the project at 13 | fugerit.org and 14 | github 15 |

16 | 17 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/resources/META-INF/native-image/org.fugerit.java/fj-doc-base/native-image.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-base/src/main/resources/META-INF/native-image/org.fugerit.java/fj-doc-base/native-image.properties -------------------------------------------------------------------------------- /fj-doc-base/src/main/resources/META-INF/native-image/org.fugerit.java/fj-doc-base/resource-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "bundles": [], 3 | "resources": { 4 | "includes": [ 5 | {"pattern": "config/.*$"} 6 | ] 7 | } 8 | } -------------------------------------------------------------------------------- /fj-doc-base/src/main/resources/config/default_mime.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Default mime types, DocTypeHandler can override it 4 | application/pdf 5 | application/rtf 6 | text/xml 7 | application/vnd.ms-excel 8 | text/html 9 | -------------------------------------------------------------------------------- /fj-doc-base/src/main/resources/config/type-handler-default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/java/test/org/fugerit/java/doc/base/config/TestDocCharsetProvider.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.base.config; 2 | 3 | import org.fugerit.java.doc.base.config.DocCharsetProvider; 4 | 5 | import lombok.extern.slf4j.Slf4j; 6 | import org.junit.jupiter.api.Assertions; 7 | import org.junit.jupiter.api.Test; 8 | 9 | @Slf4j 10 | class TestDocCharsetProvider { 11 | 12 | @Test 13 | void testProvider() { 14 | DocCharsetProvider.setDefaultProvider( DocCharsetProvider.getDefaultProvider() ); 15 | log.info( "test : {}", DocCharsetProvider.getDefaultProvider() ); 16 | Assertions.assertNotNull( DocCharsetProvider.getDefaultProvider() ); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/java/test/org/fugerit/java/doc/base/coverage/TestDocTypeFacade.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.base.coverage; 2 | 3 | class TestDocTypeFacade { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/java/test/org/fugerit/java/doc/base/helper/TestTextWrapHelper.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.base.helper; 2 | 3 | import org.fugerit.java.doc.base.helper.TextWrapHelper; 4 | import org.junit.jupiter.api.Assertions; 5 | import org.junit.jupiter.api.Test; 6 | 7 | class TestTextWrapHelper { 8 | 9 | @Test 10 | void testWrap() { 11 | String input = "123"; 12 | String test = "1"+TextWrapHelper.ZERO_WITH_SPACE+"2"+TextWrapHelper.ZERO_WITH_SPACE+"3"+TextWrapHelper.ZERO_WITH_SPACE; 13 | String out = TextWrapHelper.padZeroWithSpace( input ); 14 | Assertions.assertEquals( test, out ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/java/test/org/fugerit/java/doc/base/model/HelperDocT.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.base.model; 2 | 3 | import org.fugerit.java.doc.base.model.DocElement; 4 | 5 | import lombok.extern.slf4j.Slf4j; 6 | 7 | @Slf4j 8 | class HelperDocT { 9 | 10 | public static final String TEST_ID = "1"; 11 | 12 | protected void baseTest( DocElement element ) { 13 | log.info( "id -> {}", element.getId() ); 14 | log.info( "toS -> {}", element ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/java/test/org/fugerit/java/doc/base/model/TestDocBackground.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.base.model; 2 | 3 | import org.fugerit.java.doc.base.model.DocBackground; 4 | import org.junit.jupiter.api.Assertions; 5 | import org.junit.jupiter.api.Test; 6 | 7 | class TestDocBackground extends HelperDocT { 8 | 9 | private String worker( DocBackground element ) { 10 | this.baseTest(element); 11 | return element.getId(); 12 | } 13 | 14 | @Test 15 | void testElement() { 16 | DocBackground element = new DocBackground(); 17 | element.setId( TEST_ID ); 18 | Assertions.assertNotNull( this.worker( element ) ); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/java/test/org/fugerit/java/doc/base/model/TestDocCell.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.base.model; 2 | 3 | import org.fugerit.java.doc.base.model.DocCell; 4 | import org.junit.jupiter.api.Assertions; 5 | import org.junit.jupiter.api.Test; 6 | 7 | import lombok.extern.slf4j.Slf4j; 8 | 9 | @Slf4j 10 | class TestDocCell { 11 | 12 | @Test 13 | void test1() { 14 | DocCell model = new DocCell(); 15 | model.setRSpan(0); 16 | model.setCSpan(0); 17 | log.info( "model -> {}", model ); 18 | Assertions.assertEquals( 1 , model.getRowSpan() ); 19 | Assertions.assertEquals( 1 , model.getColumnSpan() ); 20 | Assertions.assertFalse( model.isHeader() ); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/java/test/org/fugerit/java/doc/base/xml/TestDocModelUtils.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.base.xml; 2 | 3 | import java.awt.Color; 4 | 5 | import org.fugerit.java.doc.base.xml.DocModelUtils; 6 | import org.junit.jupiter.api.Assertions; 7 | import org.junit.jupiter.api.Test; 8 | 9 | class TestDocModelUtils { 10 | 11 | @Test 12 | void test1() { 13 | Assertions.assertEquals( Color.WHITE , DocModelUtils.parseHtmlColor("#FFFFFF") ); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/resources/coverage/config/doc-handler-sample.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/resources/coverage/config/doc-process-autodoc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/resources/coverage/xml/default_doc_empty.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-base/src/test/resources/test/img_test_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-base/src/test/resources/test/img_test_blue.png -------------------------------------------------------------------------------- /fj-doc-base/src/test/resources/test/img_test_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-base/src/test/resources/test/img_test_green.png -------------------------------------------------------------------------------- /fj-doc-base/src/test/resources/test/img_test_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-base/src/test/resources/test/img_test_red.png -------------------------------------------------------------------------------- /fj-doc-base/src/test/resources/test/img_test_teal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-base/src/test/resources/test/img_test_teal.jpg -------------------------------------------------------------------------------- /fj-doc-base/src/test/resources/test/img_test_teal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-base/src/test/resources/test/img_test_teal.png -------------------------------------------------------------------------------- /fj-doc-base/src/test/resources/txt/test.txt: -------------------------------------------------------------------------------- 1 | test text -------------------------------------------------------------------------------- /fj-doc-freemarker/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog for module fj-doc-lib-simpletable 2 | 3 | ## version 1.4.3-rc.001 4 | * Updated freemarker version to 2.3.32 5 | 6 | ## version 1.4.0-rc.001 7 | * Added GrallVM native support 8 | 9 | ## version 0.8.1 10 | * Now a single chain is used for both fragment and html 11 | * Added compatibility handling for version 1-x and 2-x 12 | -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/config/reflect-config-nhg.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "java.lang.Class", 4 | "methods": [ 5 | { "name": "getSimpleName", "parameterTypes": [] }, 6 | { "name": "getName", "parameterTypes": [] }, 7 | { "name": "getCanonicalName", "parameterTypes": [] } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/java/org/fugerit/java/doc/freemarker/asciidoc/FreeMarkerAsciidocTypeHandlerUTF8.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.freemarker.asciidoc; 2 | 3 | import org.fugerit.java.doc.base.config.DocTypeHandler; 4 | import org.fugerit.java.doc.base.config.DocTypeHandlerDecorator; 5 | 6 | public class FreeMarkerAsciidocTypeHandlerUTF8 extends DocTypeHandlerDecorator { 7 | 8 | public static final DocTypeHandler HANDLER = new FreeMarkerAsciidocTypeHandlerUTF8(); 9 | 10 | /** 11 | * 12 | */ 13 | private static final long serialVersionUID = -7394516771708L; 14 | 15 | public FreeMarkerAsciidocTypeHandlerUTF8() { 16 | super( FreeMarkerAsciidocTypeHandler.HANDLER_UTF8 ); 17 | } 18 | 19 | } -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/java/org/fugerit/java/doc/freemarker/html/FreeMarkerHtmlTypeHandlerUTF8.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.freemarker.html; 2 | 3 | import org.fugerit.java.doc.base.config.DocTypeHandler; 4 | import org.fugerit.java.doc.base.config.DocTypeHandlerDecorator; 5 | 6 | public class FreeMarkerHtmlTypeHandlerUTF8 extends DocTypeHandlerDecorator { 7 | 8 | public static final DocTypeHandler HANDLER = new FreeMarkerHtmlTypeHandlerUTF8(); 9 | 10 | /** 11 | * 12 | */ 13 | private static final long serialVersionUID = -7394516771708L; 14 | 15 | public FreeMarkerHtmlTypeHandlerUTF8() { 16 | super( FreeMarkerHtmlTypeHandler.HANDLER_UTF8 ); 17 | } 18 | 19 | } -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/java/org/fugerit/java/doc/freemarker/process/ChainStepModel.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.freemarker.process; 2 | 3 | import java.io.Serializable; 4 | import java.util.Properties; 5 | 6 | import lombok.Getter; 7 | import lombok.Setter; 8 | 9 | public class ChainStepModel implements Serializable { 10 | 11 | private static final long serialVersionUID = 622077549080786391L; 12 | 13 | @Getter @Setter private String stepType; 14 | 15 | @Getter @Setter private Properties attributes; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/java/org/fugerit/java/doc/freemarker/process/DefaultChainProvider.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.freemarker.process; 2 | 3 | import org.fugerit.java.core.util.filterchain.MiniFilterChain; 4 | 5 | public interface DefaultChainProvider { 6 | 7 | public MiniFilterChain newDefaultChain( String id ); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/java/org/fugerit/java/doc/freemarker/tool/model/ChainModel.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.freemarker.tool.model; 2 | 3 | import java.io.Serializable; 4 | import java.util.ArrayList; 5 | 6 | import lombok.Getter; 7 | import lombok.Setter; 8 | 9 | public class ChainModel implements Serializable { 10 | 11 | private static final long serialVersionUID = 3421438389573953861L; 12 | 13 | @Getter private ArrayList stepList; 14 | 15 | @Getter @Setter private String id; 16 | 17 | @Getter @Setter private String parent; 18 | 19 | public ChainModel( String id ) { 20 | this.setId( id ); 21 | this.stepList = new ArrayList<>(); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/java/org/fugerit/java/doc/freemarker/tool/model/ConfigModel.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.freemarker.tool.model; 2 | 3 | import java.io.Serializable; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | 7 | import lombok.Getter; 8 | 9 | public class ConfigModel implements Serializable { 10 | 11 | private static final long serialVersionUID = 5198896174327509127L; 12 | 13 | @Getter private List chainList; 14 | 15 | public ConfigModel() { 16 | this.chainList = new ArrayList<>(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/java/org/fugerit/java/doc/freemarker/tool/verify/VerifyTemplateInfo.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.freemarker.tool.verify; 2 | 3 | import lombok.*; 4 | 5 | @ToString 6 | @AllArgsConstructor 7 | @RequiredArgsConstructor 8 | public class VerifyTemplateInfo { 9 | 10 | @Getter 11 | @NonNull 12 | private Integer resultCode; 13 | 14 | @Getter 15 | @NonNull 16 | private String templateId; 17 | 18 | @Getter 19 | private Exception exception; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/resources/META-INF/native-image/org.fugerit.java/fj-doc-freemarker/native-image.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-freemarker/src/main/resources/META-INF/native-image/org.fugerit.java/fj-doc-freemarker/native-image.properties -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/resources/META-INF/native-image/org.fugerit.java/fj-doc-freemarker/resource-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "bundles": [], 3 | "resources": { 4 | "includes": [ 5 | {"pattern": "fj_doc_freemarker_config/.*$"} 6 | ] 7 | } 8 | } -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/resources/config_fm_xsd/schema-validator-config-freemarker.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/resources/fj_doc_freemarker_config/template/asciidoc.ftl: -------------------------------------------------------------------------------- 1 | <#import "macro/ascidoc-element.ftl" as doc_element> 2 | <#if (docBase.infoDocTitle)??>= ${docBase.infoDocTitle} 3 | <#if (docBase.infoDocAuthor)??>${docBase.infoDocAuthor} 4 | <#if (docBase.infoDocSubject)??>:description: ${docBase.infoDocSubject} 5 | <#if (docBase.infoDocSubject)??>:lang: ${docBase.infoDocLanguage} 6 | 7 | <#list docBase.docBody.elementList as item> 8 | <@doc_element.handleElement current=item/> 9 | -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/resources/fj_doc_freemarker_config/template/html_fragment.ftl: -------------------------------------------------------------------------------- 1 | <#import "/macro/html_element.ftl" as doc_element> 2 |
3 | <#list docBase.docBody.elementList as item> 4 | <@doc_element.handleElement current=item/> 5 | 6 |
-------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/resources/fj_doc_freemarker_config/template/macro/feature-escape-html.ftl: -------------------------------------------------------------------------------- 1 | <#macro printText e>${e.text?html} -------------------------------------------------------------------------------- /fj-doc-freemarker/src/main/resources/fj_doc_freemarker_config/template/macro/feature-escape-none.ftl: -------------------------------------------------------------------------------- 1 | <#macro printText e>${e.text} -------------------------------------------------------------------------------- /fj-doc-freemarker/src/test/java/test/org/fugerit/java/doc/freemarker/process/People.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.freemarker.process; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Getter; 5 | 6 | @Getter 7 | @AllArgsConstructor 8 | public class People { 9 | 10 | private String name; 11 | 12 | private String surname; 13 | 14 | private String title; 15 | 16 | } -------------------------------------------------------------------------------- /fj-doc-freemarker/src/test/java/test/org/fugerit/java/doc/freemarker/process/TestFreeMarkerConstants.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.freemarker.process; 2 | 3 | import org.fugerit.java.doc.base.process.DocProcessContext; 4 | import org.fugerit.java.doc.freemarker.config.FreeMarkerConstants; 5 | import org.junit.jupiter.api.Assertions; 6 | import org.junit.jupiter.api.Test; 7 | 8 | class TestFreeMarkerConstants { 9 | 10 | @Test 11 | void testFreeMarkerConstants() { 12 | Assertions.assertNotNull(FreeMarkerConstants.getFreeMarkerMap(DocProcessContext.newContext())); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /fj-doc-freemarker/src/test/resources/fj_doc_test/template-macro/macro/macro.ftl: -------------------------------------------------------------------------------- 1 | <#macro simpleMacro param1>Print param1 : ${param1} -------------------------------------------------------------------------------- /fj-doc-freemarker/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /fj-doc-freemarker/src/test/resources/test/img_test_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-freemarker/src/test/resources/test/img_test_blue.png -------------------------------------------------------------------------------- /fj-doc-freemarker/src/test/resources/test/img_test_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-freemarker/src/test/resources/test/img_test_green.png -------------------------------------------------------------------------------- /fj-doc-freemarker/src/test/resources/test/img_test_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-freemarker/src/test/resources/test/img_test_red.png -------------------------------------------------------------------------------- /fj-doc-freemarker/src/test/resources/test/img_test_teal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-freemarker/src/test/resources/test/img_test_teal.jpg -------------------------------------------------------------------------------- /fj-doc-freemarker/src/test/resources/test/img_test_teal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-freemarker/src/test/resources/test/img_test_teal.png -------------------------------------------------------------------------------- /fj-doc-guide/src/css/default_venus_docs_style.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Arial, Helvetica, sans-serif; 3 | background-color: #303030; 4 | color: #90DD90; 5 | } 6 | 7 | /* unvisited link */ 8 | a:link { 9 | color: #EE6096; 10 | } 11 | 12 | /* visited link */ 13 | a:visited { 14 | color: #EE6096; 15 | } 16 | 17 | /* mouse over link */ 18 | a:hover { 19 | color: #EE6096; 20 | } 21 | 22 | /* selected link */ 23 | a:active { 24 | color: #EE6096; 25 | } -------------------------------------------------------------------------------- /fj-doc-guide/src/main/docs/asciidoc/attributes/_attributes-common.adoc: -------------------------------------------------------------------------------- 1 | :author: Matteo Franci 2 | :revnumber: v1.0.0 3 | :revdate: October 15, 2024 4 | :email: m@fugerit.org 5 | :description: Fugerit Doc Venus : document generation framework 6 | :keywords: java, xml, json, yaml, kotlin, pdf, html, xlsx, csv, document generation 7 | :encoding: utf-8 8 | :lang: en 9 | :toc: left 10 | :hardbreaks-option: 11 | :sectnums: 12 | :sectnumlevels: 3 13 | :!figure-caption: 14 | :!chapter-signifier: 15 | -------------------------------------------------------------------------------- /fj-doc-guide/src/main/docs/asciidoc/attributes/_attributes-pdf.adoc: -------------------------------------------------------------------------------- 1 | :doctype: book 2 | -------------------------------------------------------------------------------- /fj-doc-guide/src/main/docs/asciidoc/chapters/03_doc_format.adoc: -------------------------------------------------------------------------------- 1 | <<< 2 | [#doc-format-entry-point] 3 | == The Doc Source Format 4 | 5 | The Doc Source Format is the basic of Fugerit Venus Doc library. 6 | -------------------------------------------------------------------------------- /fj-doc-guide/src/main/docs/asciidoc/chapters/07_001_doc-faq-create-project.adoc: -------------------------------------------------------------------------------- 1 | [#doc-daq-create-project] 2 | === How do I create a new project using Fugerit Venus Doc? 3 | 4 | It is possible to simply run the plugin : 5 | 6 | [source,shell] 7 | ---- 8 | mvn org.fugerit.java:fj-doc-maven-plugin:init \ 9 | -DgroupId=org.example.doc \ 10 | -DartifactId=fugerit-demo \ 11 | -Dextensions=base,freemarker,mod-fop 12 | ---- 13 | 14 | For more information see : xref:#maven-plugin-goal-init[Maven Plugin Goal Init]. 15 | -------------------------------------------------------------------------------- /fj-doc-guide/src/main/docs/asciidoc/chapters/07_doc-faq.adoc: -------------------------------------------------------------------------------- 1 | <<< 2 | [#doc-faq] 3 | == Frequently asked questions (FAQ) 4 | 5 | This sections contains some answers to frequently asked questions. -------------------------------------------------------------------------------- /fj-doc-guide/src/main/docs/asciidoc/chapters/08_doc-optmization.adoc: -------------------------------------------------------------------------------- 1 | <<< 2 | [#doc-optimization] 3 | == Optimizations 4 | 5 | In this chapter the main Venus optimizations ara described. 6 | -------------------------------------------------------------------------------- /fj-doc-guide/src/main/docs/asciidoc/resources/images/readme.txt: -------------------------------------------------------------------------------- 1 | images go here -------------------------------------------------------------------------------- /fj-doc-guide/src/main/docs/asciidoc/resources/themes/book_cover_back_basic_v1.0.0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-guide/src/main/docs/asciidoc/resources/themes/book_cover_back_basic_v1.0.0.png -------------------------------------------------------------------------------- /fj-doc-guide/src/main/docs/asciidoc/resources/themes/book_cover_basic_v1.0.0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-guide/src/main/docs/asciidoc/resources/themes/book_cover_basic_v1.0.0.png -------------------------------------------------------------------------------- /fj-doc-lib-autodoc/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog for module fj-doc-lib-simpletable 2 | 3 | ## version 0.5.10 - 2022-12-12 4 | * Added maximum table width 5 | * Added doc language support 6 | 7 | ## version 0.5.9 - 2022-12-11 8 | * Added support for cell style and align 9 | -------------------------------------------------------------------------------- /fj-doc-lib-autodoc/src/main/java/org/fugerit/java/doc/lib/autodoc/AutodocModule.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.lib.autodoc; 2 | 3 | import lombok.Getter; 4 | 5 | public class AutodocModule { 6 | 7 | public static final String CURRENT_VERSION = "1.0.0"; 8 | 9 | @Getter private String version; 10 | 11 | public AutodocModule() { 12 | this.version = CURRENT_VERSION; 13 | } 14 | 15 | public static final String DEFAULT_HTML_CSS_LINK = "https://venusdocs.fugerit.org/fj-doc-guide/src/css/default_venus_docs_style.css"; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-lib-autodoc/src/main/java/org/fugerit/java/doc/lib/autodoc/parser/model/AutodocChoice.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.lib.autodoc.parser.model; 2 | 3 | import org.xmlet.xsdparser.xsdelements.XsdChoice; 4 | 5 | public class AutodocChoice extends AutodocMulti { 6 | 7 | 8 | /** 9 | * 10 | */ 11 | private static final long serialVersionUID = 6551113305251367239L; 12 | 13 | public AutodocChoice(XsdChoice content) { 14 | super(content); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-lib-autodoc/src/main/java/org/fugerit/java/doc/lib/autodoc/parser/model/AutodocSequence.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.lib.autodoc.parser.model; 2 | 3 | import org.xmlet.xsdparser.xsdelements.XsdSequence; 4 | 5 | public class AutodocSequence extends AutodocMulti { 6 | 7 | /** 8 | * 9 | */ 10 | private static final long serialVersionUID = -3570826182659230472L; 11 | 12 | public AutodocSequence(XsdSequence content) { 13 | super(content); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-lib-autodoc/src/main/resources/fj_doc_lib_autodoc/i18n/label_en.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-lib-autodoc/src/main/resources/fj_doc_lib_autodoc/i18n/label_en.properties -------------------------------------------------------------------------------- /fj-doc-lib-autodoc/src/main/resources/fj_doc_lib_autodoc/i18n/label_it.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-lib-autodoc/src/main/resources/fj_doc_lib_autodoc/i18n/label_it.properties -------------------------------------------------------------------------------- /fj-doc-lib-autodoc/src/main/resources/fj_doc_lib_autodoc/template/autodoc_common.ftl: -------------------------------------------------------------------------------- 1 | <#macro printMetaInfo props info><#if (props[info])??> -------------------------------------------------------------------------------- /fj-doc-lib-autodoc/src/test/java/test/org/fugerit/java/doc/lib/autodoc/TestAutodocModule.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.lib.autodoc; 2 | 3 | import org.fugerit.java.doc.lib.autodoc.AutodocModule; 4 | import org.junit.jupiter.api.Assertions; 5 | import org.junit.jupiter.api.Test; 6 | 7 | class TestAutodocModule { 8 | 9 | @Test 10 | void testModule() { 11 | Assertions.assertEquals( AutodocModule.CURRENT_VERSION , new AutodocModule().getVersion() ); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /fj-doc-lib-autodoc/src/test/java/test/org/fugerit/java/doc/lib/autodoc/meta/TestGenerateDocMetaInfo.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.lib.autodoc.meta; 2 | 3 | import org.fugerit.java.doc.freemarker.html.FreeMarkerHtmlTypeHandler; 4 | import org.junit.jupiter.api.Assertions; 5 | import org.junit.jupiter.api.Test; 6 | 7 | class TestGenerateDocMetaInfo extends GenerateDocHelper { 8 | 9 | @Test 10 | void generateHtml() { 11 | boolean ok = this.docWorker( "docs/meta_xml/adm_standard_meta_info.xml" , "../docs/html/doc_meta_info.html", FreeMarkerHtmlTypeHandler.HANDLER_UTF8 ); 12 | Assertions.assertTrue( ok ); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /fj-doc-lib-autodoc/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-lib-direct/src/main/java/org/fugerit/java/doc/lib/direct/config/VenusDirectConfigHandler.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.lib.direct.config; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | public class VenusDirectConfigHandler { 7 | 8 | @Getter @Setter 9 | private String type; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-lib-direct/src/main/java/org/fugerit/java/doc/lib/direct/config/VenusDirectConfigOutput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.lib.direct.config; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | public class VenusDirectConfigOutput { 7 | 8 | @Getter @Setter 9 | private String outputId; 10 | 11 | @Getter @Setter 12 | private String chainId; 13 | 14 | @Getter @Setter 15 | private String handlerId; 16 | 17 | @Getter @Setter 18 | private String file; 19 | 20 | } 21 | -------------------------------------------------------------------------------- /fj-doc-lib-direct/src/test/resources/data-model/data-model-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "docTitle": "Venus Direct Extension - Test Doc - JSON" 3 | } -------------------------------------------------------------------------------- /fj-doc-lib-direct/src/test/resources/data-model/data-model-1.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | docTitle: 'Venus Direct Extension - Test Doc - YAML' -------------------------------------------------------------------------------- /fj-doc-lib-kotlin/src/test/resources/generate-kotlin/config.properties: -------------------------------------------------------------------------------- 1 | source-output-folder = ../fj-doc-base-kotlin/src/main/java 2 | dsl-package = org.fugerit.java.doc.base.kotlin.dsl 3 | dsl-main-fun = dslDoc 4 | root-element = doc 5 | root-init = \tinit {\n\ 6 | \t\tatt( "xmlns", "http://javacoredoc.fugerit.org" )\n\ 7 | \t\tatt( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" )\n\ 8 | \t\tatt( "xsi:schemaLocation", "http://javacoredoc.fugerit.org http://www.fugerit.org/data/java/doc/xsd/doc-2-1.xsd" )\n\ 9 | \t}\n -------------------------------------------------------------------------------- /fj-doc-lib-kotlin/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-lib-simpletable-import/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog for module fj-doc-lib-simpletable-import 2 | 3 | ## version 1.1.2-rc.001- 2023-07-07 4 | * Basic support for xlsx to simple table conversion 5 | * Basic support for csv to simple table conversion 6 | -------------------------------------------------------------------------------- /fj-doc-lib-simpletable-import/src/test/resources/xlsx/simple_table_01.csv: -------------------------------------------------------------------------------- 1 | Name,Surname,Title 2 | Luthien,Tinuviel,Queen 3 | Thorin,Oakshield,King 4 | -------------------------------------------------------------------------------- /fj-doc-lib-simpletable-import/src/test/resources/xlsx/simple_table_01.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-lib-simpletable-import/src/test/resources/xlsx/simple_table_01.xlsx -------------------------------------------------------------------------------- /fj-doc-lib-simpletable/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog for module fj-doc-lib-simpletable 2 | 3 | ## version 0.5.10 - 2022-12-12 4 | * Added maximum table width 5 | * Added doc language support 6 | 7 | ## version 0.5.9 - 2022-12-11 8 | * Added support for cell style and align 9 | -------------------------------------------------------------------------------- /fj-doc-lib-simpletable/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/README.md: -------------------------------------------------------------------------------- 1 | # Fugerit Document Generation Framework (fj-doc) 2 | 3 | ## Fugerit Venus Doc Maven Plugin 4 | 5 | [back to fj-doc index](../README.md) 6 | 7 | *Description* : 8 | 9 | Ability to add fj-doc configuration to an existing project 10 | 11 | *Status* : 12 | 13 | All basic features are implemented. 14 | 15 | *Since* : fj-doc 8.6.0 16 | 17 | For more information refer to [fj-doc-maven-plugin official guide](https://venusdocs.fugerit.org/guide/#maven-plugin-entry). -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/java/org/fugerit/java/doc/project/facade/VenusConsts.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.project.facade; 2 | 3 | public class VenusConsts { 4 | 5 | private VenusConsts() {} 6 | 7 | public static final String GROUP_ID = "org.fugerit.java"; 8 | 9 | public static final String KEY_VERSION = "fj-doc-version"; 10 | 11 | public static final String KEY_VERSION_VAR = "${fj-doc-version}"; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/java/org/fugerit/java/doc/project/facade/flavour/FlavourConfig.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.project.facade.flavour; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import java.util.List; 7 | 8 | public class FlavourConfig { 9 | 10 | @Getter @Setter 11 | private String flavour; 12 | 13 | @Getter @Setter 14 | private List process; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/java/org/fugerit/java/doc/project/facade/flavour/ProcessEntry.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.project.facade.flavour; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import lombok.ToString; 6 | 7 | @ToString 8 | public class ProcessEntry { 9 | 10 | @Getter @Setter 11 | private String from; 12 | 13 | @Getter @Setter 14 | private String to; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/java/org/fugerit/java/doc/project/facade/flavour/extra/FlavourExtraConfig.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.project.facade.flavour.extra; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import java.util.Map; 7 | 8 | public class FlavourExtraConfig { 9 | 10 | @Getter @Setter 11 | private Map paramConfig; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/java/org/fugerit/java/doc/project/facade/flavour/extra/ParamConfig.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.project.facade.flavour.extra; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | import java.util.List; 7 | 8 | public class ParamConfig { 9 | 10 | @Getter @Setter 11 | private List acceptOnly; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/feature/direct-copy.txt: -------------------------------------------------------------------------------- 1 | src/main/resources/venus-direct-config/template/sample-doc.ftl 2 | src/main/resources/venus-direct-config/data-model/sample-model.json 3 | src/main/resources/venus-direct-config/data-model/sample-model.yaml 4 | README_DIRECT.md 5 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/feature/direct/README_DIRECT.md: -------------------------------------------------------------------------------- 1 | # fj-doc-maven-plugin : 'direct' goal 2 | 3 | this project is configured for 'direct' Venus Docs generation. -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/feature/direct/src/main/resources/venus-direct-config/data-model/sample-model.json: -------------------------------------------------------------------------------- 1 | { 2 | "docTitle": "Venus Direct Extension - Sample Doc - JSON", 3 | "listPeople": [ 4 | { "name":"Luthien", "surname":"Tinuviel", "title":"Queen" }, 5 | { "name":"Thorin", "surname":"Oakshield", "title":"King" } 6 | ] 7 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/feature/direct/src/main/resources/venus-direct-config/data-model/sample-model.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | docTitle: 'Venus Direct Extension - Sample Doc - YAML' 3 | listPeople: 4 | - name: "Luthien" 5 | surname: "Tinuviel" 6 | title: "Queen" 7 | - name: "Thorin" 8 | surname: "Oakshield" 9 | title: "King" -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour-extra-config/direct-config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | paramConfig: 3 | addLombok: 4 | acceptOnly: 5 | - true 6 | addDirectPlugin: 7 | acceptOnly: 8 | - true -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour-extra-config/micronaut-4-config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | paramConfig: 3 | addLombok: 4 | acceptOnly: 5 | - true 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour-extra-config/openliberty-config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | paramConfig: 3 | addLombok: 4 | acceptOnly: 5 | - true 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour-extra-config/quarkus-2-config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | paramConfig: 3 | addLombok: 4 | acceptOnly: 5 | - true 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour-extra-config/quarkus-3-config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | paramConfig: 3 | addLombok: 4 | acceptOnly: 5 | - true 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour-extra-config/quarkus-3-gradle-config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | paramConfig: 3 | addLombok: 4 | acceptOnly: 5 | - true 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour-extra-config/quarkus-3-gradle-kts-config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | paramConfig: 3 | addLombok: 4 | acceptOnly: 5 | - true 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour-extra-config/quarkus-3-properties-config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | paramConfig: 3 | addLombok: 4 | acceptOnly: 5 | - true 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour-extra-config/springboot-3-config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | paramConfig: 3 | addLombok: 4 | acceptOnly: 5 | - true 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/direct-copy.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-maven-plugin/src/main/resources/config/flavour/direct-copy.txt -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/flavour_versions_default.properties: -------------------------------------------------------------------------------- 1 | # default flavour versions 2 | quarkus-3=3.23.2 3 | quarkus-3-gradle=3.23.2 4 | quarkus-3-gradle-kts=3.23.2 5 | quarkus-3-properties=3.23.2 6 | quarkus-2=2.16.12.Final 7 | micronaut-4=4.8.2 8 | springboot-3=3.4.5 9 | openliberty=25.0.0.4 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/micronaut-4-copy.txt: -------------------------------------------------------------------------------- 1 | aot-jar.properties 2 | aot-native-image.properties 3 | openapi.properties 4 | micronaut-cli.yml 5 | src/main/resources/logback.xml 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/micronaut-4/micronaut-cli.yml: -------------------------------------------------------------------------------- 1 | applicationType: default 2 | defaultPackage: org.fugerit.java.demo 3 | testFramework: junit 4 | sourceLanguage: java 5 | buildTool: maven 6 | features: [app-name, graalvm, http-client-test, java, java-application, junit, logback, maven, maven-enforcer-plugin, micronaut-aot, micronaut-http-validation, netty-server, openapi, openapi-explorer, readme, serialization-jackson, shade, static-resources, yaml, yaml-build] 7 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/micronaut-4/openapi.properties: -------------------------------------------------------------------------------- 1 | swagger-ui.enabled=false 2 | redoc.enabled=false 3 | openapi-explorer.enabled=true 4 | rapidoc.enabled=false 5 | rapidoc.bg-color=#14191f 6 | rapidoc.text-color=#aec2e0 7 | rapidoc.sort-endpoints-by=method 8 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/micronaut-4/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | %cyan(%d{HH:mm:ss.SSS}) %gray([%thread]) %highlight(%-5level) %magenta(%logger{36}) - %msg%n 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/openliberty-copy.txt: -------------------------------------------------------------------------------- 1 | Dockerfile 2 | .dockerignore 3 | src/main/resources/META-INF/microprofile-config.properties 4 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/openliberty/.dockerignore: -------------------------------------------------------------------------------- 1 | target/ 2 | !target/*.war 3 | !target/liberty/wlp/usr/shared/resources/* 4 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/openliberty/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | pom.xml.tag 3 | pom.xml.releaseBackup 4 | pom.xml.versionsBackup 5 | pom.xml.next 6 | release.properties 7 | dependency-reduced-pom.xml 8 | buildNumber.properties 9 | .mvn/timing.properties 10 | # https://github.com/takari/maven-wrapper#usage-without-binary-jar 11 | .mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/openliberty/Dockerfile: -------------------------------------------------------------------------------- 1 | 2 | FROM icr.io/appcafe/open-liberty:kernel-slim-java21-openj9-ubi-minimal 3 | 4 | COPY --chown=1001:0 /src/main/liberty/config /config 5 | 6 | RUN features.sh 7 | 8 | COPY --chown=1001:0 target/*.war /config/apps 9 | 10 | RUN configure.sh 11 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/openliberty/src/main/java/org/fugerit/java/template/rest/GreetingResource.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.template.rest; 2 | 3 | import jakarta.ws.rs.GET; 4 | import jakarta.ws.rs.Path; 5 | import jakarta.ws.rs.Produces; 6 | import jakarta.ws.rs.core.MediaType; 7 | 8 | @Path("/hello") 9 | public class GreetingResource { 10 | 11 | @GET 12 | @Produces(MediaType.TEXT_PLAIN) 13 | public String hello() { 14 | return "Hello from Open Liberty REST"; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/openliberty/src/main/java/org/fugerit/java/template/rest/RestApplication.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.template.rest; 2 | 3 | import jakarta.ws.rs.ApplicationPath; 4 | import jakarta.ws.rs.core.Application; 5 | 6 | @ApplicationPath("/") 7 | public class RestApplication extends Application { 8 | 9 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/openliberty/src/main/liberty/config/server.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | mpHealth-4.0 4 | restfulWS-3.1 5 | mpOpenAPI-3.1 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/openliberty/src/main/resources/META-INF/microprofile-config.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-maven-plugin/src/main/resources/config/flavour/openliberty/src/main/resources/META-INF/microprofile-config.properties -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/openliberty/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | Liberty Project 5 | 6 | 7 | index.html 8 | 9 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/quarkus-2-copy.txt: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | src/main/docker/Dockerfile.native 3 | src/main/docker/Dockerfile.native-micro 4 | src/main/docker/Dockerfile.legacy-jar 5 | src/main/docker/Dockerfile.jvm 6 | src/main/resources/application.yml 7 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/quarkus-2/.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | !target/*-runner 3 | !target/*-runner.jar 4 | !target/lib/* 5 | !target/quarkus-app/* -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/quarkus-2/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | greeting: 2 | message: "hello" 3 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/quarkus-3-copy.txt: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | src/main/docker/Dockerfile.native 3 | src/main/docker/Dockerfile.native-micro 4 | src/main/docker/Dockerfile.legacy-jar 5 | src/main/docker/Dockerfile.jvm 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/quarkus-3-gradle-copy.txt: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | src/main/docker/Dockerfile.native 3 | src/main/docker/Dockerfile.native-micro 4 | src/main/docker/Dockerfile.legacy-jar 5 | src/main/docker/Dockerfile.jvm 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/quarkus-3-gradle-kts-copy.txt: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | src/main/docker/Dockerfile.native 3 | src/main/docker/Dockerfile.native-micro 4 | src/main/docker/Dockerfile.legacy-jar 5 | src/main/docker/Dockerfile.jvm 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/quarkus-3-gradle-kts/.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | !build/*-runner 3 | !build/*-runner.jar 4 | !build/lib/* 5 | !build/quarkus-app/* -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/quarkus-3-gradle/.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | !build/*-runner 3 | !build/*-runner.jar 4 | !build/lib/* 5 | !build/quarkus-app/* -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/quarkus-3-properties-copy.txt: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | src/main/docker/Dockerfile.native 3 | src/main/docker/Dockerfile.native-micro 4 | src/main/docker/Dockerfile.legacy-jar 5 | src/main/docker/Dockerfile.jvm 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/quarkus-3-properties/.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | !target/*-runner 3 | !target/*-runner.jar 4 | !target/lib/* 5 | !target/quarkus-app/* -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/quarkus-3/.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | !target/*-runner 3 | !target/*-runner.jar 4 | !target/lib/* 5 | !target/quarkus-app/* -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/springboot-3-copy.txt: -------------------------------------------------------------------------------- 1 | HELP.md 2 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/flavour/vanilla-copy.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-maven-plugin/src/main/resources/config/flavour/vanilla-copy.txt -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/feature/direct-fm-yml.ftl: -------------------------------------------------------------------------------- 1 | --- 2 | flavour: ${featureId} 3 | process: 4 | - from: feature/${featureId}/venus-direct-config.ftl 5 | to: ${context.projectDir}/src/main/resources/venus-direct-config/venus-direct-config.yaml 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/direct-fm-yml.ftl: -------------------------------------------------------------------------------- 1 | <#import 'flavour-macro.ftl' as fhm> 2 | --- 3 | flavour: ${context.flavour} 4 | process: 5 | - from: flavour/${context.flavour}/pom.ftl 6 | to: ${context.projectFolder}/pom.xml 7 | - from: flavour/${context.flavour}/README.ftl 8 | to: ${context.projectFolder}/README.md 9 | - from: flavour/${context.flavour}/gitignore.ftl 10 | to: ${context.projectFolder}/.gitignore -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/direct/README.ftl: -------------------------------------------------------------------------------- 1 | # ${context.artifactId} 2 | 3 | This is a sample project configured using [fj-doc-maven-plugin init plugin](https://venusdocs.fugerit.org/guide/#maven-plugin-goal-init). 4 | 5 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/direct/gitignore.ftl: -------------------------------------------------------------------------------- 1 | #Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | release.properties 7 | .flattened-pom.xml 8 | 9 | # Eclipse 10 | .project 11 | .classpath 12 | .settings/ 13 | bin/ 14 | 15 | # IntelliJ 16 | .idea 17 | *.ipr 18 | *.iml 19 | *.iws 20 | 21 | # NetBeans 22 | nb-configuration.xml 23 | 24 | # Visual Studio Code 25 | .vscode 26 | .factorypath 27 | 28 | # OSX 29 | .DS_Store 30 | 31 | # Vim 32 | *.swp 33 | *.swo 34 | 35 | # patch 36 | *.orig 37 | *.rej 38 | 39 | # Local environment 40 | .env 41 | 42 | # Plugin directory 43 | /.quarkus/cli/plugins/ 44 | # TLS Certificates 45 | .certs/ 46 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/micronaut-4/Application.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | 5 | import io.micronaut.runtime.Micronaut; 6 | import io.swagger.v3.oas.annotations.*; 7 | import io.swagger.v3.oas.annotations.info.*; 8 | 9 | @OpenAPIDefinition( 10 | info = @Info( 11 | title = "${context.artifactId}", 12 | version = "${context.projectVersion}" 13 | ) 14 | ) 15 | public class Application { 16 | 17 | public static void main(String[] args) { 18 | Micronaut.run(Application.class, args); 19 | } 20 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/micronaut-4/MicronautController.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import io.micronaut.http.annotation.*; 5 | 6 | @Controller("${context.artifactId}") 7 | public class ${context.artifactIdAsClassName}Controller { 8 | 9 | @Get(uri="/", produces="text/plain") 10 | public String index() { 11 | return "Example Response"; 12 | } 13 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/micronaut-4/application_yml.ftl: -------------------------------------------------------------------------------- 1 | micronaut: 2 | application: 3 | name: fugerit-demo-micronaut 4 | router: 5 | static-resources: 6 | swagger: 7 | paths: classpath:META-INF/swagger 8 | mapping: /swagger/** 9 | openapi-explorer: 10 | paths: classpath:META-INF/swagger/views/openapi-explorer 11 | mapping: /openapi-explorer/** 12 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/micronaut-4/gitignore.ftl: -------------------------------------------------------------------------------- 1 | #Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | release.properties 7 | .flattened-pom.xml 8 | 9 | # Eclipse 10 | .project 11 | .classpath 12 | .settings/ 13 | bin/ 14 | 15 | # IntelliJ 16 | .idea 17 | *.ipr 18 | *.iml 19 | *.iws 20 | 21 | # NetBeans 22 | nb-configuration.xml 23 | 24 | # Visual Studio Code 25 | .vscode 26 | .factorypath 27 | 28 | # OSX 29 | .DS_Store 30 | 31 | # Vim 32 | *.swp 33 | *.swo 34 | 35 | # patch 36 | *.orig 37 | *.rej 38 | 39 | # Local environment 40 | .env 41 | 42 | # Plugin directory 43 | /.quarkus/cli/plugins/ 44 | # TLS Certificates 45 | .certs/ 46 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/openliberty/GreetingResource.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import jakarta.ws.rs.GET; 5 | import jakarta.ws.rs.Path; 6 | import jakarta.ws.rs.Produces; 7 | import jakarta.ws.rs.core.MediaType; 8 | 9 | @Path("/hello") 10 | public class GreetingResource { 11 | 12 | @GET 13 | @Produces(MediaType.TEXT_PLAIN) 14 | public String hello() { 15 | return "Hello from Open Liberty REST"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/openliberty/RestApplication.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import jakarta.ws.rs.ApplicationPath; 5 | import jakarta.ws.rs.core.Application; 6 | 7 | @ApplicationPath("/") 8 | public class RestApplication extends Application { 9 | 10 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/openliberty/gitignore.ftl: -------------------------------------------------------------------------------- 1 | target/ 2 | pom.xml.tag 3 | pom.xml.releaseBackup 4 | pom.xml.versionsBackup 5 | pom.xml.next 6 | release.properties 7 | dependency-reduced-pom.xml 8 | buildNumber.properties 9 | .mvn/timing.properties 10 | # https://github.com/takari/maven-wrapper#usage-without-binary-jar 11 | .mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/openliberty/server.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | mpHealth-4.0 4 | restfulWS-3.1 5 | mpOpenAPI-3.1 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/openliberty/web.ftl: -------------------------------------------------------------------------------- 1 | 4 | Liberty Project 5 | 6 | 7 | index.html 8 | 9 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-2/GreetingConfig.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import io.smallrye.config.ConfigMapping; 5 | import io.smallrye.config.WithName; 6 | 7 | @ConfigMapping(prefix = "greeting") 8 | public interface GreetingConfig { 9 | 10 | @WithName("message") 11 | String message(); 12 | 13 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-2/GreetingResource.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import javax.ws.rs.GET; 5 | import javax.ws.rs.Path; 6 | import javax.ws.rs.Produces; 7 | import javax.ws.rs.core.MediaType; 8 | 9 | @Path("/hello") 10 | public class GreetingResource { 11 | 12 | @GET 13 | @Produces(MediaType.TEXT_PLAIN) 14 | public String hello() { 15 | return "Hello from Quarkus REST"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-2/GreetingResourceIT.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusIntegrationTest; 5 | 6 | @QuarkusIntegrationTest 7 | class GreetingResourceIT extends GreetingResourceTest { 8 | // Execute the same tests but in packaged mode. 9 | } 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-2/GreetingResourceTest.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusTest; 5 | import org.junit.jupiter.api.Test; 6 | 7 | import static io.restassured.RestAssured.given; 8 | import static org.hamcrest.CoreMatchers.is; 9 | 10 | @QuarkusTest 11 | class GreetingResourceTest { 12 | @Test 13 | void testHelloEndpoint() { 14 | given() 15 | .when().get("/hello") 16 | .then() 17 | .statusCode(200) 18 | .body(is("Hello from Quarkus REST")); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-2/gitignore.ftl: -------------------------------------------------------------------------------- 1 | #Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | release.properties 7 | .flattened-pom.xml 8 | 9 | # Eclipse 10 | .project 11 | .classpath 12 | .settings/ 13 | bin/ 14 | 15 | # IntelliJ 16 | .idea 17 | *.ipr 18 | *.iml 19 | *.iws 20 | 21 | # NetBeans 22 | nb-configuration.xml 23 | 24 | # Visual Studio Code 25 | .vscode 26 | .factorypath 27 | 28 | # OSX 29 | .DS_Store 30 | 31 | # Vim 32 | *.swp 33 | *.swo 34 | 35 | # patch 36 | *.orig 37 | *.rej 38 | 39 | # Local environment 40 | .env 41 | 42 | # Plugin directory 43 | /.quarkus/cli/plugins/ 44 | # TLS Certificates 45 | .certs/ 46 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle-kts/DocResourceIT.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusIntegrationTest; 5 | 6 | @QuarkusIntegrationTest 7 | class DocResourceIT extends DocResourceTest { 8 | // Execute the same tests but in packaged mode. 9 | } 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle-kts/GreetingConfig.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import io.smallrye.config.ConfigMapping; 5 | import io.smallrye.config.WithName; 6 | 7 | @ConfigMapping(prefix = "greeting") 8 | public interface GreetingConfig { 9 | 10 | @WithName("message") 11 | String message(); 12 | 13 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle-kts/GreetingResource.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import jakarta.ws.rs.GET; 5 | import jakarta.ws.rs.Path; 6 | import jakarta.ws.rs.Produces; 7 | import jakarta.ws.rs.core.MediaType; 8 | 9 | @Path("/hello") 10 | public class GreetingResource { 11 | 12 | @GET 13 | @Produces(MediaType.TEXT_PLAIN) 14 | public String hello() { 15 | return "Hello from Quarkus REST"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle-kts/GreetingResourceIT.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusIntegrationTest; 5 | 6 | @QuarkusIntegrationTest 7 | class GreetingResourceIT extends GreetingResourceTest { 8 | // Execute the same tests but in packaged mode. 9 | } 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle-kts/GreetingResourceTest.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusTest; 5 | import org.junit.jupiter.api.Test; 6 | 7 | import static io.restassured.RestAssured.given; 8 | import static org.hamcrest.CoreMatchers.is; 9 | 10 | @QuarkusTest 11 | class GreetingResourceTest { 12 | @Test 13 | void testHelloEndpoint() { 14 | given() 15 | .when().get("/hello") 16 | .then() 17 | .statusCode(200) 18 | .body(is("Hello from Quarkus REST")); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle-kts/application.ftl: -------------------------------------------------------------------------------- 1 | greeting: 2 | message: "hello" 3 | 4 | quarkus: 5 | native: 6 | # if needed add -H:+UnlockExperimentalVMOptions 7 | additional-build-args: -H:IncludeResources=${context.artifactId}/fm-doc-process-config.xml,\ 8 | -H:IncludeResources=${context.artifactId}/template/document.ftl -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle-kts/gitignore.ftl: -------------------------------------------------------------------------------- 1 | # Gradle 2 | .gradle/ 3 | build/ 4 | 5 | # Eclipse 6 | .project 7 | .classpath 8 | .settings/ 9 | bin/ 10 | 11 | # IntelliJ 12 | .idea 13 | *.ipr 14 | *.iml 15 | *.iws 16 | 17 | # NetBeans 18 | nb-configuration.xml 19 | 20 | # Visual Studio Code 21 | .vscode 22 | .factorypath 23 | 24 | # OSX 25 | .DS_Store 26 | 27 | # Vim 28 | *.swp 29 | *.swo 30 | 31 | # patch 32 | *.orig 33 | *.rej 34 | 35 | # Local environment 36 | .env 37 | 38 | # Plugin directory 39 | /.quarkus/cli/plugins/ 40 | # TLS Certificates 41 | .certs/ 42 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle-kts/gradle.ftl: -------------------------------------------------------------------------------- 1 | # Gradle properties 2 | 3 | quarkusPluginId=io.quarkus 4 | quarkusPluginVersion=${context.flavourVersion} 5 | quarkusPlatformGroupId=io.quarkus.platform 6 | quarkusPlatformArtifactId=quarkus-bom 7 | quarkusPlatformVersion=${context.flavourVersion} 8 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle-kts/settings.gradle.ftl: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | val quarkusPluginVersion: String by settings 3 | val quarkusPluginId: String by settings 4 | repositories { 5 | mavenCentral() 6 | gradlePluginPortal() 7 | mavenLocal() 8 | } 9 | plugins { 10 | id(quarkusPluginId) version quarkusPluginVersion 11 | } 12 | } 13 | rootProject.name="${context.artifactId}" 14 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle/DocResourceIT.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusIntegrationTest; 5 | 6 | @QuarkusIntegrationTest 7 | class DocResourceIT extends DocResourceTest { 8 | // Execute the same tests but in packaged mode. 9 | } 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle/GreetingConfig.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import io.smallrye.config.ConfigMapping; 5 | import io.smallrye.config.WithName; 6 | 7 | @ConfigMapping(prefix = "greeting") 8 | public interface GreetingConfig { 9 | 10 | @WithName("message") 11 | String message(); 12 | 13 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle/GreetingResource.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import jakarta.ws.rs.GET; 5 | import jakarta.ws.rs.Path; 6 | import jakarta.ws.rs.Produces; 7 | import jakarta.ws.rs.core.MediaType; 8 | 9 | @Path("/hello") 10 | public class GreetingResource { 11 | 12 | @GET 13 | @Produces(MediaType.TEXT_PLAIN) 14 | public String hello() { 15 | return "Hello from Quarkus REST"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle/GreetingResourceIT.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusIntegrationTest; 5 | 6 | @QuarkusIntegrationTest 7 | class GreetingResourceIT extends GreetingResourceTest { 8 | // Execute the same tests but in packaged mode. 9 | } 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle/GreetingResourceTest.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusTest; 5 | import org.junit.jupiter.api.Test; 6 | 7 | import static io.restassured.RestAssured.given; 8 | import static org.hamcrest.CoreMatchers.is; 9 | 10 | @QuarkusTest 11 | class GreetingResourceTest { 12 | @Test 13 | void testHelloEndpoint() { 14 | given() 15 | .when().get("/hello") 16 | .then() 17 | .statusCode(200) 18 | .body(is("Hello from Quarkus REST")); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle/application.ftl: -------------------------------------------------------------------------------- 1 | greeting: 2 | message: "hello" 3 | 4 | quarkus: 5 | native: 6 | # if needed add -H:+UnlockExperimentalVMOptions 7 | additional-build-args: -H:IncludeResources=${context.artifactId}/fm-doc-process-config.xml,\ 8 | -H:IncludeResources=${context.artifactId}/template/document.ftl -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle/gitignore.ftl: -------------------------------------------------------------------------------- 1 | # Gradle 2 | .gradle/ 3 | build/ 4 | 5 | # Eclipse 6 | .project 7 | .classpath 8 | .settings/ 9 | bin/ 10 | 11 | # IntelliJ 12 | .idea 13 | *.ipr 14 | *.iml 15 | *.iws 16 | 17 | # NetBeans 18 | nb-configuration.xml 19 | 20 | # Visual Studio Code 21 | .vscode 22 | .factorypath 23 | 24 | # OSX 25 | .DS_Store 26 | 27 | # Vim 28 | *.swp 29 | *.swo 30 | 31 | # patch 32 | *.orig 33 | *.rej 34 | 35 | # Local environment 36 | .env 37 | 38 | # Plugin directory 39 | /.quarkus/cli/plugins/ 40 | # TLS Certificates 41 | .certs/ 42 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle/gradle.ftl: -------------------------------------------------------------------------------- 1 | # Gradle properties 2 | 3 | quarkusPluginId=io.quarkus 4 | quarkusPluginVersion=${context.flavourVersion} 5 | quarkusPlatformGroupId=io.quarkus.platform 6 | quarkusPlatformArtifactId=quarkus-bom 7 | quarkusPlatformVersion=${context.flavourVersion} 8 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-gradle/settings.gradle.ftl: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | repositories { 3 | mavenCentral() 4 | gradlePluginPortal() 5 | mavenLocal() 6 | } 7 | plugins { 8 | id "${r"${quarkusPluginId}"}" version "${r"${quarkusPluginVersion}"}" 9 | } 10 | } 11 | rootProject.name='${context.artifactId}' -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-properties/DocResourceIT.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusIntegrationTest; 5 | 6 | @QuarkusIntegrationTest 7 | class DocResourceIT extends DocResourceTest { 8 | // Execute the same tests but in packaged mode. 9 | } 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-properties/GreetingConfig.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import io.smallrye.config.ConfigMapping; 5 | import io.smallrye.config.WithName; 6 | 7 | @ConfigMapping(prefix = "greeting") 8 | public interface GreetingConfig { 9 | 10 | @WithName("message") 11 | String message(); 12 | 13 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-properties/GreetingResource.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import jakarta.ws.rs.GET; 5 | import jakarta.ws.rs.Path; 6 | import jakarta.ws.rs.Produces; 7 | import jakarta.ws.rs.core.MediaType; 8 | 9 | @Path("/hello") 10 | public class GreetingResource { 11 | 12 | @GET 13 | @Produces(MediaType.TEXT_PLAIN) 14 | public String hello() { 15 | return "Hello from Quarkus REST"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-properties/GreetingResourceIT.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusIntegrationTest; 5 | 6 | @QuarkusIntegrationTest 7 | class GreetingResourceIT extends GreetingResourceTest { 8 | // Execute the same tests but in packaged mode. 9 | } 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-properties/GreetingResourceTest.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusTest; 5 | import org.junit.jupiter.api.Test; 6 | 7 | import static io.restassured.RestAssured.given; 8 | import static org.hamcrest.CoreMatchers.is; 9 | 10 | @QuarkusTest 11 | class GreetingResourceTest { 12 | @Test 13 | void testHelloEndpoint() { 14 | given() 15 | .when().get("/hello") 16 | .then() 17 | .statusCode(200) 18 | .body(is("Hello from Quarkus REST")); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3-properties/application.ftl: -------------------------------------------------------------------------------- 1 | greeting.message = "hello" 2 | 3 | # if needed add -H:+UnlockExperimentalVMOptions 4 | quarkus.native.additional-build-args = -H:IncludeResources=${context.artifactId}/fm-doc-process-config.xml,\ 5 | -H:IncludeResources=${context.artifactId}/template/document.ftl 6 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3/DocResourceIT.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusIntegrationTest; 5 | 6 | @QuarkusIntegrationTest 7 | class DocResourceIT extends DocResourceTest { 8 | // Execute the same tests but in packaged mode. 9 | } 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3/GreetingConfig.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import io.smallrye.config.ConfigMapping; 5 | import io.smallrye.config.WithName; 6 | 7 | @ConfigMapping(prefix = "greeting") 8 | public interface GreetingConfig { 9 | 10 | @WithName("message") 11 | String message(); 12 | 13 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3/GreetingResource.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import jakarta.ws.rs.GET; 5 | import jakarta.ws.rs.Path; 6 | import jakarta.ws.rs.Produces; 7 | import jakarta.ws.rs.core.MediaType; 8 | 9 | @Path("/hello") 10 | public class GreetingResource { 11 | 12 | @GET 13 | @Produces(MediaType.TEXT_PLAIN) 14 | public String hello() { 15 | return "Hello from Quarkus REST"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3/GreetingResourceIT.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusIntegrationTest; 5 | 6 | @QuarkusIntegrationTest 7 | class GreetingResourceIT extends GreetingResourceTest { 8 | // Execute the same tests but in packaged mode. 9 | } 10 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3/GreetingResourceTest.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import io.quarkus.test.junit.QuarkusTest; 5 | import org.junit.jupiter.api.Test; 6 | 7 | import static io.restassured.RestAssured.given; 8 | import static org.hamcrest.CoreMatchers.is; 9 | 10 | @QuarkusTest 11 | class GreetingResourceTest { 12 | @Test 13 | void testHelloEndpoint() { 14 | given() 15 | .when().get("/hello") 16 | .then() 17 | .statusCode(200) 18 | .body(is("Hello from Quarkus REST")); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3/application.ftl: -------------------------------------------------------------------------------- 1 | greeting: 2 | message: "hello" 3 | 4 | quarkus: 5 | native: 6 | # if needed add -H:+UnlockExperimentalVMOptions 7 | additional-build-args: -H:IncludeResources=${context.artifactId}/fm-doc-process-config.xml,\ 8 | -H:IncludeResources=${context.artifactId}/template/document.ftl -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/quarkus-3/gitignore.ftl: -------------------------------------------------------------------------------- 1 | #Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | release.properties 7 | .flattened-pom.xml 8 | 9 | # Eclipse 10 | .project 11 | .classpath 12 | .settings/ 13 | bin/ 14 | 15 | # IntelliJ 16 | .idea 17 | *.ipr 18 | *.iml 19 | *.iws 20 | 21 | # NetBeans 22 | nb-configuration.xml 23 | 24 | # Visual Studio Code 25 | .vscode 26 | .factorypath 27 | 28 | # OSX 29 | .DS_Store 30 | 31 | # Vim 32 | *.swp 33 | *.swo 34 | 35 | # patch 36 | *.orig 37 | *.rej 38 | 39 | # Local environment 40 | .env 41 | 42 | # Plugin directory 43 | /.quarkus/cli/plugins/ 44 | # TLS Certificates 45 | .certs/ 46 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/springboot-3/SpringbootApplication.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package <@fhm.toProjectPackage context=context/>; 3 | 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | @SpringBootApplication 8 | public class ${context.artifactIdAsClassName}Application { 9 | 10 | public static void main(String[] args) { 11 | SpringApplication.run(${context.artifactIdAsClassName}Application.class, args); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/springboot-3/SpringbootApplicationTests.ftl: -------------------------------------------------------------------------------- 1 | <#import '../flavour-macro.ftl' as fhm> 2 | package test.<@fhm.toProjectPackage context=context/>; 3 | 4 | import org.junit.jupiter.api.Test; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | 7 | @SpringBootTest 8 | class ${context.artifactIdAsClassName}ApplicationTests { 9 | 10 | @Test 11 | void contextLoads() { 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/springboot-3/application.ftl: -------------------------------------------------------------------------------- 1 | spring: 2 | application: 3 | name: ${context.artifactId} 4 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/springboot-3/gitignore.ftl: -------------------------------------------------------------------------------- 1 | #Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | release.properties 7 | .flattened-pom.xml 8 | 9 | # Eclipse 10 | .project 11 | .classpath 12 | .settings/ 13 | bin/ 14 | 15 | # IntelliJ 16 | .idea 17 | *.ipr 18 | *.iml 19 | *.iws 20 | 21 | # NetBeans 22 | nb-configuration.xml 23 | 24 | # Visual Studio Code 25 | .vscode 26 | .factorypath 27 | 28 | # OSX 29 | .DS_Store 30 | 31 | # Vim 32 | *.swp 33 | *.swo 34 | 35 | # patch 36 | *.orig 37 | *.rej 38 | 39 | # Local environment 40 | .env 41 | 42 | # Plugin directory 43 | /.quarkus/cli/plugins/ 44 | # TLS Certificates 45 | .certs/ 46 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/vanilla-fm-yml.ftl: -------------------------------------------------------------------------------- 1 | <#import 'flavour-macro.ftl' as fhm> 2 | --- 3 | flavour: ${context.flavour} 4 | process: 5 | - from: flavour/${context.flavour}/pom.ftl 6 | to: ${context.projectFolder}/pom.xml 7 | - from: flavour/${context.flavour}/README.ftl 8 | to: ${context.projectFolder}/README.md 9 | - from: flavour/${context.flavour}/gitignore.ftl 10 | to: ${context.projectFolder}/.gitignore -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/vanilla/README.ftl: -------------------------------------------------------------------------------- 1 | # ${context.artifactId} 2 | 3 | This is a sample project configured using [fj-doc-maven-plugin init plugin](https://venusdocs.fugerit.org/guide/#maven-plugin-goal-init). 4 | 5 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/main/resources/config/template/flavour/vanilla/gitignore.ftl: -------------------------------------------------------------------------------- 1 | #Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | release.properties 7 | .flattened-pom.xml 8 | 9 | # Eclipse 10 | .project 11 | .classpath 12 | .settings/ 13 | bin/ 14 | 15 | # IntelliJ 16 | .idea 17 | *.ipr 18 | *.iml 19 | *.iws 20 | 21 | # NetBeans 22 | nb-configuration.xml 23 | 24 | # Visual Studio Code 25 | .vscode 26 | .factorypath 27 | 28 | # OSX 29 | .DS_Store 30 | 31 | # Vim 32 | *.swp 33 | *.swo 34 | 35 | # patch 36 | *.orig 37 | *.rej 38 | 39 | # Local environment 40 | .env 41 | 42 | # Plugin directory 43 | /.quarkus/cli/plugins/ 44 | # TLS Certificates 45 | .certs/ 46 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/test/resources/config/flavour-extra-config/flavourtest-1-config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | paramConfig: 3 | addLombok: 4 | acceptOnly: 5 | - true 6 | javaRelease: 7 | acceptOnly: 8 | - 21 -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-maven-plugin/src/test/resources/maven/pom.properties: -------------------------------------------------------------------------------- 1 | artifactId=fj-doc-maven-plugin 2 | groupId=org.fugerit.java 3 | version=8.6.2 4 | -------------------------------------------------------------------------------- /fj-doc-mod-fop/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog for module fj-doc-lib-simpletable 2 | 3 | ## version 1.4.1-rc.001 4 | * Added documentation for FOP reference 5 | 6 | ## version 1.4.0-rc.001 7 | * Added ${pageCount} variable handling to be used to display last page number 8 | 9 | ## version 0.8.1 - 10 | * Added compatibility handling for version 1-x and 2-x 11 | 12 | -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/main/config/native-helper-config.yaml: -------------------------------------------------------------------------------- 1 | #Sample native helper config file 2 | --- 3 | generate: 4 | - packageName: org.fugerit.java.doc.mod.fop 5 | mode: all 6 | - packageName: org.fugerit.java.doc.mod.fop.config 7 | mode: all -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/main/config/reflect-config-nhg.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "java.lang.Class", 4 | "methods": [ 5 | { "name": "getSimpleName", "parameterTypes": [] }, 6 | { "name": "getName", "parameterTypes": [] }, 7 | { "name": "getCanonicalName", "parameterTypes": [] } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/main/docs/apache-fop-ref-accessibility.md: -------------------------------------------------------------------------------- 1 | # Apache FOP Reference for Accessibility 2 | 3 | ## Accessibility checker 4 | 5 | [https://check.axes4.com/en/](https://check.axes4.com/en/) 6 | 7 | ## Table header in accessibility (fox:header) 8 | 9 | [https://xmlgraphics.apache.org/fop/2.8/accessibility.html#fox:header](https://xmlgraphics.apache.org/fop/2.8/accessibility.html#fox:header) -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/main/docs/apache-fop-ref.md: -------------------------------------------------------------------------------- 1 | # Reference to useful resources on Apache FOP 2 | 3 | ## [Accessibility](apache-fop-ref-accessibility.md) -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/main/java/org/fugerit/java/doc/mod/fop/FopConfig.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.mod.fop; 2 | 3 | import java.io.Serializable; 4 | 5 | import org.apache.fop.apps.FopFactory; 6 | import org.fugerit.java.core.cfg.ConfigException; 7 | 8 | public interface FopConfig extends Serializable { 9 | 10 | public FopFactory newFactory() throws ConfigException; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/main/java/org/fugerit/java/doc/mod/fop/FopConfigDefault.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.mod.fop; 2 | 3 | import java.io.File; 4 | import java.io.Serializable; 5 | 6 | import org.apache.fop.apps.FopFactory; 7 | import org.fugerit.java.core.cfg.ConfigException; 8 | 9 | public class FopConfigDefault implements Serializable, FopConfig { 10 | 11 | /** 12 | * 13 | */ 14 | private static final long serialVersionUID = 142423475475L; 15 | 16 | @Override 17 | public FopFactory newFactory() throws ConfigException { 18 | return FopFactory.newInstance(new File(".").toURI()); 19 | } 20 | 21 | public static final FopConfig DEFAULT = new FopConfigDefault(); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/main/java/org/fugerit/java/doc/mod/fop/FopConfigWrap.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.mod.fop; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Getter; 5 | import org.apache.fop.apps.FOUserAgent; 6 | import org.apache.fop.apps.FopFactory; 7 | 8 | @AllArgsConstructor 9 | public class FopConfigWrap { 10 | 11 | @Getter 12 | private FopFactory fopFactory; 13 | 14 | @Getter private FOUserAgent foUserAgent; 15 | 16 | } -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/main/java/org/fugerit/java/doc/mod/fop/FreeMarkerFopTypeHandlerUTF8.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.mod.fop; 2 | 3 | import org.fugerit.java.doc.base.config.DocTypeHandlerDecorator; 4 | 5 | public class FreeMarkerFopTypeHandlerUTF8 extends DocTypeHandlerDecorator { 6 | 7 | private static final long serialVersionUID = -7335866750463830177L; 8 | 9 | public FreeMarkerFopTypeHandlerUTF8() { 10 | super( FreeMarkerFopTypeHandler.HANDLER_UTF8 ); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/main/resources/META-INF/native-image/org.fugerit.java/fj-doc-mod-fop/resource-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "bundles": [], 3 | "resources": { 4 | "includes": [ 5 | { 6 | "pattern": "fj_doc_mod_fop_config/fm-fop-process-config.xml" 7 | }, 8 | { 9 | "pattern": "fj_doc_mod_fop_config/template/fop_doc.ftl" 10 | }, 11 | { 12 | "pattern": "fj_doc_mod_fop_config/template/macro/doc_info.ftl" 13 | }, 14 | { 15 | "pattern": "fj_doc_mod_fop_config/template/macro/doc_element.ftl" 16 | }, 17 | { 18 | "pattern": "fj_doc_mod_fop_config/template/macro/doc_element_1-x.ftl" 19 | } 20 | ] 21 | } 22 | } -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/test/resources/config/test_config_err1.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/test/resources/config/test_config_err2.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/test/resources/config/test_config_ok.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /fj-doc-mod-fop/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-mod-opencsv/src/main/config/native-helper-config.yaml: -------------------------------------------------------------------------------- 1 | #Sample native helper config file 2 | --- 3 | generate: 4 | - packageName: org.fugerit.java.doc.mod.opencsv 5 | mode: all 6 | typeReachable: org.fugerit.java.doc.base.facade.DocFacadeSource 7 | -------------------------------------------------------------------------------- /fj-doc-mod-opencsv/src/main/config/reflect-config-nhg.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "java.lang.Class", 4 | "methods": [ 5 | { "name": "getSimpleName", "parameterTypes": [] }, 6 | { "name": "getName", "parameterTypes": [] }, 7 | { "name": "getCanonicalName", "parameterTypes": [] } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /fj-doc-mod-opencsv/src/main/java/org/fugerit/java/doc/mod/opencsv/OpenCSVTypeHandlerUTF8.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.mod.opencsv; 2 | 3 | import org.fugerit.java.doc.base.config.DocTypeHandler; 4 | import org.fugerit.java.doc.base.config.DocTypeHandlerDecorator; 5 | 6 | public class OpenCSVTypeHandlerUTF8 extends DocTypeHandlerDecorator { 7 | 8 | private static final long serialVersionUID = 6903524359788592137L; 9 | 10 | public static final DocTypeHandler HANDLER = new OpenCSVTypeHandlerUTF8(); 11 | 12 | public OpenCSVTypeHandlerUTF8() { 13 | super( OpenCSVTypeHandler.HANDLER_UTF8 ); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-mod-opencsv/src/main/resources/META-INF/native-image/org.fugerit.java/fj-doc-mod-opencsv/native-image.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-opencsv/src/main/resources/META-INF/native-image/org.fugerit.java/fj-doc-mod-opencsv/native-image.properties -------------------------------------------------------------------------------- /fj-doc-mod-opencsv/src/main/resources/META-INF/native-image/org.fugerit.java/fj-doc-mod-opencsv/resource-config.json: -------------------------------------------------------------------------------- 1 | { 2 | } -------------------------------------------------------------------------------- /fj-doc-mod-opencsv/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/main/java/org/fugerit/java/doc/mod/openpdf/ext/helpers/CellParent.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.mod.openpdf.ext.helpers; 2 | 3 | import com.lowagie.text.Cell; 4 | import com.lowagie.text.Element; 5 | 6 | public class CellParent implements ParentElement { 7 | 8 | private Cell cell; 9 | 10 | public CellParent( Cell cell ) { 11 | this.cell = cell; 12 | } 13 | 14 | /* (non-Javadoc) 15 | * @see org.fugerit.java.doc.mod.itext.ParentElement#add(com.lowagie.text.Element) 16 | */ 17 | public void add(Element element) { 18 | this.cell.addElement( element ); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/main/java/org/fugerit/java/doc/mod/openpdf/ext/helpers/DocumentParent.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.mod.openpdf.ext.helpers; 2 | 3 | import com.lowagie.text.Document; 4 | import com.lowagie.text.Element; 5 | 6 | public class DocumentParent implements ParentElement { 7 | 8 | private Document document; 9 | 10 | public DocumentParent( Document document) { 11 | this.document = document; 12 | } 13 | 14 | /* (non-Javadoc) 15 | * @see org.fugerit.java.doc.mod.itext.ParentElement#add(com.lowagie.text.Element) 16 | */ 17 | public void add(Element element) { 18 | this.document.add( element ); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/main/java/org/fugerit/java/doc/mod/openpdf/ext/helpers/ParentElement.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.mod.openpdf.ext.helpers; 2 | 3 | import org.fugerit.java.doc.base.config.DocException; 4 | 5 | import com.lowagie.text.Element; 6 | 7 | public interface ParentElement { 8 | 9 | public void add( Element element ) throws DocException; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/test/java/test/org/fugerit/java/doc/mod/openpdf/ext/TestSpec.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.mod.openpdf.ext; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | import org.junit.jupiter.api.Assertions; 5 | import org.junit.jupiter.api.Test; 6 | 7 | class TestSpec extends TestDocBase { 8 | 9 | private static final String DEFAULT_DOC = "test"; 10 | 11 | @Test 12 | void testOpenPDF() { 13 | boolean ok = this.testDocWorker( DEFAULT_DOC , DocConfig.TYPE_PDF ); 14 | Assertions.assertTrue(ok); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/test/resources/font/TitilliumWeb-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-openpdf-ext/src/test/resources/font/TitilliumWeb-Bold.ttf -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/test/resources/font/TitilliumWeb-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-openpdf-ext/src/test/resources/font/TitilliumWeb-BoldItalic.ttf -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/test/resources/font/TitilliumWeb-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-openpdf-ext/src/test/resources/font/TitilliumWeb-Italic.ttf -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/test/resources/font/TitilliumWeb-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-openpdf-ext/src/test/resources/font/TitilliumWeb-Regular.ttf -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/test/resources/test/img_test_teal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-openpdf-ext/src/test/resources/test/img_test_teal.jpg -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/test/resources/xml/default_doc_pdfa.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | TitilliumWeb 10 | PDF/A-1b 11 | 12 | 13 | Test PDFA 14 | 15 | 16 | -------------------------------------------------------------------------------- /fj-doc-mod-openpdf-ext/src/test/resources/xml/default_doc_simple.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | TitilliumWeb 9 |
10 | 11 |
12 |
13 | 14 | Test PDFA 15 | 16 | 17 |
-------------------------------------------------------------------------------- /fj-doc-mod-openrtf-ext/src/test/resources/font/TitilliumWeb-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-openrtf-ext/src/test/resources/font/TitilliumWeb-Bold.ttf -------------------------------------------------------------------------------- /fj-doc-mod-openrtf-ext/src/test/resources/font/TitilliumWeb-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-openrtf-ext/src/test/resources/font/TitilliumWeb-BoldItalic.ttf -------------------------------------------------------------------------------- /fj-doc-mod-openrtf-ext/src/test/resources/font/TitilliumWeb-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-openrtf-ext/src/test/resources/font/TitilliumWeb-Italic.ttf -------------------------------------------------------------------------------- /fj-doc-mod-openrtf-ext/src/test/resources/font/TitilliumWeb-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-openrtf-ext/src/test/resources/font/TitilliumWeb-Regular.ttf -------------------------------------------------------------------------------- /fj-doc-mod-openrtf-ext/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-mod-openrtf-ext/src/test/resources/test/img_test_teal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-openrtf-ext/src/test/resources/test/img_test_teal.jpg -------------------------------------------------------------------------------- /fj-doc-mod-poi/src/main/config/native-helper-config.yaml: -------------------------------------------------------------------------------- 1 | #Sample native helper config file 2 | --- 3 | generate: 4 | - packageName: org.fugerit.java.doc.mod.poi 5 | mode: all 6 | typeReachable: org.fugerit.java.doc.base.facade.DocFacadeSource -------------------------------------------------------------------------------- /fj-doc-mod-poi/src/main/config/reflect-config-nhg.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "java.lang.Class", 4 | "methods": [ 5 | { "name": "getSimpleName", "parameterTypes": [] }, 6 | { "name": "getName", "parameterTypes": [] }, 7 | { "name": "getCanonicalName", "parameterTypes": [] } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /fj-doc-mod-poi/src/main/resources/META-INF/native-image/org.fugerit.java/fj-doc-mod-poi/resource-config.json: -------------------------------------------------------------------------------- 1 | { 2 | } -------------------------------------------------------------------------------- /fj-doc-mod-poi/src/test/resources/coverage/xls_as_xls.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-poi/src/test/resources/coverage/xls_as_xls.xls -------------------------------------------------------------------------------- /fj-doc-mod-poi/src/test/resources/coverage/xlsx_as_xlsx.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-mod-poi/src/test/resources/coverage/xlsx_as_xlsx.xlsx -------------------------------------------------------------------------------- /fj-doc-mod-poi/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-native-quarkus/.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | !target/*-runner 3 | !target/*-runner.jar 4 | !target/lib/* 5 | !target/quarkus-app/* -------------------------------------------------------------------------------- /fj-doc-native-quarkus/.gitignore: -------------------------------------------------------------------------------- 1 | #Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | release.properties 7 | .flattened-pom.xml 8 | 9 | # Eclipse 10 | .project 11 | .classpath 12 | .settings/ 13 | bin/ 14 | 15 | # IntelliJ 16 | .idea 17 | *.ipr 18 | *.iml 19 | *.iws 20 | 21 | # NetBeans 22 | nb-configuration.xml 23 | 24 | # Visual Studio Code 25 | .vscode 26 | .factorypath 27 | 28 | # OSX 29 | .DS_Store 30 | 31 | # Vim 32 | *.swp 33 | *.swo 34 | 35 | # patch 36 | *.orig 37 | *.rej 38 | 39 | # Local environment 40 | .env 41 | 42 | # Plugin directory 43 | /.quarkus/cli/plugins/ 44 | # TLS Certificates 45 | .certs/ 46 | -------------------------------------------------------------------------------- /fj-doc-native-quarkus/src/main/java/org/fugerit/java/fjdocnativequarkus/AppInit.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.fjdocnativequarkus; 2 | 3 | import io.quarkus.runtime.StartupEvent; 4 | import jakarta.enterprise.context.ApplicationScoped; 5 | import jakarta.enterprise.event.Observes; 6 | import lombok.extern.slf4j.Slf4j; 7 | import io.quarkus.runtime.annotations.RegisterForReflection; 8 | 9 | @Slf4j 10 | @ApplicationScoped 11 | @RegisterForReflection( targets = { DocHelper.class, People.class } ) 12 | public class AppInit { 13 | 14 | void onStart(@Observes StartupEvent ev) { 15 | log.info("The application is starting..."); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /fj-doc-native-quarkus/src/main/java/org/fugerit/java/fjdocnativequarkus/DocHelper.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.fjdocnativequarkus; 2 | 3 | import org.fugerit.java.doc.freemarker.process.FreemarkerDocProcessConfig; 4 | import org.fugerit.java.doc.freemarker.process.FreemarkerDocProcessConfigFacade; 5 | 6 | /** 7 | * DocHelper, version : auto generated on 2024-11-01 20:36:51.313 8 | */ 9 | public class DocHelper { 10 | 11 | private FreemarkerDocProcessConfig docProcessConfig = FreemarkerDocProcessConfigFacade.loadConfigSafe( "cl://fj-doc-native-quarkus/fm-doc-process-config.xml" ); 12 | 13 | public FreemarkerDocProcessConfig getDocProcessConfig() { return this.docProcessConfig; } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /fj-doc-native-quarkus/src/main/java/org/fugerit/java/fjdocnativequarkus/GreetingConfig.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.fjdocnativequarkus; 2 | 3 | import io.smallrye.config.ConfigMapping; 4 | import io.smallrye.config.WithName; 5 | 6 | @ConfigMapping(prefix = "greeting") 7 | public interface GreetingConfig { 8 | 9 | @WithName("message") 10 | String message(); 11 | 12 | } -------------------------------------------------------------------------------- /fj-doc-native-quarkus/src/main/java/org/fugerit/java/fjdocnativequarkus/GreetingResource.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.fjdocnativequarkus; 2 | 3 | import jakarta.ws.rs.GET; 4 | import jakarta.ws.rs.Path; 5 | import jakarta.ws.rs.Produces; 6 | import jakarta.ws.rs.core.MediaType; 7 | 8 | @Path("/hello") 9 | public class GreetingResource { 10 | 11 | @GET 12 | @Produces(MediaType.TEXT_PLAIN) 13 | public String hello() { 14 | return "Hello from Quarkus REST"; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-native-quarkus/src/main/java/org/fugerit/java/fjdocnativequarkus/People.java: -------------------------------------------------------------------------------- 1 | // generated from template 'People.ftl' on 2024-11-01T20:36:51.32Z 2 | package org.fugerit.java.fjdocnativequarkus; 3 | 4 | import lombok.Getter; 5 | import lombok.AllArgsConstructor; 6 | 7 | /* 8 | * Class used to wrap data to be rendered in the document template 9 | */ 10 | @Getter 11 | @AllArgsConstructor 12 | public class People { 13 | 14 | private String name; 15 | 16 | private String surname; 17 | 18 | private String title; 19 | 20 | } -------------------------------------------------------------------------------- /fj-doc-native-quarkus/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | greeting: 2 | message: "hello" 3 | 4 | quarkus: 5 | native: 6 | additional-build-args: -H:IncludeResources=fj-doc-native-quarkus/fm-doc-process-config.xml,\ 7 | -H:IncludeResources=fj-doc-native-quarkus/template/document.ftl -------------------------------------------------------------------------------- /fj-doc-native-quarkus/src/test/java/test/org/fugerit/java/fjdocnativequarkus/DocResourceIT.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.fjdocnativequarkus; 2 | 3 | import io.quarkus.test.junit.QuarkusIntegrationTest; 4 | 5 | @QuarkusIntegrationTest 6 | class DocResourceIT extends DocResourceTest { 7 | // Execute the same tests but in packaged mode. 8 | } 9 | -------------------------------------------------------------------------------- /fj-doc-native-quarkus/src/test/java/test/org/fugerit/java/fjdocnativequarkus/GreetingResourceIT.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.fjdocnativequarkus; 2 | 3 | import io.quarkus.test.junit.QuarkusIntegrationTest; 4 | 5 | @QuarkusIntegrationTest 6 | class GreetingResourceIT extends GreetingResourceTest { 7 | // Execute the same tests but in packaged mode. 8 | } 9 | -------------------------------------------------------------------------------- /fj-doc-native-quarkus/src/test/java/test/org/fugerit/java/fjdocnativequarkus/GreetingResourceTest.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.fjdocnativequarkus; 2 | 3 | import io.quarkus.test.junit.QuarkusTest; 4 | import org.junit.jupiter.api.Test; 5 | 6 | import static io.restassured.RestAssured.given; 7 | import static org.hamcrest.CoreMatchers.is; 8 | 9 | @QuarkusTest 10 | class GreetingResourceTest { 11 | @Test 12 | void testHelloEndpoint() { 13 | given() 14 | .when().get("/hello") 15 | .then() 16 | .statusCode(200) 17 | .body(is("Hello from Quarkus REST")); 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/.gitignore: -------------------------------------------------------------------------------- 1 | #Maven 2 | target/ 3 | pom.xml.tag 4 | pom.xml.releaseBackup 5 | pom.xml.versionsBackup 6 | release.properties 7 | .flattened-pom.xml 8 | 9 | # Eclipse 10 | .project 11 | .classpath 12 | .settings/ 13 | bin/ 14 | 15 | # IntelliJ 16 | .idea 17 | *.ipr 18 | *.iml 19 | *.iws 20 | 21 | # NetBeans 22 | nb-configuration.xml 23 | 24 | # Visual Studio Code 25 | .vscode 26 | .factorypath 27 | 28 | # OSX 29 | .DS_Store 30 | 31 | # Vim 32 | *.swp 33 | *.swo 34 | 35 | # patch 36 | *.orig 37 | *.rej 38 | 39 | # Local environment 40 | .env 41 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/docs/asciidoc/attributes/_attributes-common.adoc: -------------------------------------------------------------------------------- 1 | :author: Matteo Franci 2 | :revnumber: v1.0.0 3 | :revdate: October 15, 2024 4 | :email: m@fugerit.org 5 | :description: Venus Online Playground Guide 6 | :keywords: java, xml, json, yaml, kotlin, pdf, html, xlsx, csv, document generation 7 | :encoding: utf-8 8 | :lang: en 9 | :toc: left 10 | :hardbreaks-option: 11 | :sectnums: 12 | :sectnumlevels: 3 13 | :!figure-caption: 14 | :!chapter-signifier: 15 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/docs/asciidoc/attributes/_attributes-pdf.adoc: -------------------------------------------------------------------------------- 1 | :doctype: book 2 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/docs/asciidoc/features/doc-conversion.adoc: -------------------------------------------------------------------------------- 1 | 2 | <<< 3 | [#doc-playground-conversion] 4 | == Doc Conversion (XML/JSON/YAML) 5 | 6 | This page allow conversion from/to XML/JSON/YAML format. 7 | 8 | It also allows pretty print. 9 | 10 | For istance it is possible to indent XML or JSON format. -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/docs/asciidoc/features/doc-type-validator.adoc: -------------------------------------------------------------------------------- 1 | 2 | <<< 3 | [#doc-playground-type-validator] 4 | == Doc Type Validator 5 | 6 | The Doc Type Validator helper, is a simple interface to test the 7 | link:https://github.com/fugerit-org/fj-doc/tree/main/fj-doc-val[Doc Type Validator modules]. 8 | 9 | Simply upload a file (on the left) to check if it is valid according to one of the supported formats (on the right). 10 | 11 | NOTE: This is just a demo version. Currently really useful for any real scenario. -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/docs/asciidoc/features/home.adoc: -------------------------------------------------------------------------------- 1 | 2 | <<< 3 | [#doc-playground-home] 4 | == Playground for Venus - Fugerit Doc Generation Framework 5 | 6 | This is the link:https://github.com/fugerit-org/fj-doc[Venus] Online Playground. 7 | 8 | It is possible to run it locally too using the pre-buildt link:https://hub.docker.com/r/fugeritorg/fj-doc-playground-quarkus[Docker images]. 9 | 10 | NOTE: for full documentation check the link:https://venusdocs.fugerit.org/guide/[online guide]. -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/docs/asciidoc/index.adoc: -------------------------------------------------------------------------------- 1 | = Fugerit Online Playground Guide 2 | // format attributes inclusions 3 | include::attributes/_attributes-pdf.adoc[] 4 | include::attributes/_attributes-common.adoc[] 5 | 6 | // Chapters inclusions 7 | 8 | include::features/home.adoc[] 9 | 10 | include::features/doc-generator.adoc[] 11 | 12 | include::features/doc-conversion.adoc[] 13 | 14 | include::features/doc-project-init.adoc[] 15 | 16 | include::features/doc-type-validator.adoc[] 17 | 18 | include::features/doc-config-convert.adoc[] -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/docs/asciidoc/resources/images/readme.txt: -------------------------------------------------------------------------------- 1 | images go here -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/docs/asciidoc/resources/themes/book_cover_back_basic_v1.0.0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-playground-quarkus/src/main/docs/asciidoc/resources/themes/book_cover_back_basic_v1.0.0.png -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/docs/asciidoc/resources/themes/book_cover_basic_v1.0.0.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-playground-quarkus/src/main/docs/asciidoc/resources/themes/book_cover_basic_v1.0.0.jpeg -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/GreetingResource.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java; 2 | 3 | import jakarta.ws.rs.GET; 4 | import jakarta.ws.rs.Path; 5 | import jakarta.ws.rs.Produces; 6 | import jakarta.ws.rs.core.MediaType; 7 | 8 | @Path("/hello") 9 | public class GreetingResource { 10 | 11 | @GET 12 | @Produces(MediaType.TEXT_PLAIN) 13 | public String hello() { 14 | return "Hello from RESTEasy Reactive"; 15 | } 16 | } -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/catalog/CatalogOutput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.catalog; 2 | 3 | import org.fugerit.java.doc.playground.facade.BasicOutput; 4 | 5 | import com.fasterxml.jackson.annotation.JsonInclude; 6 | import com.fasterxml.jackson.annotation.JsonInclude.Include; 7 | 8 | import lombok.Getter; 9 | import lombok.Setter; 10 | 11 | @JsonInclude(Include.NON_NULL) 12 | public class CatalogOutput extends BasicOutput { 13 | 14 | @Getter 15 | @Setter 16 | private String docOutput; 17 | 18 | @Getter 19 | @Setter 20 | private String jsonData; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/config/ConvertConfigInput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.config; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.fugerit.java.doc.playground.facade.BasicInput; 6 | 7 | public class ConvertConfigInput extends BasicInput { 8 | 9 | @Setter 10 | @Getter 11 | private String freemarkerJsonData; 12 | 13 | } -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/config/ConvertConfigOutput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.config; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | import org.fugerit.java.doc.playground.facade.BasicOutput; 6 | 7 | public class ConvertConfigOutput extends BasicOutput { 8 | 9 | @Setter 10 | @Getter 11 | private String generationTime; 12 | 13 | @Setter 14 | @Getter 15 | private String docOutputBase64; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/convert/ConvertInput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.convert; 2 | 3 | import org.fugerit.java.doc.playground.facade.BasicInput; 4 | 5 | import lombok.Getter; 6 | import lombok.Setter; 7 | 8 | public class ConvertInput extends BasicInput { 9 | 10 | @Getter 11 | @Setter 12 | private boolean prettyPrint; 13 | 14 | } 15 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/convert/ConvertOutput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.convert; 2 | 3 | import org.fugerit.java.doc.playground.facade.BasicOutput; 4 | 5 | public class ConvertOutput extends BasicOutput { 6 | 7 | private String docOutput; 8 | 9 | public String getDocOutput() { 10 | return docOutput; 11 | } 12 | 13 | public void setDocOutput(String docOutput) { 14 | this.docOutput = docOutput; 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/doc/GenerateInput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.doc; 2 | 3 | import org.fugerit.java.doc.playground.facade.BasicInput; 4 | 5 | import lombok.Getter; 6 | import lombok.Setter; 7 | 8 | public class GenerateInput extends BasicInput { 9 | 10 | @Setter 11 | @Getter 12 | private String freemarkerJsonData; 13 | 14 | } -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/doc/GenerateOutput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.doc; 2 | 3 | import org.fugerit.java.doc.playground.facade.BasicOutput; 4 | 5 | import lombok.Getter; 6 | import lombok.Setter; 7 | 8 | public class GenerateOutput extends BasicOutput { 9 | 10 | @Setter 11 | @Getter 12 | private String generationTime; 13 | 14 | @Setter 15 | @Getter 16 | private String docOutputBase64; 17 | 18 | } 19 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/facade/BasicInput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.facade; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | public class BasicInput { 7 | 8 | @Getter 9 | @Setter 10 | private String inputFormat; 11 | 12 | @Getter 13 | @Setter 14 | private String outputFormat; 15 | 16 | @Getter 17 | @Setter 18 | private String docContent; 19 | 20 | } 21 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/facade/BasicOutput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.facade; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | public class BasicOutput { 7 | 8 | @Setter 9 | @Getter 10 | private String message; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/init/ProjectInitOutput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.init; 2 | 3 | import lombok.Getter; 4 | import lombok.Setter; 5 | 6 | public class ProjectInitOutput { 7 | 8 | @Getter 9 | @Setter 10 | private String message; 11 | 12 | @Getter 13 | @Setter 14 | private String content; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/val/ValInput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.val; 2 | 3 | import org.jboss.resteasy.reactive.PartType; 4 | import org.jboss.resteasy.reactive.RestForm; 5 | import org.jboss.resteasy.reactive.multipart.FileUpload; 6 | 7 | import jakarta.ws.rs.core.MediaType; 8 | 9 | public class ValInput { 10 | 11 | @RestForm 12 | @PartType(MediaType.APPLICATION_OCTET_STREAM) 13 | private FileUpload file; 14 | 15 | public FileUpload getFile() { 16 | return file; 17 | } 18 | 19 | public void setFile(FileUpload file) { 20 | this.file = file; 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/val/ValOutput.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.playground.val; 2 | 3 | import org.fugerit.java.doc.playground.facade.BasicOutput; 4 | 5 | public class ValOutput extends BasicOutput { 6 | 7 | private boolean valid; 8 | 9 | public ValOutput(boolean valid, String message) { 10 | super(); 11 | this.valid = valid; 12 | this.setMessage(message); 13 | } 14 | 15 | public boolean isValid() { 16 | return valid; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /dist/ 3 | /node_modules/ 4 | /package-lock.json 5 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/README.md: -------------------------------------------------------------------------------- 1 | # React + Vite 2 | 3 | This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. 4 | 5 | Currently, two official plugins are available: 6 | 7 | - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh 8 | - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh 9 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Vite + React 8 | 9 | 10 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-playground-quarkus/src/main/react/public/favicon.ico -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-playground-quarkus/src/main/react/public/logo.png -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/src/App.test.js: -------------------------------------------------------------------------------- 1 | import { render, screen } from '@testing-library/react'; 2 | import App from './App'; 3 | 4 | test('renders learn react link', () => { 5 | render(); 6 | const linkElement = screen.getByText(/learn react/i); 7 | expect(linkElement).toBeInTheDocument(); 8 | }); 9 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/src/common/app-service.jsx: -------------------------------------------------------------------------------- 1 | import FetchService from "./fetch-service"; 2 | import { 3 | onRequestConfig, 4 | onRequestConfigError, 5 | onResponse, 6 | onResponseError, 7 | onNoServerResponse, 8 | } from "./network-config"; 9 | 10 | const appService = new FetchService(onRequestConfig, onRequestConfigError, onResponse, onResponseError, onNoServerResponse); 11 | 12 | export default appService; -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/src/main.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import ReactDOM from 'react-dom/client' 3 | import App from './App.jsx' 4 | import './index.css' 5 | 6 | ReactDOM.createRoot(document.getElementById('root')).render( 7 | 8 | 9 | , 10 | ) 11 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/react/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import react from '@vitejs/plugin-react' 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | base:"/fj-doc-playground/home", 8 | server: { 9 | open: true, 10 | port: 3000, 11 | proxy: { 12 | "/fj-doc-playground/api": { 13 | target: "http://localhost:8080", 14 | changeOrigin: true, 15 | secure: false, 16 | } 17 | } 18 | }, 19 | }) 20 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/resources/META-INF/resources/.gitignore: -------------------------------------------------------------------------------- 1 | /fj-doc-playground/ 2 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/resources/META-INF/resources/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | fj-doc-playground-quarkus 6 | 7 | 8 | Playground home page 9 | 10 | 11 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/resources/META-INF/resources/playground/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Playground base page 6 | 7 | 8 |

Doc type validator

9 | 10 | List supported extensions 11 | 12 |
14 |

15 |

16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/resources/application.yaml: -------------------------------------------------------------------------------- 1 | quarkus: 2 | http: 3 | port: 8080 4 | host: 0.0.0.0 5 | 6 | header: 7 | "X-Content-Type-Options": 8 | value: nosniff 9 | Pragma: 10 | value: no-cache 11 | Cache-Control: 12 | value: no-cache 13 | 14 | rest: 15 | path: /fj-doc-playground/api 16 | 17 | 18 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/resources/catalog_res/convert-config-stub.properties: -------------------------------------------------------------------------------- 1 | # if stub handers=1, sample type handler configuration will be created 2 | stub-handler=1 3 | # docHandlerConfig attributes values 4 | registerById=true 5 | allowDuplicatedId=false 6 | # additional paarameters, only evaluated if stub-handler=1 7 | enable-opencsv=1 8 | enable-fop-base=1 9 | enable-fop-full=1 10 | enable-poi=1 -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-Bold.ttf -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-BoldItalic.ttf -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-Italic.ttf -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-Regular.ttf -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/main/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/java/org/fugerit/java/GreetingResourceIT.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java; 2 | 3 | import io.quarkus.test.junit.QuarkusIntegrationTest; 4 | 5 | @QuarkusIntegrationTest 6 | public class GreetingResourceIT extends GreetingResourceTest { 7 | // Execute the same tests but in packaged mode. 8 | } 9 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/java/org/fugerit/java/TestConsts.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java; 2 | 3 | public class TestConsts { 4 | 5 | public static final String BASE_API_PATH = "/fj-doc-playground/api"; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/resources/request/payload/convert/test_convert_input_04.json: -------------------------------------------------------------------------------- 1 | { 2 | "inputFormat": "INVALID", 3 | "outputFormat":"XML" 4 | } -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/resources/request/payload/convert_config/test_convert_config_error.json: -------------------------------------------------------------------------------- 1 | {"docContent":"...","freemarkerJsonData":"# if stub handers=1, sample type handler configuration will be created\nstub-handler=1\n# additional paarameters, only evaluated if stub-handler=1\nenable-opencsv=1\nenable-fop-base=1\nenable-fop-full=1\nenable-poi=1"} -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/resources/request/payload/convert_config/test_convert_config_ni1.json: -------------------------------------------------------------------------------- 1 | {"freemarkerJsonData":"# if stub handers=1, sample type handler configuration will be created\nstub-handler=1\n# additional paarameters, only evaluated if stub-handler=1\nenable-opencsv=1\nenable-fop-base=1\nenable-fop-full=1\nenable-poi=1"} -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/resources/request/payload/convert_config/test_convert_config_ni2.json: -------------------------------------------------------------------------------- 1 | {"docContent":"..."} -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/resources/request/payload/init/init_ko_1.json: -------------------------------------------------------------------------------- 1 | {"groupId":"org.fugerit.java.demo","artifactId":"fugerit-doc-demo","projectVersion":"1.0.0-SNAPSHOT","javaVersion":"21","venusVersion":"8.7.4"} -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/resources/request/payload/init/init_ko_2.json: -------------------------------------------------------------------------------- 1 | {"groupId":"org.fugerit.java.demo","artifactId":"../fugerit-doc-demo","projectVersion":"1.0.0-SNAPSHOT","javaVersion":"21","venusVersion":"8.7.4"} -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/resources/request/payload/init/init_ko_3.json: -------------------------------------------------------------------------------- 1 | {"groupId":"../org.fugerit.java.demo","artifactId":"fugerit-doc-demo","projectVersion":"1.0.0-SNAPSHOT","javaVersion":"21","venusVersion":"8.7.4"} -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/resources/request/payload/init/init_ok_1.json: -------------------------------------------------------------------------------- 1 | {"groupId":"org.fugerit.java.demo","artifactId":"fugerit-doc-demo","projectVersion":"1.0.0-SNAPSHOT","javaVersion":"21","venusVersion":"8.7.4","extensionList":["fj-doc-base","fj-doc-freemarker"]} -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/resources/request/payload/val/pdf_as_pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-playground-quarkus/src/test/resources/request/payload/val/pdf_as_pdf.pdf -------------------------------------------------------------------------------- /fj-doc-playground-quarkus/src/test/resources/request/payload/val/png_as_pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-playground-quarkus/src/test/resources/request/payload/val/png_as_pdf.pdf -------------------------------------------------------------------------------- /fj-doc-sample/src/main/java/org/fugerit/java/doc/sample/facade/DocCatalogEntry.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.sample.facade; 2 | 3 | import org.fugerit.java.core.cfg.xml.BasicIdConfigType; 4 | 5 | import lombok.Getter; 6 | import lombok.Setter; 7 | import lombok.ToString; 8 | 9 | @ToString 10 | public class DocCatalogEntry extends BasicIdConfigType { 11 | 12 | private static final long serialVersionUID = -3140948907871403724L; 13 | 14 | @Getter @Setter private String type; 15 | 16 | @Getter @Setter private String path; 17 | 18 | @Getter @Setter private String jsonDataPath; 19 | 20 | @Getter @Setter private String description; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/config/doc-handler-sample.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/font/TitilliumWeb-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-sample/src/main/resources/font/TitilliumWeb-Bold.ttf -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/font/TitilliumWeb-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-sample/src/main/resources/font/TitilliumWeb-BoldItalic.ttf -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/font/TitilliumWeb-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-sample/src/main/resources/font/TitilliumWeb-Italic.ttf -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/font/TitilliumWeb-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-sample/src/main/resources/font/TitilliumWeb-Regular.ttf -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/free_marker/include/test_01_row.ftl: -------------------------------------------------------------------------------- 1 | 4 | <#if (user.name)??>${user.name} 5 | <#if (user.surname)??>${user.surname} 6 | <#if (user.title)??>${user.title} 7 | -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/sample_docs/playground/data/default.json: -------------------------------------------------------------------------------- 1 | { 2 | "docTitle":"My FreeMarker Template Sample Doc Title", 3 | "listPeople": [ 4 | { "name":"Luthien", "surname":"Tinuviel", "title":"Queen" }, 5 | { "name":"Thorin", "surname":"Oakshield", "title":"King" } 6 | ] 7 | } -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/sample_docs/playground/data/full-document.json: -------------------------------------------------------------------------------- 1 | { 2 | "docTitle":"This documents tries to show all the xml document format features.", 3 | "listPeople": [ 4 | { "name":"Marie", "surname":"Curie", "title":">> Chemist" }, 5 | { "name":"Alan", "surname":"Turing", "title":" Specialist" } 6 | ], 7 | "listTests": [ 8 | { "key":"ul", "value":"default unordered list" }, 9 | { "key":"uld", "value":"dotted unordered list" }, 10 | { "key":"ulm", "value":"square unordered list" }, 11 | { "key":"ol", "value":"default ordered list" }, 12 | { "key":"oll", "value":"letter ordered list" }, 13 | { "key":"oln", "value":"numbered ordered list" } 14 | ] 15 | } -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/sample_docs/playground/data/json-props-document.json: -------------------------------------------------------------------------------- 1 | { 2 | "keys" : [ { 3 | "value" : "value 1", 4 | "key" : "key 1" 5 | }, { 6 | "value" : "value 2", 7 | "key" : "key 2" 8 | }, { 9 | "value" : "value 3", 10 | "key" : "key 3" 11 | } ], 12 | "duplications" : [ { 13 | "value" : "value 1 duplicated", 14 | "key" : "key 1" 15 | }] 16 | } -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/sample_docs/playground/data/kotlin.json: -------------------------------------------------------------------------------- 1 | { 2 | "docTitle":"My Kotlin Template Sample Doc Title", 3 | "listPeople": [ 4 | { "name":"Luthien", "surname":"Tinuviel", "title":"Queen" }, 5 | { "name":"Thorin", "surname":"Oakshield", "title":"King" } 6 | ] 7 | } -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/sample_docs/playground/data/table-align.json: -------------------------------------------------------------------------------- 1 | { 2 | "docTitle":"This document show some table cell alignment features.", 3 | "listContent": [ 4 | { "cell1":"Test long text to toggle multi line content", "cell2":"VAlign left", "cell3":"VAlign middle", "cell4":"VAlign bottom" } 5 | ] 6 | } -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/test/img_test_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-sample/src/main/resources/test/img_test_blue.png -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/test/img_test_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-sample/src/main/resources/test/img_test_green.png -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/test/img_test_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-sample/src/main/resources/test/img_test_red.png -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/test/img_test_teal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-sample/src/main/resources/test/img_test_teal.jpg -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/test/img_test_teal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-sample/src/main/resources/test/img_test_teal.png -------------------------------------------------------------------------------- /fj-doc-sample/src/main/resources/venus-config-direct/data-model/issue-426.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | docTitle: 'Issue 426 POC' 3 | listSample: 4 | - field1: 1 5 | field2: 'test a' 6 | - field1: 2 7 | field2: 'test b' 8 | - field1: 3 9 | field2: 'test c' -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/dev/AutodocDetailFullDocHelper.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.dev; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | import test.org.fugerit.java.doc.sample.facade.BasicFacadeTest; 6 | 7 | public class AutodocDetailFullDocHelper extends BasicFacadeTest { 8 | 9 | public AutodocDetailFullDocHelper() { 10 | super.setup( "full_doc_header_footer", DocConfig.TYPE_HTML, DocConfig.TYPE_HTML_FRAGMENT, DocConfig.TYPE_PDF, DocConfig.TYPE_FO ); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/dev/TestFo01.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.dev; 2 | 3 | import java.io.File; 4 | 5 | import org.junit.jupiter.api.Assertions; 6 | import org.junit.jupiter.api.Test; 7 | 8 | import test.org.fugerit.java.doc.sample.facade.BasicFacadeTest; 9 | 10 | class TestFo01 extends DevHelper { 11 | 12 | @Test 13 | void test01() throws Exception { 14 | String testCase = "test-fo-01"; 15 | boolean res = this.workerFoToPdf( new File( "src/test/resources/dev/"+testCase+".fo" ), 16 | new File( BasicFacadeTest.BASIC_OUTPUT_PATH, testCase+".pdf" ) ); 17 | Assertions.assertTrue( res ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/facade/TestAutodocHelper.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.facade; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | class TestAutodocHelper extends BasicFacadeTest { 6 | 7 | public TestAutodocHelper() { 8 | super.setup( "autodoc_helper", DocConfig.TYPE_XML, DocConfig.TYPE_PDF, DocConfig.TYPE_XLSX, DocConfig.TYPE_HTML ); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/facade/TestIntro01.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.facade; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | class TestIntro01 extends BasicFacadeTest { 6 | 7 | public TestIntro01() { 8 | super.setup( "intro_01", DocConfig.TYPE_XML, DocConfig.TYPE_PDF, DocConfig.TYPE_XLS, DocConfig.TYPE_HTML ); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/facade/TestIntro01Json.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.facade; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | class TestIntro01Json extends BasicFacadeTest { 6 | 7 | public TestIntro01Json() { 8 | super.setup( "intro_01.json", DocConfig.TYPE_MD, DocConfig.TYPE_HTML, DocConfig.TYPE_PDF, DocConfig.TYPE_FO ); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/facade/TestIntro01Yaml.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.facade; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | class TestIntro01Yaml extends BasicFacadeTest { 6 | 7 | public TestIntro01Yaml() { 8 | super.setup( "intro_01.yaml", DocConfig.TYPE_MD, DocConfig.TYPE_HTML, DocConfig.TYPE_PDF, DocConfig.TYPE_FO ); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/facade/TestIntro02.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.facade; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | class TestIntro02 extends BasicFacadeTest { 6 | 7 | public TestIntro02() { 8 | super.setup( "intro_02", DocConfig.TYPE_XML, DocConfig.TYPE_PDF, DocConfig.TYPE_XLS, DocConfig.TYPE_HTML, DocConfig.TYPE_XLSX ); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/freemarker/TestFreeMarker01.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.freemarker; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | public class TestFreeMarker01 extends BasicFreeMarkerTest { 6 | 7 | public TestFreeMarker01() { 8 | super.setupFreemMarker( "free-marker-01", DocConfig.TYPE_FO, 9 | DocConfig.TYPE_XML, DocConfig.TYPE_PDF, 10 | DocConfig.TYPE_HTML); 11 | } 12 | 13 | 14 | 15 | } 16 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/freemarker/TestFreeMarker01Fop.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.freemarker; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | public class TestFreeMarker01Fop extends BasicFreeMarkerTest { 6 | 7 | public TestFreeMarker01Fop() { 8 | super.setupFreemMarker( "free-marker-01-fop", DocConfig.TYPE_FO, DocConfig.TYPE_PDF ); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/freemarker/TestFreeMarker01FreeMarkerHtml.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.freemarker; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | public class TestFreeMarker01FreeMarkerHtml extends BasicFreeMarkerTest { 6 | 7 | public TestFreeMarker01FreeMarkerHtml() { 8 | super.setupFreemMarker( "free-marker-01-fop", DocConfig.TYPE_HTML, DocConfig.TYPE_HTML_FRAGMENT ); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/freemarker/TestFreeMarker01FullFacade.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.freemarker; 2 | 3 | import org.fugerit.java.doc.mod.fop.FreeMarkerFopTypeHandler; 4 | import org.fugerit.java.doc.mod.fop.PdfFopTypeHandler; 5 | 6 | public class TestFreeMarker01FullFacade extends BasicFreeMarkerTest { 7 | 8 | public TestFreeMarker01FullFacade() { 9 | super.setupFreemMarker( "full-facade-01", 10 | FreeMarkerFopTypeHandler.HANDLER.getKey(), 11 | PdfFopTypeHandler.HANDLER.getKey() ); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/freemarker/TestFreeMarker02.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.freemarker; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | public class TestFreeMarker02 extends BasicFreeMarkerTest { 6 | 7 | public TestFreeMarker02() { 8 | super.setupFreemMarker( "free-marker-02", DocConfig.TYPE_XML, DocConfig.TYPE_PDF, DocConfig.TYPE_FO, DocConfig.TYPE_XLS, DocConfig.TYPE_HTML, DocConfig.TYPE_XLSX ); 9 | } 10 | 11 | 12 | 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/freemarker/TestFreeMarkerColorTest.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.freemarker; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | public class TestFreeMarkerColorTest extends BasicFreeMarkerTest { 6 | 7 | public TestFreeMarkerColorTest() { 8 | super.setupFreemMarker( "free-marker-color-test", DocConfig.TYPE_XML, DocConfig.TYPE_PDF, DocConfig.TYPE_XLS, DocConfig.TYPE_HTML, DocConfig.TYPE_XLSX ); 9 | } 10 | 11 | 12 | 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/freemarker/TestFreeMarkerFopFont.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.freemarker; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | public class TestFreeMarkerFopFont extends BasicFreeMarkerTest { 6 | 7 | public TestFreeMarkerFopFont() { 8 | super.setupFreemMarker( "free-marker-test-fop-font", DocConfig.TYPE_FO, DocConfig.TYPE_PDF, DocConfig.TYPE_HTML ); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/freemarker/TestFreeMarkerFormatTest.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.freemarker; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | public class TestFreeMarkerFormatTest extends BasicFreeMarkerTest { 6 | 7 | public TestFreeMarkerFormatTest() { 8 | super.setupFreemMarker( "free-marker-format-test", DocConfig.TYPE_XML, DocConfig.TYPE_PDF, DocConfig.TYPE_XLS, DocConfig.TYPE_HTML, DocConfig.TYPE_XLSX ); 9 | } 10 | 11 | 12 | 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/freemarker/TestPdfA.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.freemarker; 2 | 3 | import org.fugerit.java.doc.base.config.DocConfig; 4 | 5 | public class TestPdfA extends BasicFreeMarkerTest { 6 | 7 | public TestPdfA() { 8 | super.setupFreemMarker( "pdf_a_test", DocConfig.TYPE_FO, DocConfig.TYPE_PDF, PDF_A_FOP, PDF_UA_FOP ); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/handlertest/TestFullFopPDF.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.handlertest; 2 | 3 | import org.fugerit.java.doc.mod.fop.FreeMarkerFopTypeHandler; 4 | import org.fugerit.java.doc.mod.fop.PdfFopTypeHandler; 5 | import org.junit.jupiter.api.Test; 6 | 7 | class TestFullFopPDF extends TestHandleBase { 8 | 9 | @Test 10 | void testPDF() { 11 | this.testWorker( "handler_full_test" , 12 | FreeMarkerFopTypeHandler.HANDLER_UTF8, 13 | PdfFopTypeHandler.HANDLER ); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/java/test/org/fugerit/java/doc/sample/handlertest/TestFullFreemarkerHTML.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.sample.handlertest; 2 | 3 | import org.fugerit.java.doc.freemarker.html.FreeMarkerHtmlTypeHandler; 4 | import org.junit.jupiter.api.Test; 5 | 6 | class TestFullFreemarkerHTML extends TestHandleBase { 7 | 8 | @Test 9 | void testHTML() { 10 | this.testWorker( "handler_full_test" , FreeMarkerHtmlTypeHandler.HANDLER_UTF8 ); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /fj-doc-sample/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-tool/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog for module fj-doc-tool 2 | 3 | ## version 1.3.1-rc.003 4 | * generate-stub tool -------------------------------------------------------------------------------- /fj-doc-tool/src/main/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-tool/src/test/java/test/org/fugerit/java/doc/tool/TestDocTool.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.tool; 2 | 3 | import java.util.Properties; 4 | 5 | import org.fugerit.java.core.function.SafeFunction; 6 | import org.fugerit.java.core.util.PropsIO; 7 | import org.fugerit.java.doc.tool.DocTool; 8 | 9 | class TestDocTool { 10 | 11 | protected boolean docToolWorker( String paramsPath ) { 12 | return SafeFunction.get( () -> { 13 | Properties params = PropsIO.loadFromFile( paramsPath ); 14 | DocTool.handle( params ); 15 | return true; 16 | } ); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /fj-doc-tool/src/test/java/test/org/fugerit/java/doc/tool/TestGenerateHelperTool.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.tool; 2 | 3 | import org.junit.jupiter.api.Assertions; 4 | import org.junit.jupiter.api.Test; 5 | 6 | class TestGenerateHelperTool extends TestDocTool { 7 | 8 | @Test 9 | void testGenerateHelper() { 10 | boolean ok = this.docToolWorker( "src/test/resources/params-test/test-generate-helper.properties" ); 11 | Assertions.assertTrue( ok ); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/convert-config-autodoc.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | tool=generate-stub 3 | input=src/test/resources/convert-config-test/doc-process-autodoc.xml 4 | output=target/autodoc-new-process-config.xml 5 | stub-handler=0 -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/convert-config-fop.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | tool=generate-stub 3 | input=src/test/resources/convert-config-test/fop-process-config.xml 4 | output=target/fop-new-process-config.xml 5 | stub-handler=0 -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/convert-config-help.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | tool=generate-stub 3 | help= -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/convert-config-sample.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | tool=generate-stub 3 | input=src/test/resources/convert-config-test/doc-process-sample.xml 4 | output=target/sample-new-process-config.xml 5 | enable-opencsv=1 6 | enable-fop-base=1 7 | enable-fop-full=0 8 | enable-poi=1 -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/convert-config-yaml.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | tool=generate-stub 3 | input=src/test/resources/convert-config-test/doc-process-yaml.xml 4 | output=target/yaml-new-process-config.xml 5 | stub-handler=0 -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/generate-stub-001.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | tool=generate-stub 3 | output=target/freemarker-doc-config-stub-001.xml 4 | stub-chain=1 -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/generate-stub-002.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | tool=generate-stub 3 | output=target/freemarker-doc-config-stub-002.xml 4 | stub-chain=1 5 | config-id=FJ_DOC_STUB_002 6 | fm-version=2.3.31 7 | fm-template-path=/free_marker/ 8 | enable-opencsv=1 9 | enable-fop-base=1 10 | enable-fop-full=0 11 | enable-poi=1 -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/generate-stub-help.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | tool=generate-stub 3 | help= -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/test-fail-01.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | tool=test 3 | -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/test-fail-02.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/test-fail-03.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | tool=generate-stub -------------------------------------------------------------------------------- /fj-doc-tool/src/test/resources/params-test/test-generate-helper.properties: -------------------------------------------------------------------------------- 1 | # test params for generate stub 2 | tool=generate-stub 3 | input=src/test/resources/convert-config-test/doc-process-sample.xml 4 | output=target/sample-new-process-config.xml 5 | enable-opencsv=1 6 | enable-fop-base=1 7 | enable-fop-full=0 8 | enable-poi=1 -------------------------------------------------------------------------------- /fj-doc-val-core/src/main/java/org/fugerit/java/doc/val/core/DocTypeValidationResult.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.val.core; 2 | import org.fugerit.java.core.util.result.BasicResult; 3 | 4 | public class DocTypeValidationResult extends BasicResult { 5 | 6 | public DocTypeValidationResult(int resultCode) { 7 | super(resultCode); 8 | } 9 | 10 | public static DocTypeValidationResult newOk() { 11 | return new DocTypeValidationResult( RESULT_CODE_OK ); 12 | } 13 | 14 | public static DocTypeValidationResult newFail() { 15 | return new DocTypeValidationResult( RESULT_CODE_KO ); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /fj-doc-val-core/src/main/java/org/fugerit/java/doc/val/core/DocTypeValidator.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.val.core; 2 | 3 | import java.io.IOException; 4 | import java.io.InputStream; 5 | import java.util.Set; 6 | 7 | public interface DocTypeValidator { 8 | 9 | Set getSupportedExtensions(); 10 | 11 | String getMimeType(); 12 | 13 | boolean isExtensionSupported( String ext ); 14 | 15 | boolean isMimeTypeSupported( String mime ); 16 | 17 | boolean check( InputStream is ) throws IOException; 18 | 19 | boolean checkCompatibility(); 20 | 21 | DocTypeValidationResult validate( InputStream is ) throws IOException; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /fj-doc-val-core/src/main/java/org/fugerit/java/doc/val/core/io/NopOutputStream.java: -------------------------------------------------------------------------------- 1 | package org.fugerit.java.doc.val.core.io; 2 | 3 | import java.io.IOException; 4 | import java.io.OutputStream; 5 | 6 | public class NopOutputStream extends OutputStream { 7 | 8 | @Override 9 | public void write(byte[] b) throws IOException { 10 | // do nothing implementation 11 | } 12 | 13 | @Override 14 | public void write(byte[] b, int off, int len) throws IOException { 15 | // do nothing implementation 16 | } 17 | 18 | @Override 19 | public void write(int b) throws IOException { 20 | // do nothing implementation 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/doc_as_doc.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/doc_as_doc.doc -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/docx_as_doc.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/docx_as_doc.doc -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/docx_as_docx.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/docx_as_docx.docx -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/jpg_as_jpg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/jpg_as_jpg.jpeg -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/jpg_as_jpg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/jpg_as_jpg.jpg -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/jpg_as_xlsx.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/jpg_as_xlsx.xlsx -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/pdf_as_jpg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/pdf_as_jpg.jpg -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/pdf_as_pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/pdf_as_pdf.pdf -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/png_as_pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/png_as_pdf.pdf -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/png_as_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/png_as_png.png -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/tiff_as_tiff.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/tiff_as_tiff.tif -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/tiff_as_tiff.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/tiff_as_tiff.tiff -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/xls_as_xls.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/xls_as_xls.xls -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/xls_as_xml.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/xls_as_xml.xml -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/xlsx_as_xls.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/xlsx_as_xls.xlsx -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/xlsx_as_xlsx.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-core/src/test/resources/sample/xlsx_as_xlsx.xlsx -------------------------------------------------------------------------------- /fj-doc-val-core/src/test/resources/sample/xml_as_xml.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /fj-doc-val-p7m/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-val-p7m/src/test/resources/sample/docx_as_docx.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-p7m/src/test/resources/sample/docx_as_docx.docx -------------------------------------------------------------------------------- /fj-doc-val-p7m/src/test/resources/sample/pdf_as_pdf.p7m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-p7m/src/test/resources/sample/pdf_as_pdf.p7m -------------------------------------------------------------------------------- /fj-doc-val-p7m/src/test/resources/sample/png_as_p7m.p7m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-p7m/src/test/resources/sample/png_as_p7m.p7m -------------------------------------------------------------------------------- /fj-doc-val-pdfbox/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-val-pdfbox/src/test/resources/sample/pdf_as_pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-pdfbox/src/test/resources/sample/pdf_as_pdf.pdf -------------------------------------------------------------------------------- /fj-doc-val-pdfbox/src/test/resources/sample/pdf_as_pdf_p7m.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-pdfbox/src/test/resources/sample/pdf_as_pdf_p7m.pdf -------------------------------------------------------------------------------- /fj-doc-val-pdfbox/src/test/resources/sample/png_as_pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-pdfbox/src/test/resources/sample/png_as_pdf.pdf -------------------------------------------------------------------------------- /fj-doc-val-poi/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /fj-doc-val-poi/src/test/resources/sample/doc_as_doc.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-poi/src/test/resources/sample/doc_as_doc.doc -------------------------------------------------------------------------------- /fj-doc-val-poi/src/test/resources/sample/doc_as_docx.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-poi/src/test/resources/sample/doc_as_docx.docx -------------------------------------------------------------------------------- /fj-doc-val-poi/src/test/resources/sample/docx_as_doc.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-poi/src/test/resources/sample/docx_as_doc.doc -------------------------------------------------------------------------------- /fj-doc-val-poi/src/test/resources/sample/docx_as_docx.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-poi/src/test/resources/sample/docx_as_docx.docx -------------------------------------------------------------------------------- /fj-doc-val-poi/src/test/resources/sample/jpg_as_xlsx.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-poi/src/test/resources/sample/jpg_as_xlsx.xlsx -------------------------------------------------------------------------------- /fj-doc-val-poi/src/test/resources/sample/xls_as_xls.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-poi/src/test/resources/sample/xls_as_xls.xls -------------------------------------------------------------------------------- /fj-doc-val-poi/src/test/resources/sample/xlsx_as_xls.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-poi/src/test/resources/sample/xlsx_as_xls.xlsx -------------------------------------------------------------------------------- /fj-doc-val-poi/src/test/resources/sample/xlsx_as_xlsx.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fugerit-org/fj-doc/0b13681f6e39f924d1193afd73b5e73e4932d5b4/fj-doc-val-poi/src/test/resources/sample/xlsx_as_xlsx.xlsx -------------------------------------------------------------------------------- /fj-doc-val/src/test/java/test/org/fugerit/java/doc/val/TestCreateFullFactory.java: -------------------------------------------------------------------------------- 1 | package test.org.fugerit.java.doc.val; 2 | 3 | import org.fugerit.java.doc.val.DocValidatorFacadeFactory; 4 | import org.junit.jupiter.api.Assertions; 5 | import org.junit.jupiter.api.Test; 6 | 7 | class TestCreateFullFactory { 8 | 9 | @Test 10 | void test() { 11 | Assertions.assertNotNull( new DocValidatorFacadeFactory().createFullDocValidatorFacade() ); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /fj-doc-val/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | --------------------------------------------------------------------------------