parent
b7cda146c2
commit
463b897df7
@ -1,49 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<classpath> |
|
||||||
<classpathentry kind="src" output="target/classes" path="src/main/java"> |
|
||||||
<attributes> |
|
||||||
<attribute name="optional" value="true"/> |
|
||||||
<attribute name="maven.pomderived" value="true"/> |
|
||||||
</attributes> |
|
||||||
</classpathentry> |
|
||||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> |
|
||||||
<attributes> |
|
||||||
<attribute name="optional" value="true"/> |
|
||||||
<attribute name="maven.pomderived" value="true"/> |
|
||||||
<attribute name="test" value="true"/> |
|
||||||
</attributes> |
|
||||||
</classpathentry> |
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"> |
|
||||||
<attributes> |
|
||||||
<attribute name="maven.pomderived" value="true"/> |
|
||||||
</attributes> |
|
||||||
</classpathentry> |
|
||||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> |
|
||||||
<attributes> |
|
||||||
<attribute name="maven.pomderived" value="true"/> |
|
||||||
</attributes> |
|
||||||
</classpathentry> |
|
||||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> |
|
||||||
<attributes> |
|
||||||
<attribute name="maven.pomderived" value="true"/> |
|
||||||
</attributes> |
|
||||||
</classpathentry> |
|
||||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/packaging"> |
|
||||||
<attributes> |
|
||||||
<attribute name="maven.pomderived" value="true"/> |
|
||||||
</attributes> |
|
||||||
</classpathentry> |
|
||||||
<classpathentry kind="src" output="target/test-classes" path=".apt_generated_tests"> |
|
||||||
<attributes> |
|
||||||
<attribute name="optional" value="true"/> |
|
||||||
<attribute name="test" value="true"/> |
|
||||||
</attributes> |
|
||||||
</classpathentry> |
|
||||||
<classpathentry kind="src" output="target/test-classes" path=".apt_generated_tests"> |
|
||||||
<attributes> |
|
||||||
<attribute name="optional" value="true"/> |
|
||||||
<attribute name="test" value="true"/> |
|
||||||
</attributes> |
|
||||||
</classpathentry> |
|
||||||
<classpathentry kind="output" path="target/classes"/> |
|
||||||
</classpath> |
|
||||||
@ -1,6 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<project version="4"> |
|
||||||
<component name="PackageJsonUpdateNotifier"> |
|
||||||
<dismissed value="$PROJECT_DIR$/package.json" /> |
|
||||||
</component> |
|
||||||
</project> |
|
||||||
@ -1,28 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<projectDescription> |
|
||||||
<name>trainerinvoice</name> |
|
||||||
<comment></comment> |
|
||||||
<projects> |
|
||||||
</projects> |
|
||||||
<buildSpec> |
|
||||||
<buildCommand> |
|
||||||
<name>org.eclipse.jdt.core.javabuilder</name> |
|
||||||
<arguments> |
|
||||||
</arguments> |
|
||||||
</buildCommand> |
|
||||||
<buildCommand> |
|
||||||
<name>org.springframework.ide.eclipse.boot.validation.springbootbuilder</name> |
|
||||||
<arguments> |
|
||||||
</arguments> |
|
||||||
</buildCommand> |
|
||||||
<buildCommand> |
|
||||||
<name>org.eclipse.m2e.core.maven2Builder</name> |
|
||||||
<arguments> |
|
||||||
</arguments> |
|
||||||
</buildCommand> |
|
||||||
</buildSpec> |
|
||||||
<natures> |
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature> |
|
||||||
<nature>org.eclipse.m2e.core.maven2Nature</nature> |
|
||||||
</natures> |
|
||||||
</projectDescription> |
|
||||||
@ -1,9 +0,0 @@ |
|||||||
eclipse.preferences.version=1 |
|
||||||
encoding//src/main/generated=UTF-8 |
|
||||||
encoding//src/main/java=UTF-8 |
|
||||||
encoding//src/main/resources=UTF-8 |
|
||||||
encoding//src/main/resources/reports/mtv_gross_buchholz.jrxml=UTF-8 |
|
||||||
encoding//src/main/resources/reports/mtv_gross_buchholz_trainer.jrxml=UTF-8 |
|
||||||
encoding//src/packaging=UTF-8 |
|
||||||
encoding//src/test/java=UTF-8 |
|
||||||
encoding/<project>=UTF-8 |
|
||||||
@ -1,5 +0,0 @@ |
|||||||
eclipse.preferences.version=1 |
|
||||||
org.eclipse.jdt.apt.aptEnabled=false |
|
||||||
org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations |
|
||||||
org.eclipse.jdt.apt.genTestSrcDir=.apt_generated_tests |
|
||||||
org.eclipse.jdt.apt.reconcileEnabled=true |
|
||||||
@ -1,17 +0,0 @@ |
|||||||
eclipse.preferences.version=1 |
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
|
||||||
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate |
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 |
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve |
|
||||||
org.eclipse.jdt.core.compiler.compliance=11 |
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate |
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate |
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate |
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
|
||||||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled |
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
|
||||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning |
|
||||||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning |
|
||||||
org.eclipse.jdt.core.compiler.processAnnotations=disabled |
|
||||||
org.eclipse.jdt.core.compiler.release=disabled |
|
||||||
org.eclipse.jdt.core.compiler.source=11 |
|
||||||
@ -0,0 +1,3 @@ |
|||||||
|
Manifest-Version: 1.0 |
||||||
|
Class-Path: |
||||||
|
|
||||||
@ -1,324 +0,0 @@ |
|||||||
package de.kreth.invoice; |
|
||||||
|
|
||||||
import java.util.Properties; |
|
||||||
import java.util.ResourceBundle; |
|
||||||
import java.util.function.UnaryOperator; |
|
||||||
|
|
||||||
import javax.annotation.processing.Generated; |
|
||||||
|
|
||||||
/** |
|
||||||
* Property keys from localization.properties |
|
||||||
*/ |
|
||||||
@Generated(date = "22.05.2022, 19:41:47", value = "de.kreth.property2java.Generator") |
|
||||||
public enum Localization_Properties { |
|
||||||
|
|
||||||
/** |
|
||||||
* caption.invoiceitem.date = "Datum" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICEITEM_DATE ("caption.invoiceitem.date"), |
|
||||||
/** |
|
||||||
* caption.user.login = "Anmelden" |
|
||||||
*/ |
|
||||||
CAPTION_USER_LOGIN ("caption.user.login"), |
|
||||||
/** |
|
||||||
* error.invoice.title.noitems = "Leere Abrechnung nicht erlaubt." |
|
||||||
*/ |
|
||||||
ERROR_INVOICE_TITLE_NOITEMS ("error.invoice.title.noitems"), |
|
||||||
/** |
|
||||||
* caption.invoice.sum = "Summe" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICE_SUM ("caption.invoice.sum"), |
|
||||||
/** |
|
||||||
* caption.invoiceitem.participants = "Teilnehmer" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICEITEM_PARTICIPANTS ("caption.invoiceitem.participants"), |
|
||||||
/** |
|
||||||
* caption.invoiceitem.add = "Neuer Posten" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICEITEM_ADD ("caption.invoiceitem.add"), |
|
||||||
/** |
|
||||||
* caption.invoice.pattern = "Rechnung-{0}" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICE_PATTERN ("caption.invoice.pattern"), |
|
||||||
/** |
|
||||||
* caption.invoiceitem.start = "Beginn" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICEITEM_START ("caption.invoiceitem.start"), |
|
||||||
/** |
|
||||||
* caption.article.report = "Mit Trainer-Lizenz" |
|
||||||
*/ |
|
||||||
CAPTION_ARTICLE_REPORT ("caption.article.report"), |
|
||||||
/** |
|
||||||
* caption.invoice.invoiceno = "Rechnungsnummer" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICE_INVOICENO ("caption.invoice.invoiceno"), |
|
||||||
/** |
|
||||||
* caption.invoiceitems = "Rechnungspositionen" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICEITEMS ("caption.invoiceitems"), |
|
||||||
/** |
|
||||||
* message.user.passwordmissmatch = "Passworter stimmen nicht überein!" |
|
||||||
*/ |
|
||||||
MESSAGE_USER_PASSWORDMISSMATCH ("message.user.passwordmissmatch"), |
|
||||||
/** |
|
||||||
* label.delete = "Löschen" |
|
||||||
*/ |
|
||||||
LABEL_DELETE ("label.delete"), |
|
||||||
/** |
|
||||||
* message.user.loginfailure = "Anmeldefehler! Falscher Name oder Passwort?" |
|
||||||
*/ |
|
||||||
MESSAGE_USER_LOGINFAILURE ("message.user.loginfailure"), |
|
||||||
/** |
|
||||||
* caption.article.type.trainer = "Trainer" |
|
||||||
*/ |
|
||||||
CAPTION_ARTICLE_TYPE_TRAINER ("caption.article.type.trainer"), |
|
||||||
/** |
|
||||||
* caption.invoiceitem.sumprice = "Betrag" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICEITEM_SUMPRICE ("caption.invoiceitem.sumprice"), |
|
||||||
/** |
|
||||||
* message.delete.text = "Soll {0} wirklich gelöscht werden?" |
|
||||||
*/ |
|
||||||
MESSAGE_DELETE_TEXT ("message.delete.text"), |
|
||||||
/** |
|
||||||
* label.user.register = "Registrieren" |
|
||||||
*/ |
|
||||||
LABEL_USER_REGISTER ("label.user.register"), |
|
||||||
/** |
|
||||||
* error.userdetails.bankname_empty = "Bankname darf nicht leer sein." |
|
||||||
*/ |
|
||||||
ERROR_USERDETAILS_BANKNAME_EMPTY ("error.userdetails.bankname_empty"), |
|
||||||
/** |
|
||||||
* label.ok = "OK" |
|
||||||
*/ |
|
||||||
LABEL_OK ("label.ok"), |
|
||||||
/** |
|
||||||
* label.open = "Öffnen" |
|
||||||
*/ |
|
||||||
LABEL_OPEN ("label.open"), |
|
||||||
/** |
|
||||||
* label.discart = "Verwerfen" |
|
||||||
*/ |
|
||||||
LABEL_DISCART ("label.discart"), |
|
||||||
/** |
|
||||||
* caption.article = "Artikel" |
|
||||||
*/ |
|
||||||
CAPTION_ARTICLE ("caption.article"), |
|
||||||
/** |
|
||||||
* message.article.priceerror = "Bitte legen Sie den Preis fest." |
|
||||||
*/ |
|
||||||
MESSAGE_ARTICLE_PRICEERROR ("message.article.priceerror"), |
|
||||||
/** |
|
||||||
* error.userdetails.iban_empty = "Iban darf nicht leer sein." |
|
||||||
*/ |
|
||||||
ERROR_USERDETAILS_IBAN_EMPTY ("error.userdetails.iban_empty"), |
|
||||||
/** |
|
||||||
* message.user.create.success = "{0} erstellt!" |
|
||||||
*/ |
|
||||||
MESSAGE_USER_CREATE_SUCCESS ("message.user.create.success"), |
|
||||||
/** |
|
||||||
* error.userdetails.prename_empty = "Vorname darf nicht leer sein." |
|
||||||
*/ |
|
||||||
ERROR_USERDETAILS_PRENAME_EMPTY ("error.userdetails.prename_empty"), |
|
||||||
/** |
|
||||||
* error.invoice.text.noitems = "Bitte Posten für Rechnung auswählen." |
|
||||||
*/ |
|
||||||
ERROR_INVOICE_TEXT_NOITEMS ("error.invoice.text.noitems"), |
|
||||||
/** |
|
||||||
* caption.invoiceitem.end = "Ende" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICEITEM_END ("caption.invoiceitem.end"), |
|
||||||
/** |
|
||||||
* caption.invoiceitem = "" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICEITEM ("caption.invoiceitem"), |
|
||||||
/** |
|
||||||
* caption.adress.zipcode = "Postleitzahl" |
|
||||||
*/ |
|
||||||
CAPTION_ADRESS_ZIPCODE ("caption.adress.zipcode"), |
|
||||||
/** |
|
||||||
* caption.user.password = "Ihr Password:" |
|
||||||
*/ |
|
||||||
CAPTION_USER_PASSWORD ("caption.user.password"), |
|
||||||
/** |
|
||||||
* caption.invoiceitem.name = "Rechnungsposition" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICEITEM_NAME ("caption.invoiceitem.name"), |
|
||||||
/** |
|
||||||
* message.delete.title = "Wirklich löschen?" |
|
||||||
*/ |
|
||||||
MESSAGE_DELETE_TITLE ("message.delete.title"), |
|
||||||
/** |
|
||||||
* error.userdetails.zip_empty = "Postleitzahl darf nicht leer sein." |
|
||||||
*/ |
|
||||||
ERROR_USERDETAILS_ZIP_EMPTY ("error.userdetails.zip_empty"), |
|
||||||
/** |
|
||||||
* message.invoiceitem.allfieldsmustbeset = "Start, Ende und Artikel müssen gesetzt sein!" |
|
||||||
*/ |
|
||||||
MESSAGE_INVOICEITEM_ALLFIELDSMUSTBESET ("message.invoiceitem.allfieldsmustbeset"), |
|
||||||
/** |
|
||||||
* caption.invoices = "Rechnungen" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICES ("caption.invoices"), |
|
||||||
/** |
|
||||||
* caption.user.passwordconfirmation = "Password bestätigen:" |
|
||||||
*/ |
|
||||||
CAPTION_USER_PASSWORDCONFIRMATION ("caption.user.passwordconfirmation"), |
|
||||||
/** |
|
||||||
* caption.adress.city = "Ort" |
|
||||||
*/ |
|
||||||
CAPTION_ADRESS_CITY ("caption.adress.city"), |
|
||||||
/** |
|
||||||
* caption.invoice.printsignature = "Unterschrift drucken" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICE_PRINTSIGNATURE ("caption.invoice.printsignature"), |
|
||||||
/** |
|
||||||
* caption.article.title = "Titel" |
|
||||||
*/ |
|
||||||
CAPTION_ARTICLE_TITLE ("caption.article.title"), |
|
||||||
/** |
|
||||||
* caption.article.price = "Stundenpreis" |
|
||||||
*/ |
|
||||||
CAPTION_ARTICLE_PRICE ("caption.article.price"), |
|
||||||
/** |
|
||||||
* error.userdetails.adress_empty = "Adresse darf nicht leer sein." |
|
||||||
*/ |
|
||||||
ERROR_USERDETAILS_ADRESS_EMPTY ("error.userdetails.adress_empty"), |
|
||||||
/** |
|
||||||
* caption.bank.iban = "IBAN" |
|
||||||
*/ |
|
||||||
CAPTION_BANK_IBAN ("caption.bank.iban"), |
|
||||||
/** |
|
||||||
* caption.invoice.create = "Rechnung erstellen" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICE_CREATE ("caption.invoice.create"), |
|
||||||
/** |
|
||||||
* error.article.undefined = "Bitte Artikel anlegen." |
|
||||||
*/ |
|
||||||
ERROR_ARTICLE_UNDEFINED ("error.article.undefined"), |
|
||||||
/** |
|
||||||
* caption.bank.bic = "BIC" |
|
||||||
*/ |
|
||||||
CAPTION_BANK_BIC ("caption.bank.bic"), |
|
||||||
/** |
|
||||||
* caption.article.type.assistant = "Übungsleiter" |
|
||||||
*/ |
|
||||||
CAPTION_ARTICLE_TYPE_ASSISTANT ("caption.article.type.assistant"), |
|
||||||
/** |
|
||||||
* error.userdetails.city_empty = "Ort darf nicht leer sein." |
|
||||||
*/ |
|
||||||
ERROR_USERDETAILS_CITY_EMPTY ("error.userdetails.city_empty"), |
|
||||||
/** |
|
||||||
* label.cancel = "Abbrechen" |
|
||||||
*/ |
|
||||||
LABEL_CANCEL ("label.cancel"), |
|
||||||
/** |
|
||||||
* message.user.create.failure = "Fehler beim Erstellen von Benutzer {0}! Ändern Sie den Benutzernamen oder fragen Sie nach dem Passwort. Detail: {1}" |
|
||||||
*/ |
|
||||||
MESSAGE_USER_CREATE_FAILURE ("message.user.create.failure"), |
|
||||||
/** |
|
||||||
* caption.article.description = "Beschreibung" |
|
||||||
*/ |
|
||||||
CAPTION_ARTICLE_DESCRIPTION ("caption.article.description"), |
|
||||||
/** |
|
||||||
* caption.user.loginname = "Anmeldename:" |
|
||||||
*/ |
|
||||||
CAPTION_USER_LOGINNAME ("caption.user.loginname"), |
|
||||||
/** |
|
||||||
* message.article.error.invoiceexists = "Kann nicht geändert werden, da bereits Rechnungen bestehen. Bitte neuen Artikel anlegen." |
|
||||||
*/ |
|
||||||
MESSAGE_ARTICLE_ERROR_INVOICEEXISTS ("message.article.error.invoiceexists"), |
|
||||||
/** |
|
||||||
* error.userdetails.surname_empty = "Nachname darf nicht leer sein." |
|
||||||
*/ |
|
||||||
ERROR_USERDETAILS_SURNAME_EMPTY ("error.userdetails.surname_empty"), |
|
||||||
/** |
|
||||||
* label.close = "Schließen" |
|
||||||
*/ |
|
||||||
LABEL_CLOSE ("label.close"), |
|
||||||
/** |
|
||||||
* caption.adress.street2 = "Adresse" |
|
||||||
*/ |
|
||||||
CAPTION_ADRESS_STREET2 ("caption.adress.street2"), |
|
||||||
/** |
|
||||||
* caption.adress.street1 = "Adresse" |
|
||||||
*/ |
|
||||||
CAPTION_ADRESS_STREET1 ("caption.adress.street1"), |
|
||||||
/** |
|
||||||
* caption.user.surname = "Nachname:" |
|
||||||
*/ |
|
||||||
CAPTION_USER_SURNAME ("caption.user.surname"), |
|
||||||
/** |
|
||||||
* label.loggedin = "Angemeldet:" |
|
||||||
*/ |
|
||||||
LABEL_LOGGEDIN ("label.loggedin"), |
|
||||||
/** |
|
||||||
* label.logout = "Abmelden" |
|
||||||
*/ |
|
||||||
LABEL_LOGOUT ("label.logout"), |
|
||||||
/** |
|
||||||
* caption.user.prename = "Vorname:" |
|
||||||
*/ |
|
||||||
CAPTION_USER_PRENAME ("caption.user.prename"), |
|
||||||
/** |
|
||||||
* caption.bank.name = "Bankname" |
|
||||||
*/ |
|
||||||
CAPTION_BANK_NAME ("caption.bank.name"), |
|
||||||
/** |
|
||||||
* label.addarticle = "Neuer Artikel" |
|
||||||
*/ |
|
||||||
LABEL_ADDARTICLE ("label.addarticle"), |
|
||||||
/** |
|
||||||
* label.preview = "Vorschau" |
|
||||||
*/ |
|
||||||
LABEL_PREVIEW ("label.preview"), |
|
||||||
/** |
|
||||||
* message.invoiceitem.startbeforeend = "Ende darf nicht vor Start liegen." |
|
||||||
*/ |
|
||||||
MESSAGE_INVOICEITEM_STARTBEFOREEND ("message.invoiceitem.startbeforeend"), |
|
||||||
/** |
|
||||||
* caption.articles = "Artikel" |
|
||||||
*/ |
|
||||||
CAPTION_ARTICLES ("caption.articles"), |
|
||||||
/** |
|
||||||
* caption.invoice.invoicedate = "Rechnungsdatum" |
|
||||||
*/ |
|
||||||
CAPTION_INVOICE_INVOICEDATE ("caption.invoice.invoicedate"), |
|
||||||
/** |
|
||||||
* caption.user.details = "Benutzer Details" |
|
||||||
*/ |
|
||||||
CAPTION_USER_DETAILS ("caption.user.details"), |
|
||||||
/** |
|
||||||
* error.userdetails.username_empty = "Anmeldename darf nicht leer sein." |
|
||||||
*/ |
|
||||||
ERROR_USERDETAILS_USERNAME_EMPTY ("error.userdetails.username_empty"), |
|
||||||
/** |
|
||||||
* label.store = "Speichern" |
|
||||||
*/ |
|
||||||
LABEL_STORE ("label.store"); |
|
||||||
|
|
||||||
private final String value; |
|
||||||
|
|
||||||
private Localization_Properties (String value) { |
|
||||||
this.value = value; |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Represented Key in property File. |
|
||||||
* @return key |
|
||||||
*/ |
|
||||||
public String getValue() { |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Resolves the value for this key from the parameter function. |
|
||||||
* <p> |
|
||||||
* e.g. <code>Localization_Properties.getString(resBundle::getString)</code> |
|
||||||
* @param resourceFunction {@link Properties#getProperty(String)} or {@link ResourceBundle#getString(String)} |
|
||||||
* @return |
|
||||||
*/ |
|
||||||
public String getString(UnaryOperator<String> resourceFunction) { |
|
||||||
return resourceFunction.apply(value); |
|
||||||
} |
|
||||||
} |
|
||||||
@ -1,56 +0,0 @@ |
|||||||
package de.kreth.invoice; |
|
||||||
|
|
||||||
import java.util.Properties; |
|
||||||
import java.util.ResourceBundle; |
|
||||||
import java.util.function.UnaryOperator; |
|
||||||
|
|
||||||
import javax.annotation.processing.Generated; |
|
||||||
|
|
||||||
/** |
|
||||||
* Property keys from version.properties |
|
||||||
*/ |
|
||||||
@Generated(date = "29.05.2022, 21:56:35", value = "de.kreth.property2java.Generator") |
|
||||||
public enum Version_Properties { |
|
||||||
|
|
||||||
/** |
|
||||||
* project.version = "${project.version}" |
|
||||||
*/ |
|
||||||
PROJECT_VERSION ("project.version"), |
|
||||||
/** |
|
||||||
* package_name = "${project.artifactId}-${project.version}.${project.packaging}" |
|
||||||
*/ |
|
||||||
PACKAGE_NAME ("package_name"), |
|
||||||
/** |
|
||||||
* build.dateTime = "${timestamp}" |
|
||||||
*/ |
|
||||||
BUILD_DATETIME ("build.dateTime"), |
|
||||||
/** |
|
||||||
* project.artifactId = "${project.artifactId}" |
|
||||||
*/ |
|
||||||
PROJECT_ARTIFACTID ("project.artifactId"); |
|
||||||
|
|
||||||
private final String value; |
|
||||||
|
|
||||||
private Version_Properties (String value) { |
|
||||||
this.value = value; |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Represented Key in property File. |
|
||||||
* @return key |
|
||||||
*/ |
|
||||||
public String getValue() { |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Resolves the value for this key from the parameter function. |
|
||||||
* <p> |
|
||||||
* e.g. <code>Version_Properties.getString(resBundle::getString)</code> |
|
||||||
* @param resourceFunction {@link Properties#getProperty(String)} or {@link ResourceBundle#getString(String)} |
|
||||||
* @return |
|
||||||
*/ |
|
||||||
public String getString(UnaryOperator<String> resourceFunction) { |
|
||||||
return resourceFunction.apply(value); |
|
||||||
} |
|
||||||
} |
|
||||||
Loading…
Reference in new issue