1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package be.belgium.eid;
/******************************************************************************//**
* Class to access the configuration parameters
*********************************************************************************/
public class BEID_Config extends BEID_Object {
private long swigCPtr;
protected BEID_Config(long cPtr, boolean cMemoryOwn) {
super(beidlibJava_WrapperJNI.SWIGBEID_ConfigUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(BEID_Config obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
beidlibJava_WrapperJNI.delete_BEID_Config(swigCPtr);
}
swigCPtr = 0;
super.delete();
}
/**
* ctor
* @param Param configuration parameter \see BEID_Param
*/
public BEID_Config(BEID_Param Param) {
this(beidlibJava_WrapperJNI.new_BEID_Config__SWIG_0(Param.swigValue()), true);
}
/**
* ctor
* @param csName the name of the configuration parameter
* @param czSection the section in the configuration settings
* @param csDefaultValue the default value (string)
*/
public BEID_Config(String csName, String czSection, String csDefaultValue) {
this(beidlibJava_WrapperJNI.new_BEID_Config__SWIG_1(csName, czSection, csDefaultValue), true);
}
/**
* ctor
* @param csName the name of the configuration parameter
* @param czSection the section in the configuration settings
* @param lDefaultValue the default value (numeric)
*/
public BEID_Config(String csName, String czSection, int lDefaultValue) {
this(beidlibJava_WrapperJNI.new_BEID_Config__SWIG_2(csName, czSection, lDefaultValue), true);
}
/**
* Get the configuration value (string)
* @return the configuration setting (string)
*/
public String getString() throws java.lang.Exception {
return beidlibJava_WrapperJNI.BEID_Config_getString(swigCPtr, this);
}
/**
* Get the configuration value (numeric)
* @return the configuration setting (numeric)
*/
public int getLong() throws java.lang.Exception {
return beidlibJava_WrapperJNI.BEID_Config_getLong(swigCPtr, this);
}
/**
* Set the configuration value (string)
* @param csValue is the value for the configuration setting
*/
public void setString(String csValue) throws java.lang.Exception {
beidlibJava_WrapperJNI.BEID_Config_setString(swigCPtr, this, csValue);
}
/**
* Set the configuration value (numeric)
* @param lValue is the value for the configuration setting
*/
public void setLong(int lValue) throws java.lang.Exception {
beidlibJava_WrapperJNI.BEID_Config_setLong(swigCPtr, this, lValue);
}
}
|