Added debugging output to Segment (and Segmentkopf)
This commit is contained in:
parent
ba6eab79bb
commit
7971fc116c
|
@ -9,9 +9,9 @@ import net.dankito.banking.fints.messages.segmente.id.ISegmentId
|
||||||
|
|
||||||
|
|
||||||
open class Segmentkopf(
|
open class Segmentkopf(
|
||||||
identifier: String,
|
val identifier: String,
|
||||||
segmentVersion: Int,
|
val segmentVersion: Int,
|
||||||
segmentNumber: Int = 0,
|
val segmentNumber: Int = 0,
|
||||||
bezugssegment: Int? = null
|
bezugssegment: Int? = null
|
||||||
|
|
||||||
) : Datenelementgruppe(listOf(
|
) : Datenelementgruppe(listOf(
|
||||||
|
@ -22,4 +22,6 @@ open class Segmentkopf(
|
||||||
|
|
||||||
constructor(id: ISegmentId, segmentVersion: Int, segmentNumber: Int) : this(id.id, segmentVersion, segmentNumber)
|
constructor(id: ISegmentId, segmentVersion: Int, segmentNumber: Int) : this(id.id, segmentVersion, segmentNumber)
|
||||||
|
|
||||||
|
override fun toString() = "$identifier:$segmentNumber:$segmentVersion"
|
||||||
|
|
||||||
}
|
}
|
|
@ -4,6 +4,7 @@ import net.dankito.banking.fints.messages.Nachrichtenteil
|
||||||
import net.dankito.banking.fints.messages.Separators
|
import net.dankito.banking.fints.messages.Separators
|
||||||
import net.dankito.banking.fints.messages.datenelemente.DatenelementBase
|
import net.dankito.banking.fints.messages.datenelemente.DatenelementBase
|
||||||
import net.dankito.banking.fints.messages.datenelemente.implementierte.DoNotPrintDatenelement
|
import net.dankito.banking.fints.messages.datenelemente.implementierte.DoNotPrintDatenelement
|
||||||
|
import net.dankito.banking.fints.messages.datenelementgruppen.implementierte.Segmentkopf
|
||||||
|
|
||||||
|
|
||||||
abstract class Segment(val dataElementsAndGroups: List<DatenelementBase>) : Nachrichtenteil() {
|
abstract class Segment(val dataElementsAndGroups: List<DatenelementBase>) : Nachrichtenteil() {
|
||||||
|
@ -28,4 +29,6 @@ abstract class Segment(val dataElementsAndGroups: List<DatenelementBase>) : Nach
|
||||||
return ReplaceEmptyDataElementGroupSeparatorsAtEndPattern.replaceFirst(formattedSegment, "")
|
return ReplaceEmptyDataElementGroupSeparatorsAtEndPattern.replaceFirst(formattedSegment, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun toString() = "${dataElementsAndGroups.firstOrNull { it is Segmentkopf }}"
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue