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
    Create object to access parameter Param.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Count keys with some prefix
    void
     
    int
    Return the numerical value (Throw exception for string parameter)
    Return the string value (Throw exception for numerical parameter)
    void
    setLong(int lValue)
    Set the numerical value (Throw exception for string parameter)
    void
    setString(String csValue)
    Set the string value (Throw exception for numerical parameter)
    static void
    SetTestMode(boolean bTestMode)
    Set the test mode

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PTEID_Config

      public PTEID_Config(PTEID_Param Param)
      Create object to access parameter Param.
  • Method Details

    • delete

      public void delete()
      Overrides:
      delete in class PTEID_Object
    • getString

      public 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(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