diff --git a/nx01-redsea-jdatstart/pom.xml b/nx01-redsea-jdatstart/pom.xml new file mode 100644 index 0000000..14fa6a9 --- /dev/null +++ b/nx01-redsea-jdatstart/pom.xml @@ -0,0 +1,21 @@ + + 4.0.0 + + love.distributedrebirth.nx01 + nx01 + 〇一。壬寅。一〄-SNAPSHOT + + nx01-redsea-jdatstart + + + love.distributedrebirth.nx01 + nx01-redsea + + + org.junit.jupiter + junit-jupiter + test + + + \ No newline at end of file diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/JDatStartDriver.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/JDatStartDriver.java new file mode 100644 index 0000000..b4709ce --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/JDatStartDriver.java @@ -0,0 +1,58 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart; + +import org.x4o.xml.X4ODriver; +import org.x4o.xml.X4ODriverManager; + +import love.distributedrebirth.nx01.redsea.jdatstart.model.JDatStart; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public class JDatStartDriver extends X4ODriver { + + // NOTE: a WFS module never needs a driver as they get loaded by + // the water driver, but here we try to support old style files too. + + static final public String LANGUAGE_NAME = "redsea-jdatstart"; + static final public String[] LANGUAGE_VERSIONS = new String[]{"6.0","7.0"}; + + @Override + public String getLanguageName() { + return LANGUAGE_NAME; + } + + @Override + public String[] getLanguageVersions() { + return LANGUAGE_VERSIONS; + } + + static public JDatStartDriver newInstance() { + return (JDatStartDriver)X4ODriverManager.getX4ODriver(LANGUAGE_NAME); + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/AbstractJDatStartItemFilter.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/AbstractJDatStartItemFilter.java new file mode 100644 index 0000000..be9af4b --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/AbstractJDatStartItemFilter.java @@ -0,0 +1,61 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +abstract public class AbstractJDatStartItemFilter { + + private String os; + private String arch; + private String locale; + + public String getOs() { + return os; + } + + public void setOs(String os) { + this.os = os; + } + + public String getArch() { + return arch; + } + + public void setArch(String arch) { + this.arch = arch; + } + + public String getLocale() { + return locale; + } + + public void setLocale(String locale) { + this.locale = locale; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStart.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStart.java new file mode 100644 index 0000000..5f26bdb --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStart.java @@ -0,0 +1,119 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +import java.util.List; + +import love.distributedrebirth.nx01.redsea.jdatstart.model.resource.JDatStartResources; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStart { + + private String spec; + private String version; + private String codebase; + private String href; + private List informations; + private JDatStartSecurity security; + private JDatStartUpdate update; + private List resources; + private JDatStartRun runner; + + public String getSpec() { + return spec; + } + + public void setSpec(String spec) { + this.spec = spec; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getCodebase() { + return codebase; + } + + public void setCodebase(String codebase) { + this.codebase = codebase; + } + + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public List getInformations() { + return informations; + } + + public void setInformations(List informations) { + this.informations = informations; + } + + public JDatStartSecurity getSecurity() { + return security; + } + + public void setSecurity(JDatStartSecurity security) { + this.security = security; + } + + public JDatStartUpdate getUpdate() { + return update; + } + + public void setUpdate(JDatStartUpdate update) { + this.update = update; + } + + public List getResources() { + return resources; + } + + public void setResources(List resources) { + this.resources = resources; + } + + public JDatStartRun getRunner() { + return runner; + } + + public void setRunner(JDatStartRun runner) { + this.runner = runner; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartInfo.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartInfo.java new file mode 100644 index 0000000..88e9b5a --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartInfo.java @@ -0,0 +1,153 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +import java.util.List; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartInfo extends AbstractJDatStartItemFilter { + + private String platform; + private JDatStartMetaTitle title; + private String vendor; + private String homepageHref; + private List descriptions; + private List icons; + private Boolean offlineAllowed; + private Boolean shortcutOnline; + private Boolean shortcutDesktop; + private Boolean shortcutMenu; + private String shortcutMenuSub; + private List associations; + private List relatedContents; + + public String getPlatform() { + return platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + } + + public JDatStartMetaTitle getTitle() { + return title; + } + + public void setTitle(JDatStartMetaTitle title) { + this.title = title; + } + + public String getVendor() { + return vendor; + } + + public void setVendor(String vendor) { + this.vendor = vendor; + } + + public String getHomepageHref() { + return homepageHref; + } + + public void setHomepageHref(String homepageHref) { + this.homepageHref = homepageHref; + } + + public List getDescriptions() { + return descriptions; + } + + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + public List getIcons() { + return icons; + } + + public void setIcons(List icons) { + this.icons = icons; + } + + public Boolean getOfflineAllowed() { + return offlineAllowed; + } + + public void setOfflineAllowed(Boolean offlineAllowed) { + this.offlineAllowed = offlineAllowed; + } + + public Boolean getShortcutOnline() { + return shortcutOnline; + } + + public void setShortcutOnline(Boolean shortcutOnline) { + this.shortcutOnline = shortcutOnline; + } + + public Boolean getShortcutDesktop() { + return shortcutDesktop; + } + + public void setShortcutDesktop(Boolean shortcutDesktop) { + this.shortcutDesktop = shortcutDesktop; + } + + public Boolean getShortcutMenu() { + return shortcutMenu; + } + + public void setShortcutMenu(Boolean shortcutMenu) { + this.shortcutMenu = shortcutMenu; + } + + public String getShortcutMenuSub() { + return shortcutMenuSub; + } + + public void setShortcutMenuSub(String shortcutMenuSub) { + this.shortcutMenuSub = shortcutMenuSub; + } + + public List getAssociations() { + return associations; + } + + public void setAssociations(List associations) { + this.associations = associations; + } + + public List getRelatedContents() { + return relatedContents; + } + + public void setRelatedContents(List relatedContents) { + this.relatedContents = relatedContents; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartInfoAssociation.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartInfoAssociation.java new file mode 100644 index 0000000..c4d854c --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartInfoAssociation.java @@ -0,0 +1,70 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartInfoAssociation { + + private String extensions; + private String mimeType; + private JDatStartMetaDescription description; + private JDatStartMetaIcon icon; + + public String getExtensions() { + return extensions; + } + + public void setExtensions(String extensions) { + this.extensions = extensions; + } + + public String getMimeType() { + return mimeType; + } + + public void setMimeType(String mimeType) { + this.mimeType = mimeType; + } + + public JDatStartMetaDescription getDescription() { + return description; + } + + public void setDescription(JDatStartMetaDescription description) { + this.description = description; + } + + public JDatStartMetaIcon getIcon() { + return icon; + } + + public void setIcon(JDatStartMetaIcon icon) { + this.icon = icon; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartInfoRelatedContent.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartInfoRelatedContent.java new file mode 100644 index 0000000..0b8526c --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartInfoRelatedContent.java @@ -0,0 +1,70 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartInfoRelatedContent { + + private String href; + private JDatStartMetaTitle title; + private JDatStartMetaDescription description; + private JDatStartMetaIcon icon; + + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public JDatStartMetaTitle getTitle() { + return title; + } + + public void setTitle(JDatStartMetaTitle title) { + this.title = title; + } + + public JDatStartMetaDescription getDescription() { + return description; + } + + public void setDescription(JDatStartMetaDescription description) { + this.description = description; + } + + public JDatStartMetaIcon getIcon() { + return icon; + } + + public void setIcon(JDatStartMetaIcon icon) { + this.icon = icon; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaDescription.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaDescription.java new file mode 100644 index 0000000..006aa1b --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaDescription.java @@ -0,0 +1,52 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartMetaDescription { + + private String text; + private JDatStartMetaDescriptionKind kind; + + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + public JDatStartMetaDescriptionKind getKind() { + return kind; + } + + public void setKind(JDatStartMetaDescriptionKind kind) { + this.kind = kind; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaDescriptionKind.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaDescriptionKind.java new file mode 100644 index 0000000..a58cb94 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaDescriptionKind.java @@ -0,0 +1,56 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public enum JDatStartMetaDescriptionKind { + ONE_LINE, + SHORT, + TOOLTOP, + ; + + private final String qName; + + private JDatStartMetaDescriptionKind() { + qName = name().toLowerCase().replaceAll("_", "-"); + } + + public String getQName() { + return qName; + } + + public static JDatStartMetaDescriptionKind valueOfQName(String qName) { + for (JDatStartMetaDescriptionKind kind : values()) { + if (kind.getQName().equals(qName)) { + return kind; + } + } + throw new IllegalArgumentException("Unsupported description kind: " + qName); + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaIcon.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaIcon.java new file mode 100644 index 0000000..901dcdd --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaIcon.java @@ -0,0 +1,97 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartMetaIcon { + + private String href; + private String version; + private Integer width; + private Integer height; + private JDatStartMetaIconKind kind; + private Integer depth; + private Integer size; + + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public Integer getWidth() { + return width; + } + + public void setWidth(Integer width) { + this.width = width; + } + + public Integer getHeight() { + return height; + } + + public void setHeight(Integer height) { + this.height = height; + } + + public JDatStartMetaIconKind getKind() { + return kind; + } + + public void setKind(JDatStartMetaIconKind kind) { + this.kind = kind; + } + + public Integer getDepth() { + return depth; + } + + public void setDepth(Integer depth) { + this.depth = depth; + } + + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaIconKind.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaIconKind.java new file mode 100644 index 0000000..d2828e4 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaIconKind.java @@ -0,0 +1,59 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public enum JDatStartMetaIconKind { + DEFAULT, + SELECTED, + DISABLED, + ROLLOVER, + SPLASH, + SHORTCUT, + ; + + private final String qName; + + private JDatStartMetaIconKind() { + qName = name().toLowerCase(); + } + + public String getQName() { + return qName; + } + + public static JDatStartMetaIconKind valueOfQName(String qName) { + for (JDatStartMetaIconKind kind : values()) { + if (kind.getQName().equals(qName)) { + return kind; + } + } + throw new IllegalArgumentException("Unsupported icon kind: " + qName); + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaTitle.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaTitle.java new file mode 100644 index 0000000..96eaeb2 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartMetaTitle.java @@ -0,0 +1,43 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartMetaTitle { + + private String text; + + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRun.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRun.java new file mode 100644 index 0000000..f7e88aa --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRun.java @@ -0,0 +1,33 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public interface JDatStartRun { +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunApplet.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunApplet.java new file mode 100644 index 0000000..aa1674c --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunApplet.java @@ -0,0 +1,90 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +import java.util.List; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartRunApplet implements JDatStartRun { + + private String documentBase; + private String mainClass; + private String name; + private Integer width; + private Integer height; + private List parameters; + + public String getDocumentBase() { + return documentBase; + } + + public void setDocumentBase(String documentBase) { + this.documentBase = documentBase; + } + + public String getMainClass() { + return mainClass; + } + + public void setMainClass(String mainClass) { + this.mainClass = mainClass; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getWidth() { + return width; + } + + public void setWidth(Integer width) { + this.width = width; + } + + public Integer getHeight() { + return height; + } + + public void setHeight(Integer height) { + this.height = height; + } + + public List getParameters() { + return parameters; + } + + public void setParameters(List parameters) { + this.parameters = parameters; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunAppletParameter.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunAppletParameter.java new file mode 100644 index 0000000..ebb3ac8 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunAppletParameter.java @@ -0,0 +1,52 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartRunAppletParameter implements JDatStartRun { + + private String name; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunApplication.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunApplication.java new file mode 100644 index 0000000..c32b1d7 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunApplication.java @@ -0,0 +1,54 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +import java.util.List; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartRunApplication implements JDatStartRun { + + private String mainClass; + private List arguments; + + public String getMainClass() { + return mainClass; + } + + public void setMainClass(String mainClass) { + this.mainClass = mainClass; + } + + public List getArguments() { + return arguments; + } + + public void setArguments(List arguments) { + this.arguments = arguments; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunComponent.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunComponent.java new file mode 100644 index 0000000..0fb417c --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunComponent.java @@ -0,0 +1,33 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartRunComponent implements JDatStartRun { +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunInstaller.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunInstaller.java new file mode 100644 index 0000000..b8ef180 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartRunInstaller.java @@ -0,0 +1,43 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartRunInstaller implements JDatStartRun { + + private String mainClass; + + public String getMainClass() { + return mainClass; + } + + public void setMainClass(String mainClass) { + this.mainClass = mainClass; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartSecurity.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartSecurity.java new file mode 100644 index 0000000..b002ff6 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartSecurity.java @@ -0,0 +1,52 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartSecurity { + + private Boolean allPermissions; + private Boolean j2eeApplicationClientPermissions; + + public Boolean getAllPermissions() { + return allPermissions; + } + + public void setAllPermissions(Boolean allPermissions) { + this.allPermissions = allPermissions; + } + + public Boolean getJ2eeApplicationClientPermissions() { + return j2eeApplicationClientPermissions; + } + + public void setJ2eeApplicationClientPermissions(Boolean j2eeApplicationClientPermissions) { + this.j2eeApplicationClientPermissions = j2eeApplicationClientPermissions; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartUpdate.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartUpdate.java new file mode 100644 index 0000000..2a36aa6 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartUpdate.java @@ -0,0 +1,52 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartUpdate { + + private JDatStartUpdateCheck check; + private JDatStartUpdatePolicy policy; + + public JDatStartUpdateCheck getCheck() { + return check; + } + + public void setCheck(JDatStartUpdateCheck check) { + this.check = check; + } + + public JDatStartUpdatePolicy getPolicy() { + return policy; + } + + public void setPolicy(JDatStartUpdatePolicy policy) { + this.policy = policy; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartUpdateCheck.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartUpdateCheck.java new file mode 100644 index 0000000..a29d2ee --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartUpdateCheck.java @@ -0,0 +1,56 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public enum JDatStartUpdateCheck { + ALWAYS, + TIMEOUT, + BACKGROUND, + ; + + private final String qName; + + private JDatStartUpdateCheck() { + qName = name().toLowerCase(); + } + + public String getQName() { + return qName; + } + + public static JDatStartUpdateCheck valueOfQName(String qName) { + for (JDatStartUpdateCheck kind : values()) { + if (kind.getQName().equals(qName)) { + return kind; + } + } + throw new IllegalArgumentException("Unsupported update check: " + qName); + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartUpdatePolicy.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartUpdatePolicy.java new file mode 100644 index 0000000..96f175a --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/JDatStartUpdatePolicy.java @@ -0,0 +1,56 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public enum JDatStartUpdatePolicy { + ALWAYS, + PROMPT_UPDATE, + PROMPT_RUN, + ; + + private final String qName; + + private JDatStartUpdatePolicy() { + qName = name().toLowerCase().replaceAll("_", "-"); + } + + public String getQName() { + return qName; + } + + public static JDatStartUpdatePolicy valueOfQName(String qName) { + for (JDatStartUpdatePolicy kind : values()) { + if (kind.getQName().equals(qName)) { + return kind; + } + } + throw new IllegalArgumentException("Unsupported update policy: " + qName); + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourceDownload.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourceDownload.java new file mode 100644 index 0000000..47c4caa --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourceDownload.java @@ -0,0 +1,55 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public enum JDatStartResourceDownload { + EAGER, + LAZY, + ; + + private final String qName; + + private JDatStartResourceDownload() { + qName = name().toLowerCase(); + } + + public String getQName() { + return qName; + } + + public static JDatStartResourceDownload valueOfQName(String qName) { + for (JDatStartResourceDownload kind : values()) { + if (kind.getQName().equals(qName)) { + return kind; + } + } + throw new IllegalArgumentException("Unsupported jar download: " + qName); + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourceDownloadExtension.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourceDownloadExtension.java new file mode 100644 index 0000000..62dc586 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourceDownloadExtension.java @@ -0,0 +1,61 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartResourceDownloadExtension { + + private String extensionPart; + private JDatStartResourceDownload download; + private String part; + + public String getExtensionPart() { + return extensionPart; + + } + public void setExtensionPart(String extensionPart) { + this.extensionPart = extensionPart; + } + + public JDatStartResourceDownload getDownload() { + return download; + } + + public void setDownload(JDatStartResourceDownload download) { + this.download = download; + } + + public String getPart() { + return part; + } + + public void setPart(String part) { + this.part = part; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePart.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePart.java new file mode 100644 index 0000000..5451305 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePart.java @@ -0,0 +1,33 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public interface JDatStartResourcePart { +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartArtifact.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartArtifact.java new file mode 100644 index 0000000..2e1e14c --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartArtifact.java @@ -0,0 +1,61 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartResourcePartArtifact implements JDatStartResourcePart { + + private String groupId; + private String artifactId; + private String version; + + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public String getArtifactId() { + return artifactId; + } + + public void setArtifactId(String artifactId) { + this.artifactId = artifactId; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartExtension.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartExtension.java new file mode 100644 index 0000000..3463bde --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartExtension.java @@ -0,0 +1,73 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +import java.util.ArrayList; +import java.util.List; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartResourcePartExtension implements JDatStartResourcePart { + + private String version; + private String name; + private String href; + private List downloads = new ArrayList<>(); + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public List getDownloads() { + return downloads; + } + + public void setDownloads(List downloads) { + this.downloads = downloads; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartJ2SE.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartJ2SE.java new file mode 100644 index 0000000..b13a93d --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartJ2SE.java @@ -0,0 +1,90 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +import java.util.List; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartResourcePartJ2SE implements JDatStartResourcePart { + + private String version; + private String href; + private String initialHeapSize; + private String maxHeapSize; + private String javaVmArgs; + private List resources; + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public String getInitialHeapSize() { + return initialHeapSize; + } + + public void setInitialHeapSize(String initialHeapSize) { + this.initialHeapSize = initialHeapSize; + } + + public String getMaxHeapSize() { + return maxHeapSize; + } + + public void setMaxHeapSize(String maxHeapSize) { + this.maxHeapSize = maxHeapSize; + } + + public String getJavaVmArgs() { + return javaVmArgs; + } + + public void setJavaVmArgs(String javaVmArgs) { + this.javaVmArgs = javaVmArgs; + } + + public List getResources() { + return resources; + } + + public void setResources(List resources) { + this.resources = resources; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartJar.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartJar.java new file mode 100644 index 0000000..ae9895a --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartJar.java @@ -0,0 +1,88 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartResourcePartJar implements JDatStartResourcePart { + + private String href; + private String version; + private Boolean main; + private JDatStartResourceDownload download; + private String size; + private String part; + + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public Boolean getMain() { + return main; + } + + public void setMain(Boolean main) { + this.main = main; + } + + public JDatStartResourceDownload getDownload() { + return download; + } + + public void setDownload(JDatStartResourceDownload download) { + this.download = download; + } + + public String getSize() { + return size; + } + + public void setSize(String size) { + this.size = size; + } + + public String getPart() { + return part; + } + + public void setPart(String part) { + this.part = part; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartJava.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartJava.java new file mode 100644 index 0000000..c81c93e --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartJava.java @@ -0,0 +1,90 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +import java.util.List; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartResourcePartJava implements JDatStartResourcePart { + + private String version; + private String href; + private String initialHeapSize; + private String maxHeapSize; + private String javaVmArgs; + private List resources; + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public String getInitialHeapSize() { + return initialHeapSize; + } + + public void setInitialHeapSize(String initialHeapSize) { + this.initialHeapSize = initialHeapSize; + } + + public String getMaxHeapSize() { + return maxHeapSize; + } + + public void setMaxHeapSize(String maxHeapSize) { + this.maxHeapSize = maxHeapSize; + } + + public String getJavaVmArgs() { + return javaVmArgs; + } + + public void setJavaVmArgs(String javaVmArgs) { + this.javaVmArgs = javaVmArgs; + } + + public List getResources() { + return resources; + } + + public void setResources(List resources) { + this.resources = resources; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartNativeLib.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartNativeLib.java new file mode 100644 index 0000000..435f0ab --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartNativeLib.java @@ -0,0 +1,79 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartResourcePartNativeLib implements JDatStartResourcePart { + + private String href; + private String version; + private JDatStartResourceDownload download; + private String size; + private String part; + + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public JDatStartResourceDownload getDownload() { + return download; + } + + public void setDownload(JDatStartResourceDownload download) { + this.download = download; + } + + public String getSize() { + return size; + } + + public void setSize(String size) { + this.size = size; + } + + public String getPart() { + return part; + } + + public void setPart(String part) { + this.part = part; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartPackage.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartPackage.java new file mode 100644 index 0000000..81badd2 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartPackage.java @@ -0,0 +1,61 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartResourcePartPackage implements JDatStartResourcePart { + + private String name; + private String part; + private Boolean recursive; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPart() { + return part; + } + + public void setPart(String part) { + this.part = part; + } + + public Boolean getRecursive() { + return recursive; + } + + public void setRecursive(Boolean recursive) { + this.recursive = recursive; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartProperty.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartProperty.java new file mode 100644 index 0000000..92bc602 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResourcePartProperty.java @@ -0,0 +1,52 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartResourcePartProperty implements JDatStartResourcePart { + + private String name; + private String value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } +} diff --git a/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResources.java b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResources.java new file mode 100644 index 0000000..ae89c3d --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/java/love/distributedrebirth/nx01/redsea/jdatstart/model/resource/JDatStartResources.java @@ -0,0 +1,47 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart.model.resource; + +import java.util.List; + +import love.distributedrebirth.nx01.redsea.jdatstart.model.AbstractJDatStartItemFilter; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public final class JDatStartResources extends AbstractJDatStartItemFilter { + + private List parts; + + public List getParts() { + return parts; + } + + public void setParts(List parts) { + this.parts = parts; + } +} diff --git a/nx01-redsea-jdatstart/src/main/resources/META-INF/redsea-jdatstart/redsea-jdatstart-lang-7.0.eld b/nx01-redsea-jdatstart/src/main/resources/META-INF/redsea-jdatstart/redsea-jdatstart-lang-7.0.eld new file mode 100644 index 0000000..3cd2b3a --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/resources/META-INF/redsea-jdatstart/redsea-jdatstart-lang-7.0.eld @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The maven group identifier which holds the artifacts. + + + The maven artifact identifier to download as resource. + + + The maven version identifier of the artifact being referenced. + + + + + + + + + + \ No newline at end of file diff --git a/nx01-redsea-jdatstart/src/main/resources/META-INF/redsea-jdatstart/redsea-jdatstart-modules.xml b/nx01-redsea-jdatstart/src/main/resources/META-INF/redsea-jdatstart/redsea-jdatstart-modules.xml new file mode 100644 index 0000000..d8d66c6 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/resources/META-INF/redsea-jdatstart/redsea-jdatstart-modules.xml @@ -0,0 +1,15 @@ + + + + + redsea-jdatstart-lang-7.0.eld + + diff --git a/nx01-redsea-jdatstart/src/main/resources/META-INF/x4o-drivers.xml b/nx01-redsea-jdatstart/src/main/resources/META-INF/x4o-drivers.xml new file mode 100644 index 0000000..0fce932 --- /dev/null +++ b/nx01-redsea-jdatstart/src/main/resources/META-INF/x4o-drivers.xml @@ -0,0 +1,8 @@ + + + + diff --git a/nx01-redsea-jdatstart/src/test/java/love/distributedrebirth/nx01/redsea/jdatstart/JDatStartDriverTest.java b/nx01-redsea-jdatstart/src/test/java/love/distributedrebirth/nx01/redsea/jdatstart/JDatStartDriverTest.java new file mode 100644 index 0000000..299f5c9 --- /dev/null +++ b/nx01-redsea-jdatstart/src/test/java/love/distributedrebirth/nx01/redsea/jdatstart/JDatStartDriverTest.java @@ -0,0 +1,54 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea.jdatstart; + +import java.io.IOException; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import org.x4o.xml.io.X4OConnectionException; +import org.xml.sax.SAXException; + +import love.distributedrebirth.nx01.redsea.jdatstart.JDatStartDriver; +import love.distributedrebirth.nx01.redsea.jdatstart.model.JDatStart; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public class JDatStartDriverTest { + + @Test + public void testReadJnlp7() throws X4OConnectionException, SAXException, IOException { + JDatStart jdatstart = JDatStartDriver.newInstance().createReader().readUrl(getClass().getResource("test-jdatstart-7.0.xml")); + Assertions.assertNotNull(jdatstart); + Assertions.assertNotNull(jdatstart.getInformations()); + Assertions.assertFalse(jdatstart.getInformations().isEmpty()); + Assertions.assertEquals("Hello", jdatstart.getInformations().get(0).getTitle().getText()); + + // TODO: finish eld mapping + } +} diff --git a/nx01-redsea-jdatstart/src/test/resources/love/distributedrebirth/nx01/redsea/jdatstart/test-jdatstart-6.0.xml b/nx01-redsea-jdatstart/src/test/resources/love/distributedrebirth/nx01/redsea/jdatstart/test-jdatstart-6.0.xml new file mode 100644 index 0000000..3a2262d --- /dev/null +++ b/nx01-redsea-jdatstart/src/test/resources/love/distributedrebirth/nx01/redsea/jdatstart/test-jdatstart-6.0.xml @@ -0,0 +1,16 @@ + + + + + Hello + Example + + + + + + + diff --git a/nx01-redsea-jdatstart/src/test/resources/love/distributedrebirth/nx01/redsea/jdatstart/test-jdatstart-7.0.xml b/nx01-redsea-jdatstart/src/test/resources/love/distributedrebirth/nx01/redsea/jdatstart/test-jdatstart-7.0.xml new file mode 100644 index 0000000..1d07dbf --- /dev/null +++ b/nx01-redsea-jdatstart/src/test/resources/love/distributedrebirth/nx01/redsea/jdatstart/test-jdatstart-7.0.xml @@ -0,0 +1,22 @@ + + + + + + Hello + Example + + + + + + + diff --git a/nx01-redsea/pom.xml b/nx01-redsea/pom.xml index fd3b5ed..d5c9270 100644 --- a/nx01-redsea/pom.xml +++ b/nx01-redsea/pom.xml @@ -1,9 +1,21 @@ - - 4.0.0 - - love.distributedrebirth.nx01 - nx01 - 〇一。壬寅。一〄-SNAPSHOT - - nx01-redsea + + 4.0.0 + + love.distributedrebirth.nx01 + nx01 + 〇一。壬寅。一〄-SNAPSHOT + + nx01-redsea + + + love.distributedrebirth.nx01 + nx01-x4o-driver + + + org.junit.jupiter + junit-jupiter + test + + \ No newline at end of file diff --git a/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterOcean.java b/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterOcean.java new file mode 100644 index 0000000..0dd9dca --- /dev/null +++ b/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterOcean.java @@ -0,0 +1,43 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public class WaterOcean { + + private WaterSea water; + + public WaterSea theWater() { + return water; + } + + public void fillWater(WaterSea water) { + this.water = water; + } +} diff --git a/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterOceanFSDriver.java b/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterOceanFSDriver.java new file mode 100644 index 0000000..742db1c --- /dev/null +++ b/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterOceanFSDriver.java @@ -0,0 +1,53 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea; + +import org.x4o.xml.X4ODriver; +import org.x4o.xml.X4ODriverManager; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public class WaterOceanFSDriver extends X4ODriver { + + static final public String LANGUAGE_NAME = "redsea"; + static final public String[] LANGUAGE_VERSIONS = new String[]{X4ODriver.DEFAULT_LANGUAGE_VERSION}; + + @Override + public String getLanguageName() { + return LANGUAGE_NAME; + } + + @Override + public String[] getLanguageVersions() { + return LANGUAGE_VERSIONS; + } + + static public WaterOceanFSDriver newInstance() { + return (WaterOceanFSDriver)X4ODriverManager.getX4ODriver(LANGUAGE_NAME); + } +} diff --git a/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterSea.java b/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterSea.java new file mode 100644 index 0000000..398c2da --- /dev/null +++ b/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterSea.java @@ -0,0 +1,94 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea; + +import java.util.ArrayList; +import java.util.List; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public class WaterSea { + + private String name; + private String author; + private String provider; + private List seaChains = new ArrayList<>(); + private List seaMagics = new ArrayList<>(); + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getAuthor() { + return author; + } + + public void setAuthor(String author) { + this.author = author; + } + + public String getProvider() { + return provider; + } + + public void setProvider(String provider) { + this.provider = provider; + } + + public List getSeaChains() { + return seaChains; + } + + public void setSeaChains(List seaChains) { + for (WaterSeaChain seaChain:seaChains) { + addSeaChain(seaChain); + } + } + + public void addSeaChain(WaterSeaChain seaChain) { + seaChains.add(seaChain); + } + + public List getSeaMagics() { + return seaMagics; + } + + public void setSeaMagics(List seaMagics) { + for (WaterSeaMagic seaMagic: seaMagics) { + addSeaMagic(seaMagic); + } + } + + public void addSeaMagic(WaterSeaMagic seaMagic) { + seaMagics.add(seaMagic); + } +} diff --git a/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterSeaChain.java b/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterSeaChain.java new file mode 100644 index 0000000..17ed052 --- /dev/null +++ b/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterSeaChain.java @@ -0,0 +1,64 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public class WaterSeaChain { + + private String key; + private String tag; + + public WaterSeaChain() { + } + + public WaterSeaChain(String key) { + setKey(key); + } + + public WaterSeaChain(String key, String tag) { + setKey(key); + setTag(tag); + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } +} diff --git a/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterSeaMagic.java b/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterSeaMagic.java new file mode 100644 index 0000000..cfd0c4a --- /dev/null +++ b/nx01-redsea/src/main/java/love/distributedrebirth/nx01/redsea/WaterSeaMagic.java @@ -0,0 +1,60 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package love.distributedrebirth.nx01.redsea; + +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +public class WaterSeaMagic { + + private String mime; + private String file; + + public WaterSeaMagic() { + } + + public WaterSeaMagic(String mime, String file) { + setMime(mime); + setFile(file); + } + + public String getMime() { + return mime; + } + + public void setMime(String mime) { + this.mime = mime; + } + + public String getFile() { + return file; + } + + public void setFile(String file) { + this.file = file; + } +} diff --git a/nx01-redsea/src/main/resources/META-INF/redsea/redsea-lang.eld b/nx01-redsea/src/main/resources/META-INF/redsea/redsea-lang.eld new file mode 100644 index 0000000..fe11184 --- /dev/null +++ b/nx01-redsea/src/main/resources/META-INF/redsea/redsea-lang.eld @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nx01-redsea/src/main/resources/META-INF/redsea/redsea-modules.xml b/nx01-redsea/src/main/resources/META-INF/redsea/redsea-modules.xml new file mode 100644 index 0000000..592b355 --- /dev/null +++ b/nx01-redsea/src/main/resources/META-INF/redsea/redsea-modules.xml @@ -0,0 +1,10 @@ + + + + redsea-lang.eld + + diff --git a/pom.xml b/pom.xml index c921722..cdc1d21 100644 --- a/pom.xml +++ b/pom.xml @@ -53,6 +53,7 @@ nx01-redsea-hyper-local nx01-redsea-hyper nx01-redsea-hyper-nostr + nx01-redsea-jdatstart