Skip to content

Commit

Permalink
Adds Codesystem and CodesystemVersion to SprecCode
Browse files Browse the repository at this point in the history
Adds fields Codesystem and CodesystemVersion to AbstractSprecCode as requested.
  • Loading branch information
chrmey committed Sep 5, 2020
1 parent 866dfbd commit 00edc79
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ local.properties

#IntelliJ
*.idea
/lib/
/target/
/.pmd
/lib/
/target/
/.pmd


#Maven
Expand All @@ -59,4 +59,5 @@ release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
.mvn/wrapper/maven-wrapper.jar
/spreclib.iml
12 changes: 11 additions & 1 deletion src/de/spreclib/meta/spreccode/AbstractSprecCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand Down Expand Up @@ -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;
}
}

0 comments on commit 00edc79

Please sign in to comment.