Package org.kapott.hbci.protocol
Class SEG
- java.lang.Object
-
- org.kapott.hbci.protocol.SyntaxElement
-
- org.kapott.hbci.protocol.SEG
-
public final class SEG extends SyntaxElement
-
-
Field Summary
-
Fields inherited from class org.kapott.hbci.protocol.SyntaxElement
ALLOW_OVERWRITE, DONT_ALLOW_OVERWRITE, DONT_TRY_TO_CREATE, TRY_TO_CREATE
-
-
Constructor Summary
Constructors Constructor Description SEG(String type, String name, String path, char predelim, int idx, StringBuilder res, int fullResLen, Document document, Map<String,String> predefs, Map<String,String> valids)SEG(String type, String name, String path, int idx, Document document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcheckSegSeq(int value)protected MultipleSyntaxElementscreateNewChildContainer(Node ref, Document document)erzeugt einen neuen Child-Container, welcher durch den xml-knoten 'ref' identifiziert wird; wird beim erzeugen von elementen benutztintenumerateSegs(int idx, boolean allowOverwrite)loop through all child-elements; the segments found there will be sequentially enumerated starting with num startValue; if startValue is zero, the segments will not be enumerated, but all given the number 0StringgetCode()voidgetElementPaths(Map<String,String> p, int[] segref, int[] degref, int[] deref)protected StringgetElementTypeName()gibt einen string mit den typnamen (msg,seg,deg,de,...) des elementes zurueckprotected chargetInDelim()liefert das delimiter-zeichen zurueck, dass innerhalb dieses syntaxelementes benutzt wird, um die einzelnen child-elemente voneinander zu trennenvoidinit(String type, String name, String path, char predelim, int idx, StringBuilder res, int fullResLen, Document document, Map<String,String> predefs, Map<String,String> valids)voidinit(String type, String name, String path, int idx, Document document)protected MultipleSyntaxElementsparseNewChildContainer(Node dataref, char predelim0, char predelim1, StringBuilder res, int fullResLen, Document document, Map<String,String> predefs, Map<String,String> valids)beim parsen: haengt an die 'childElements' ein neues Element an.voidsetSeq(int idx, boolean allowOverwrite)StringtoString(int dummy)-
Methods inherited from class org.kapott.hbci.protocol.SyntaxElement
createAndAppendNewChildContainer, extractValues, getChildContainers, getElement, getName, getParent, getPath, getPosInMsg, getSyntaxDef, getType, getValueOfDE, getValueOfDE, isValid, parseAndAppendNewChildContainer, propagateValue, setName, setParent, setPath, setType, setValid, storeValidValueInDE, validate
-
-
-
-
Method Detail
-
getElementTypeName
protected String getElementTypeName()
Description copied from class:SyntaxElementgibt einen string mit den typnamen (msg,seg,deg,de,...) des elementes zurueck- Specified by:
getElementTypeNamein classSyntaxElement
-
createNewChildContainer
protected MultipleSyntaxElements createNewChildContainer(Node ref, Document document)
Description copied from class:SyntaxElementerzeugt einen neuen Child-Container, welcher durch den xml-knoten 'ref' identifiziert wird; wird beim erzeugen von elementen benutzt- Specified by:
createNewChildContainerin classSyntaxElement
-
init
public void init(String type, String name, String path, int idx, Document document)
- Overrides:
initin classSyntaxElement
-
toString
public String toString(int dummy)
- Overrides:
toStringin classSyntaxElement
-
setSeq
public void setSeq(int idx, boolean allowOverwrite)
-
enumerateSegs
public int enumerateSegs(int idx, boolean allowOverwrite)Description copied from class:SyntaxElementloop through all child-elements; the segments found there will be sequentially enumerated starting with num startValue; if startValue is zero, the segments will not be enumerated, but all given the number 0- Overrides:
enumerateSegsin classSyntaxElement- Parameters:
idx- value to be used for the first segment found- Returns:
- next sequence number usable for enumeration
-
getCode
public String getCode()
-
parseNewChildContainer
protected MultipleSyntaxElements parseNewChildContainer(Node dataref, char predelim0, char predelim1, StringBuilder res, int fullResLen, Document document, Map<String,String> predefs, Map<String,String> valids)
Description copied from class:SyntaxElementbeim parsen: haengt an die 'childElements' ein neues Element an. der xml-knoten 'ref' gibt an, um welches element es sich dabei handelt; aus 'res' (der zu parsende String) wird der wert fuer das element ermittelt (falls es sich um ein de handelt); in 'predefined' ist der wert des elementes zu finden, der laut syntaxdefinition ('document') an dieser stelle auftauchen mueste (optional; z.b. fuer segmentcodes); 'predelim*' geben die delimiter an, die direkt vor dem zu erzeugenden syntaxelement auftauchen muessten- Specified by:
parseNewChildContainerin classSyntaxElement
-
getInDelim
protected char getInDelim()
Description copied from class:SyntaxElementliefert das delimiter-zeichen zurueck, dass innerhalb dieses syntaxelementes benutzt wird, um die einzelnen child-elemente voneinander zu trennen- Specified by:
getInDelimin classSyntaxElement
-
init
public void init(String type, String name, String path, char predelim, int idx, StringBuilder res, int fullResLen, Document document, Map<String,String> predefs, Map<String,String> valids)
- Overrides:
initin classSyntaxElement
-
checkSegSeq
public int checkSegSeq(int value)
- Overrides:
checkSegSeqin classSyntaxElement
-
getElementPaths
public void getElementPaths(Map<String,String> p, int[] segref, int[] degref, int[] deref)
- Overrides:
getElementPathsin classSyntaxElement
-
-