Package pt.gov.cartaodecidadao
Class PTEID_Config
java.lang.Object
pt.gov.cartaodecidadao.PTEID_Object
pt.gov.cartaodecidadao.PTEID_Config
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)
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 -
Method Summary
Modifier and TypeMethodDescriptionlongCount keys with some prefixvoiddelete()intgetLong()Return the numerical value (Throw exception for string parameter)Return the string value (Throw exception for numerical parameter)voidsetLong(int lValue) Set the numerical value (Throw exception for string parameter)voidSet the string value (Throw exception for numerical parameter)static voidSetTestMode(boolean bTestMode) Set the test mode
-
Constructor Details
-
PTEID_Config
Create object to access parameter Param.
-
-
Method Details
-
delete
public void delete()- Overrides:
deletein classPTEID_Object
-
getString
Return the string value (Throw exception for numerical parameter)- Throws:
PTEID_Exception
-
getLong
Return the numerical value (Throw exception for string parameter)- Throws:
PTEID_Exception
-
setString
Set the string value (Throw exception for numerical parameter)- Throws:
PTEID_Exception
-
CountKeysByPrefix
public long CountKeysByPrefix()Count keys with some prefix -
setLong
Set the numerical value (Throw exception for string parameter)- Throws:
PTEID_Exception
-
SetTestMode
public static void SetTestMode(boolean bTestMode) Set the test mode
-