|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bsvrz.ars.ars.persistence.KeyValProps
public abstract class KeyValProps
Klasse zum Lesen/Schreiben von Key/Value-Paaren. Die Values haben stets feste Laenge..
Field Summary | |
---|---|
static int |
BOOL_STR_LEN
Laenge eines Boolschen Werts bei textueller Repraesentation mit '0' und '1'. |
protected static long |
BYTE4_MAXVAL
|
protected static long |
BYTE5_MAXVAL
|
protected static long |
BYTE6_MAXVAL
|
protected static long |
BYTE8_MAXVAL
|
static int |
BYTES4_STR_LEN
|
static int |
BYTES5_STR_LEN
|
static int |
BYTES6_STR_LEN
|
static int |
BYTES8_STR_LEN
|
protected static String |
CH_DELIM
Delimiter fuer Parameter im Container-Header. |
protected static String |
FALSE
Textuelle Repraesentationdes boolsches Kennzeichen für 'Falsch'. |
protected Properties |
properties
|
protected static String |
TRUE
Textuelle Repraesentation des boolsches Kennzeichen für 'Wahr'. |
Constructor Summary | |
---|---|
KeyValProps()
|
Method Summary | |
---|---|
void |
clear()
|
protected static KeyValParam |
createNumParam(String key,
long defaultValue,
int valueLength,
long minVal,
long maxVal)
|
protected static KeyValParam |
createStringParam(String key,
String defaultValue,
int valueLength)
|
protected static KeyValParam |
createStringParam(String key,
String defaultValue,
int valueLength,
String[] allowedValues)
|
Boolean |
getValAsBool(KeyValParam chp)
|
Integer |
getValAsInt(KeyValParam chp)
|
Long |
getValAsLong(KeyValParam chp)
|
String |
getValAsString(KeyValParam chp)
|
void |
setDefaultVal(KeyValParam chp)
|
void |
setVal(KeyValParam chp,
boolean val)
|
void |
setVal(KeyValParam chp,
long val)
|
void |
setVal(KeyValParam chp,
String val)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Properties properties
public static final int BYTES4_STR_LEN
public static final int BYTES5_STR_LEN
public static final int BYTES6_STR_LEN
public static final int BYTES8_STR_LEN
public static final int BOOL_STR_LEN
protected static final long BYTE4_MAXVAL
protected static final long BYTE5_MAXVAL
protected static final long BYTE6_MAXVAL
protected static final long BYTE8_MAXVAL
protected static final String TRUE
protected static final String FALSE
protected static final String CH_DELIM
Constructor Detail |
---|
public KeyValProps()
Method Detail |
---|
public void clear()
public void setVal(KeyValParam chp, boolean val) throws PersistenceException
PersistenceException
public void setVal(KeyValParam chp, long val) throws PersistenceException
PersistenceException
public void setVal(KeyValParam chp, String val) throws PersistenceException
PersistenceException
public void setDefaultVal(KeyValParam chp)
public String getValAsString(KeyValParam chp)
public Long getValAsLong(KeyValParam chp) throws PersistenceException
PersistenceException
public Boolean getValAsBool(KeyValParam chp) throws PersistenceException
PersistenceException
public Integer getValAsInt(KeyValParam chp) throws PersistenceException
PersistenceException
protected static KeyValParam createNumParam(String key, long defaultValue, int valueLength, long minVal, long maxVal)
protected static KeyValParam createStringParam(String key, String defaultValue, int valueLength)
protected static KeyValParam createStringParam(String key, String defaultValue, int valueLength, String[] allowedValues)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |