Package org.kapott.hbci.datatypes
Class SyntaxDE
- java.lang.Object
-
- org.kapott.hbci.datatypes.SyntaxDE
-
- Direct Known Subclasses:
SyntaxAN
,SyntaxBin
,SyntaxCtr
,SyntaxCur
,SyntaxDate
,SyntaxDig
,SyntaxFloat
,SyntaxNum
,SyntaxTime
public abstract class SyntaxDE extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
content
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
static int
findNextDelim(java.lang.StringBuffer res, int startidx)
protected java.lang.String
getContent()
protected void
init()
void
init(java.lang.StringBuffer x, int minsize, int maxsize)
void
init(java.lang.String x, int minsize, int maxsize)
private void
initData()
private void
initData(java.lang.String x, int minsize, int maxsize)
< @internal @brief contains the value of the DE in human readable formatprotected void
setContent(java.lang.String st, int minsize, int maxsize)
protected static int
skipPreDelim(java.lang.StringBuffer res)
java.lang.String
toString()
java.lang.String
toString(int zero)
-
-
-
Constructor Detail
-
SyntaxDE
public SyntaxDE(java.lang.String x, int minsize, int maxsize)
- Parameters:
x
- The string representation of the init value.minsize
- The minimum size (string length) of the init value.maxsize
- The maximum size (string length) of the init value. If this is zero, no checking for @p maxsize will be done.
-
SyntaxDE
protected SyntaxDE()
-
-
Method Detail
-
initData
private void initData(java.lang.String x, int minsize, int maxsize)
< @internal @brief contains the value of the DE in human readable format
-
init
public void init(java.lang.String x, int minsize, int maxsize)
-
init
public void init(java.lang.StringBuffer x, int minsize, int maxsize)
-
initData
private void initData()
-
init
protected void init()
-
setContent
protected final void setContent(java.lang.String st, int minsize, int maxsize)
- Parameters:
st
- The string representation of the init value.minsize
- The minimum size (string length) of the init value.maxsize
- The maximum size (string length) of the init value. If this is zero, no checking for @p maxsize will be done.- Throws:
java.lang.IllegalArgumentException
- when the length of @p x is not in the range
-
toString
public java.lang.String toString(int zero)
- Parameters:
zero
- Just a dummy argument to overload the toString method.- Returns:
- A String containing the HBCI representation of this data element
-
getContent
protected java.lang.String getContent()
- Returns:
- den aktuellen Inhalt des SyntaxDE in der intern gespeicherten Form (human-readable)
-
skipPreDelim
protected static int skipPreDelim(java.lang.StringBuffer res)
- Parameters:
res
- A part of an HBCI message to be parsed.- Returns:
- Index into @p res where next token starts.
-
findNextDelim
public static int findNextDelim(java.lang.StringBuffer res, int startidx)
- Parameters:
res
- Part of an HBCI-message to be parsed.startidx
- Index position where to start looking for the next delimiter.- Returns:
- The position of the next delimiter character in @p res. If there is no next delimiter character, the return value will be the next character after the end of the String @p res (i.e. will equal @c res.length())
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- Die human-reable Repraesentation dieses Elementes
-
destroy
public void destroy()
-
-