Package com.inet.pdfc.config
Interface IProfile
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DefaultProfile
,SourceProfile
,XMLProfile
public interface IProfile extends java.io.Serializable
The PDFC profile containing the various settings for PDFC such as comparison sensitivity, comparison types etc.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KEY_DESCRIPTION
static java.lang.String
KEY_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getBool(PDFCProperty<?> property)
Returns the value of the specifiedPDFCProperty
as a boolean.boolean
getBool(java.lang.String propertyName)
Returns the value of the specifiedPDFCProperty
as a boolean.double
getDouble(PDFCProperty<?> property)
Returns the value of the specifiedPDFCProperty
as a double.double
getDouble(java.lang.String propertyName)
Returns the value of the specifiedPDFCProperty
as a double.int
getInt(PDFCProperty<?> property)
Returns the value of the specifiedPDFCProperty
as an int.int
getInt(java.lang.String propertyName)
Returns the value of the specifiedPDFCProperty
as an int.java.lang.Object
getObject(PDFCProperty<?> property)
Returns the value of the specifiedPDFCProperty
as anObject
.java.lang.Object
getObject(java.lang.String propertyName)
Returns the value of the specifiedPDFCProperty
as anObject
.java.lang.String
getString(PDFCProperty<?> property)
Returns the value of the specifiedPDFCProperty
as aString
.java.lang.String
getString(java.lang.String propertyName)
Returns the value of the specifiedPDFCProperty
as aString
.void
putValue(PDFCProperty<?> property, java.lang.String value)
Stores a property in the current configuration.void
putValue(java.lang.String propertyName, java.lang.String value)
Stores a property in the current configuration.void
putValues(java.util.Properties values)
Stores all properties in the current configuration.
-
-
-
Field Detail
-
KEY_DESCRIPTION
static final java.lang.String KEY_DESCRIPTION
- See Also:
- Constant Field Values
-
KEY_NAME
static final java.lang.String KEY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getObject
java.lang.Object getObject(PDFCProperty<?> property)
Returns the value of the specifiedPDFCProperty
as anObject
. If it was not specified in the configuration file, the default value will be returned.- Parameters:
property
- the property to get the value for- Returns:
- the value as an
Object
My benull
if there is no value for the key and the key does not provide a default value. - Since:
- 1.0 in
IConfiguration
interface
-
getString
java.lang.String getString(PDFCProperty<?> property)
Returns the value of the specifiedPDFCProperty
as aString
. If it was not specified in the configuration file, the default value will be returned.- Parameters:
property
- the property to get the value for- Returns:
- the value as a
String
nevernull
, but may be empty - Since:
- 1.0 in
IConfiguration
interface
-
getInt
int getInt(PDFCProperty<?> property)
Returns the value of the specifiedPDFCProperty
as an int. If it was not specified in the configuration file, the default value will be returned.- Parameters:
property
- the property to get the value for- Returns:
- the value as integer
- Since:
- 1.0 in
IConfiguration
interface
-
getDouble
double getDouble(PDFCProperty<?> property)
Returns the value of the specifiedPDFCProperty
as a double. If it was not specified in the configuration file, the default value will be returned.- Parameters:
property
- the property to get the value for- Returns:
- the value as a double
- Since:
- 1.0 in
IConfiguration
interface
-
getBool
boolean getBool(PDFCProperty<?> property)
Returns the value of the specifiedPDFCProperty
as a boolean. If it was not specified in the configuration file, the default value will be returned.- Parameters:
property
- the property to get the value for- Returns:
- the value as a boolean.
- Since:
- 1.0 in
IConfiguration
interface
-
putValue
void putValue(PDFCProperty<?> property, java.lang.String value)
Stores a property in the current configuration. This value will NOT be saved in the file system but rather is used for the currently running VM instance.- Parameters:
property
- the property to be storedvalue
- the value of the property- Since:
- 1.0 in
IConfiguration
interface
-
getObject
java.lang.Object getObject(java.lang.String propertyName)
Returns the value of the specifiedPDFCProperty
as anObject
. If it was not specified in the configuration file, the default value will be returned.- Parameters:
propertyName
- the name of the property to get the value for- Returns:
- the value as a
Object
My benull
if there is no value for the key and the key does not provide a default value. - Since:
- 1.08 in
IConfiguration
interface
-
getString
java.lang.String getString(java.lang.String propertyName)
Returns the value of the specifiedPDFCProperty
as aString
. If it was not specified in the configuration file, the default value will be returned.- Parameters:
propertyName
- the name of the property to get the value for- Returns:
- the value as a
String
nevernull
, but may be empty - Since:
- 1.08 in
IConfiguration
interface
-
getInt
int getInt(java.lang.String propertyName)
Returns the value of the specifiedPDFCProperty
as an int. If it was not specified in the configuration file, the default value will be returned.- Parameters:
propertyName
- the name of the property to get the value for- Returns:
- the value as an integer
- Since:
- 1.08 in
IConfiguration
interface
-
getDouble
double getDouble(java.lang.String propertyName)
Returns the value of the specifiedPDFCProperty
as a double. If it was not specified in the configuration file, the default value will be returned.- Parameters:
propertyName
- the name of the property to get the value for- Returns:
- the value as a double
- Since:
- 1.08 in
IConfiguration
interface
-
getBool
boolean getBool(java.lang.String propertyName)
Returns the value of the specifiedPDFCProperty
as a boolean. If it was not specified in the configuration file, the default value will be returned.- Parameters:
propertyName
- the name of the property to get the value for- Returns:
- the value as a boolean
- Since:
- 1.08 in
IConfiguration
interface
-
putValue
void putValue(java.lang.String propertyName, java.lang.String value)
Stores a property in the current configuration. This value will NOT be saved in the file system but rather is used for the currently running VM instance.- Parameters:
propertyName
- the name of the property to get the value forvalue
- the value of the property, must not benull
- Since:
- 1.08 in
IConfiguration
interface
-
putValues
void putValues(java.util.Properties values)
Stores all properties in the current configuration. This value will NOT be saved in the file system but rather is used for the currently running VM instance. Change events will only be fired for values that have changed.- Parameters:
values
- the instance of values- Since:
- 4.0 in
IConfiguration
interface
-
-