diff --git a/.gitignore b/.gitignore index a2b379a..3b1d763 100644 --- a/.gitignore +++ b/.gitignore @@ -44,9 +44,9 @@ local.properties #IntelliJ *.idea -/lib/ -/target/ -/.pmd +/lib/ +/target/ +/.pmd #Maven @@ -59,4 +59,5 @@ release.properties dependency-reduced-pom.xml buildNumber.properties .mvn/timing.properties -.mvn/wrapper/maven-wrapper.jar \ No newline at end of file +.mvn/wrapper/maven-wrapper.jar +/spreclib.iml diff --git a/src/de/spreclib/meta/spreccode/AbstractSprecCode.java b/src/de/spreclib/meta/spreccode/AbstractSprecCode.java index c74aafa..2ee0fff 100644 --- a/src/de/spreclib/meta/spreccode/AbstractSprecCode.java +++ b/src/de/spreclib/meta/spreccode/AbstractSprecCode.java @@ -7,9 +7,11 @@ public abstract class AbstractSprecCode implements ISprecCode { - private Properties properties = new Properties(); + static final String CODESYSTEM = "SPREC"; + static final String CODESYSTEM_VERSION = "2.0"; final String placeholderOneCharacter; final String placeholderThreeCharacters; + private Properties properties = new Properties(); protected AbstractSprecCode() { @@ -39,4 +41,12 @@ private String readPlaceHolderOneCharacter() { private String readPlaceHolderThreeCharacters() { return properties.getProperty("placeholder.threecharacters"); } + + public static String getCodesystemVersion() { + return CODESYSTEM_VERSION; + } + + public static String getCodesystem() { + return CODESYSTEM; + } }