jreceiver.common.callback.rec
Class DsettingStrRec
java.lang.Object
|
+--jreceiver.common.rec.BaseRec
|
+--jreceiver.common.callback.rec.DsettingRec
|
+--jreceiver.common.callback.rec.DsettingStrRec
- All Implemented Interfaces:
- Dsetting, DsettingStr, Hashable
- public final class DsettingStrRec
- extends DsettingRec
- implements DsettingStr
Bean to represent a string setting item
- Version:
- $Revision: 1.2 $ $Date: 2002/07/20 01:40:43 $
- Author:
- Reed Esau
Field Summary |
protected int |
max_len
the maximum length of the string |
protected int |
min_len
the minimum length of the string |
Fields inherited from interface jreceiver.common.callback.rec.Dsetting |
DSETTING_TYPE_BOOL, DSETTING_TYPE_INT, DSETTING_TYPE_LIST, DSETTING_TYPE_STR, DSETTING_TYPE_URL, HKEY_DSETTING_DESC, HKEY_DSETTING_ID, HKEY_DSETTING_IS_REQUIRED, HKEY_DSETTING_LOCALE_COUNTRY, HKEY_DSETTING_LOCALE_LANG, HKEY_DSETTING_NAME, HKEY_DSETTING_TYPE, OPTIONAL, REQUIRED |
Constructor Summary |
DsettingStrRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC |
DsettingStrRec(java.lang.String id,
boolean is_required,
java.lang.String name,
java.lang.String desc,
java.util.Locale locale,
java.lang.String def_value)
|
DsettingStrRec(java.lang.String id,
boolean is_required,
java.lang.String name,
java.lang.String desc,
java.util.Locale locale,
java.lang.String def_value,
int min_len,
int max_len)
|
Methods inherited from class jreceiver.common.callback.rec.DsettingRec |
createInstance, getDefaultValue, getDesc, getId, getIsBoolSetting, getIsIntSetting, getIsListSetting, getIsRequired, getIsStrSetting, getIsUrlSetting, getLocale, getName, getType, getValue, reconstitute, reconstituteMap, setDefaultValue, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jreceiver.common.callback.rec.Dsetting |
getDefaultValue, getDesc, getId, getIsBoolSetting, getIsIntSetting, getIsListSetting, getIsRequired, getIsStrSetting, getIsUrlSetting, getLocale, getName, getType, getValue, setDefaultValue, setValue |
min_len
protected int min_len
- the minimum length of the string
max_len
protected int max_len
- the maximum length of the string
DsettingStrRec
public DsettingStrRec(java.lang.String id,
boolean is_required,
java.lang.String name,
java.lang.String desc,
java.util.Locale locale,
java.lang.String def_value)
DsettingStrRec
public DsettingStrRec(java.lang.String id,
boolean is_required,
java.lang.String name,
java.lang.String desc,
java.util.Locale locale,
java.lang.String def_value,
int min_len,
int max_len)
DsettingStrRec
public DsettingStrRec(java.util.Hashtable hash)
- ctor - construct from a hashtable, usually retrieved via XML-RPC
- Parameters:
hash
-
getValueStr
public java.lang.String getValueStr()
- Specified by:
getValueStr
in interface DsettingStr
setValueStr
public void setValueStr(java.lang.String value)
- Specified by:
setValueStr
in interface DsettingStr
getDefaultValueStr
public java.lang.String getDefaultValueStr()
- Specified by:
getDefaultValueStr
in interface DsettingStr
setDefaultValueStr
public void setDefaultValueStr(java.lang.String def_value)
- Specified by:
setDefaultValueStr
in interface DsettingStr
getMinLen
public int getMinLen()
- Specified by:
getMinLen
in interface DsettingStr
setMinLen
public void setMinLen(int min_len)
- Specified by:
setMinLen
in interface DsettingStr
getMaxLen
public int getMaxLen()
- Specified by:
getMaxLen
in interface DsettingStr
setMaxLen
public void setMaxLen(int max_len)
- Specified by:
setMaxLen
in interface DsettingStr
toString
public java.lang.String toString()
- Returns a string representation of the object.
- Specified by:
toString
in interface Hashable
- Overrides:
toString
in class DsettingRec
- Returns:
- a string representation of the object.
toHash
public java.util.Hashtable toHash()
- Store the object as a hash suitable for
transport over an XML-RPC connection or similar.
Use DsettingRec(Hashtable)
to transform the data
back into an object of this type.
- Specified by:
toHash
in interface Hashable
- Overrides:
toHash
in class DsettingRec
- Returns:
-
Copyright © 2001-2002 Reed Esau, All Rights Reserved.