Package pt.gov.cartaodecidadao
Class PTEID_Config
- java.lang.Object
-
- pt.gov.cartaodecidadao.PTEID_Object
-
- pt.gov.cartaodecidadao.PTEID_Config
-
public class PTEID_Config extends PTEID_Object
Class to access and modify the config parameters of pteid-mw.
These parameters are persisted in the Windows Registry under the HKEY_CURRENT_USER\Software\PTEID key
or in the pteid.conf file of the current user (on Linux and MacOS systems)
-
-
Constructor Summary
Constructors Constructor Description PTEID_Config(PTEID_Param Param)
Create object to access parameter Param.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
CountKeysByPrefix()
Count keys with some prefixvoid
delete()
int
getLong()
Return the numerical value (Throw exception for string parameter)java.lang.String
getString()
Return the string value (Throw exception for numerical parameter)void
setLong(int lValue)
Set the numerical value (Throw exception for string parameter)void
setString(java.lang.String csValue)
Set the string value (Throw exception for numerical parameter)static void
SetTestMode(boolean bTestMode)
Set the test mode
-
-
-
Constructor Detail
-
PTEID_Config
public PTEID_Config(PTEID_Param Param)
Create object to access parameter Param.
-
-
Method Detail
-
delete
public void delete()
- Overrides:
delete
in classPTEID_Object
-
getString
public java.lang.String getString() throws PTEID_Exception
Return the string value (Throw exception for numerical parameter)- Throws:
PTEID_Exception
-
getLong
public int getLong() throws PTEID_Exception
Return the numerical value (Throw exception for string parameter)- Throws:
PTEID_Exception
-
setString
public void setString(java.lang.String csValue) throws PTEID_Exception
Set the string value (Throw exception for numerical parameter)- Throws:
PTEID_Exception
-
CountKeysByPrefix
public long CountKeysByPrefix()
Count keys with some prefix
-
setLong
public void setLong(int lValue) throws PTEID_Exception
Set the numerical value (Throw exception for string parameter)- Throws:
PTEID_Exception
-
SetTestMode
public static void SetTestMode(boolean bTestMode)
Set the test mode
-
-