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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA 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
ConstructorsConstructorDescriptionDefault constructor with empty propertiesDefaultProfile(IProfile sourceProfile) Creates a new profile as copy of another profile -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener to be notified if a profile value changedbooleangetBool(PDFCProperty<?> property) Returns the value of the specifiedPDFCPropertyas a boolean.booleanReturns the value of the specifiedPDFCPropertyas a boolean.doublegetDouble(PDFCProperty<?> property) Returns the value of the specifiedPDFCPropertyas a double.doubleReturns the value of the specifiedPDFCPropertyas a double.intgetInt(PDFCProperty<?> property) Returns the value of the specifiedPDFCPropertyas an int.intReturns the value of the specifiedPDFCPropertyas an int.getObject(PDFCProperty<?> property) Returns the value of the specifiedPDFCPropertyas anObject.Returns the value of the specifiedPDFCPropertyas anObject.Returns set of properties defined in this configurationgetString(PDFCProperty<?> property) Returns the value of the specifiedPDFCPropertyas aString.Returns the value of the specifiedPDFCPropertyas aString.voidputValue(PDFCProperty<?> property, String value) Stores a property in the current configuration.voidStores a property in the current configuration.voidputValues(Properties values) Stores all properties in the current configuration.voidRemoves 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 specifiedPDFCPropertyas a boolean. If it was not specified in the configuration file, the default value will be returned. -
getInt
Returns the value of the specifiedPDFCPropertyas an int. If it was not specified in the configuration file, the default value will be returned. -
getDouble
Returns the value of the specifiedPDFCPropertyas a double. If it was not specified in the configuration file, the default value will be returned. -
getObject
Returns the value of the specifiedPDFCPropertyas anObject. If it was not specified in the configuration file, the default value will be returned. -
getString
Returns the value of the specifiedPDFCPropertyas 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 specifiedPDFCPropertyas anObject. If it was not specified in the configuration file, the default value will be returned. -
getString
Returns the value of the specifiedPDFCPropertyas aString. If it was not specified in the configuration file, the default value will be returned. -
getInt
Returns the value of the specifiedPDFCPropertyas an int. If it was not specified in the configuration file, the default value will be returned. -
getDouble
Returns the value of the specifiedPDFCPropertyas a double. If it was not specified in the configuration file, the default value will be returned. -
getBool
Returns the value of the specifiedPDFCPropertyas a boolean. If it was not specified in the configuration file, the default value will be returned.
-