-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PEK-648 Use enum instead of CTI (#81)
Also: * Support hybrid enum/CTI responses from PEN (CTI = code table item) * Use explicit mapping in copy constructors (instead of using reflection)
- Loading branch information
1 parent
4fb865c
commit 9c7cccb
Showing
233 changed files
with
2,785 additions
and
6,282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 54 additions & 65 deletions
119
...kotlin/no/nav/pensjon/simulator/core/afp/offentlig/pre2025/Pre2025OffentligAfpBeregner.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
src/main/kotlin/no/nav/pensjon/simulator/core/beholdning/BeholdningType.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 14 additions & 19 deletions
33
src/main/kotlin/no/nav/pensjon/simulator/core/domain/regler/Merknad.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
package no.nav.pensjon.simulator.core.domain.regler | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore | ||
import java.io.Serializable | ||
class Merknad { | ||
/** | ||
* Identifiserer merknaden. Navnekonvensjonen er: | ||
* Regelsettnavn.regelnavn.index, der ".index" er en opsjon. | ||
*/ | ||
var kode: String? = null | ||
|
||
class Merknad(var kode: String = "", var argumentListe: MutableList<String> = mutableListOf()) : Serializable { | ||
/** | ||
* Beskrivende | ||
*/ | ||
var argumentListe: List<String> = mutableListOf() | ||
|
||
constructor(merknad: Merknad) : this() { | ||
this.kode = merknad.kode | ||
this.argumentListe = ArrayList(merknad.argumentListe) | ||
} | ||
|
||
init { | ||
this.kode = kode.replace("__", ".") | ||
} | ||
|
||
fun addArgument(arg: String?) { | ||
if (arg != null) { | ||
argumentListe.add(arg) | ||
} | ||
constructor() | ||
constructor(merknad: Merknad) { | ||
kode = merknad.kode | ||
argumentListe = ArrayList(merknad.argumentListe) | ||
} | ||
|
||
fun asString(): String = "$kode:${argumentListe.joinToString(separator = ",")}" | ||
|
||
@JsonIgnore | ||
val tekst = asString() | ||
} |
Oops, something went wrong.