Package com.inet.pdfc.config
Class DefaultProfile
java.lang.Object
com.inet.pdfc.config.DefaultProfile
- All Implemented Interfaces:
IProfile
,Serializable
- Direct Known Subclasses:
SourceProfile
The class contains the default i-net PDFC profile.
- Since:
- 4.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A listener that can be registered to be notified if a value in the profile changed -
Field Summary
Fields inherited from interface com.inet.pdfc.config.IProfile
KEY_DESCRIPTION, KEY_NAME
-
Constructor Summary
ConstructorDescriptionDefault constructor with empty propertiesDefaultProfile
(IProfile sourceProfile) Creates a new profile as copy of another profile -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a listener to be notified if a profile value changedboolean
getBool
(PDFCProperty<?> property) Returns the value of the specifiedPDFCProperty
as a boolean.boolean
Returns the value of the specifiedPDFCProperty
as a boolean.double
getDouble
(PDFCProperty<?> property) Returns the value of the specifiedPDFCProperty
as a double.double
Returns the value of the specifiedPDFCProperty
as a double.int
getInt
(PDFCProperty<?> property) Returns the value of the specifiedPDFCProperty
as an int.int
Returns the value of the specifiedPDFCProperty
as an int.getObject
(PDFCProperty<?> property) Returns the value of the specifiedPDFCProperty
as anObject
.Returns the value of the specifiedPDFCProperty
as anObject
.Returns set of properties defined in this configurationgetString
(PDFCProperty<?> property) Returns the value of the specifiedPDFCProperty
as aString
.Returns the value of the specifiedPDFCProperty
as aString
.void
putValue
(PDFCProperty<?> property, String value) Stores a property in the current configuration.void
Stores a property in the current configuration.void
putValues
(Properties values) Stores all properties in the current configuration.void
Removes a listener to be no more notified
-
Constructor Details
-
DefaultProfile
public DefaultProfile()Default constructor with empty properties- Since:
- 4.0
-
DefaultProfile
Creates a new profile as copy of another profile- Parameters:
sourceProfile
- the config to copy from, must not benull
- Since:
- 4.0
-
-
Method Details
-
addProfileChangeListener
Adds a listener to be notified if a profile value changed- Parameters:
l
- the listener to be added- Since:
- 3.0
-
removeProfileChangeListener
Removes a listener to be no more notified- Parameters:
l
- the listener to be removed- Since:
- 3.0
-
getBool
Returns the value of the specifiedPDFCProperty
as a boolean. If it was not specified in the configuration file, the default value will be returned. -
getInt
Returns the value of the specifiedPDFCProperty
as an int. If it was not specified in the configuration file, the default value will be returned. -
getDouble
Returns the value of the specifiedPDFCProperty
as a double. If it was not specified in the configuration file, the default value will be returned. -
getObject
Returns the value of the specifiedPDFCProperty
as anObject
. If it was not specified in the configuration file, the default value will be returned. -
getString
Returns the value of the specifiedPDFCProperty
as aString
. If it was not specified in the configuration file, the default value will be returned. -
putValue
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. -
putValue
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. -
putValues
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. -
getProperties
Returns set of properties defined in this configuration- Returns:
- the profile properties
- Since:
- 1.0
-
getObject
Returns the value of the specifiedPDFCProperty
as anObject
. If it was not specified in the configuration file, the default value will be returned. -
getString
Returns the value of the specifiedPDFCProperty
as aString
. If it was not specified in the configuration file, the default value will be returned. -
getInt
Returns the value of the specifiedPDFCProperty
as an int. If it was not specified in the configuration file, the default value will be returned. -
getDouble
Returns the value of the specifiedPDFCProperty
as a double. If it was not specified in the configuration file, the default value will be returned. -
getBool
Returns the value of the specifiedPDFCProperty
as a boolean. If it was not specified in the configuration file, the default value will be returned.
-