From 993ffd2d450b87f7eb288e3a103dd54776eed668 Mon Sep 17 00:00:00 2001 From: Willem Date: Sat, 5 Feb 2022 18:26:58 +0100 Subject: [PATCH] Start with x4o for numberxd --- .../numberxd/x4o/NumberXDModuleLoader.java | 33 +++++++++++++++++++ .../META-INF/numberxd/numberxd-modules.xml | 3 +- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 demo4d-numberxd/src/main/love/distributedrebirth/numberxd/x4o/NumberXDModuleLoader.java diff --git a/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/x4o/NumberXDModuleLoader.java b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/x4o/NumberXDModuleLoader.java new file mode 100644 index 00000000..07fc54ec --- /dev/null +++ b/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/x4o/NumberXDModuleLoader.java @@ -0,0 +1,33 @@ +package love.distributedrebirth.numberxd.x4o; + +import org.x4o.xml.lang.X4OLanguageLocal; +import org.x4o.xml.lang.X4OLanguageModuleLoader; +import org.x4o.xml.lang.X4OLanguageModuleLoaderException; +import org.x4o.xml.lang.X4OLanguageModuleLocal; + +import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; + +@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") +public class NumberXDModuleLoader implements X4OLanguageModuleLoader { + + private static final String PP_NXD_PROVIDER_HOST = "numberxd.x4o.distributedrebirth.love"; + private static final String PP_NXD_XMLNS = "http://"+PP_NXD_PROVIDER_HOST+"/xml/ns/"; + private static final String PP_NXD_XSD_FILE = "-1.0.xsd"; + private static final String NXD_CORE = "nxd-core"; + private static final String NXD_ROOT = "nxd-root"; + private static final String NXD_CORE_XSD_FILE = NXD_CORE+PP_NXD_XSD_FILE; + private static final String NXD_ROOT_XSD_FILE = NXD_ROOT+PP_NXD_XSD_FILE; + /** The NXD core namespace uri. */ + public static final String NXD_CORE_URI = PP_NXD_XMLNS+NXD_CORE; + /** The NXD root namespace uri. */ + public static final String NXD_ROOT_URI = PP_NXD_XMLNS+NXD_ROOT; + /** The NXD core schema namespace uri. */ + public static final String NXD_CORE_XSD_URI = NXD_CORE_URI+PP_NXD_XSD_FILE; + /** The NXD root schema namespace uri. */ + public static final String NXD_ROOT_XSD_URI = NXD_ROOT_URI+PP_NXD_XSD_FILE; + + @Override + public void loadLanguageModule(X4OLanguageLocal arg0, X4OLanguageModuleLocal arg1) throws X4OLanguageModuleLoaderException { + // TODO Auto-generated method stub + } +} diff --git a/demo4d-numberxd/src/resources/META-INF/numberxd/numberxd-modules.xml b/demo4d-numberxd/src/resources/META-INF/numberxd/numberxd-modules.xml index d551d9a4..e9186586 100644 --- a/demo4d-numberxd/src/resources/META-INF/numberxd/numberxd-modules.xml +++ b/demo4d-numberxd/src/resources/META-INF/numberxd/numberxd-modules.xml @@ -5,7 +5,6 @@ xsi:schemaLocation="http://language.x4o.org/xml/ns/modules http://language.x4o.org/xml/ns/modules-1.0.xsd" > - numberxd-lang.eld - numberxd-base2t.eld + love.distributedrebirth.numberxd.x4o.NumberXDModuleLoader