|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IISeriesPropertiesModel
iSeries Properties Model base class.
Manages persistent data associated with an iSeries project, SRCPF or source member. Properties can be either Shared or Local.
Shared properties are stored in a file. Each subclass model knows which setttings in the passed Hastable to pick in order to generate the properties file.
Local properties are stored only locally, and are not visible when the project is loaded on another Eclipse installation.
Note: If property has not been set, getProperty() will return null. Load and Save methods knows how to resave this model back to the file system.
Clients are not expected to implement this interface.
Field Summary | |
---|---|
static String |
Copyright
|
Method Summary | |
---|---|
void |
clearCache()
Remove any cached values so that the next read, will read from the persisted store |
Boolean |
getBooleanProperty(String key)
Returns the boolean value of an iSeries property, whether it is Local or shared. Returns null if the property value is not a boolean value, or if the model is corrupt, or any error restoring the model occur. |
Integer |
getIntProperty(String key)
Returns the int value of an iSeries property, whether it is Local or shared. Returns null if the property value is not a long value, or if the model is corrupt, or any error restoring the model occur. |
Long |
getLongProperty(String key)
Returns the long value of an iSeries property, whether it is Local or shared. Returns null if the property value is not a long value, or if the model is corrupt, or any error restoring the model occur. |
Long |
getLongProperty(String key,
long defaultValue)
Returns the long value of an iSeries property. |
String |
getProperty(String key)
Returns the value of an iSeries property, whether it is Local or shared, and wether it is a predefined property, or an ISV supplied property. Returns null if the propetry is a predefined or an ISV property that has not been set, or the key is not a recognized ISV or predefined property key. |
String |
getProperty(String key,
String defaultValue)
Returns the value of an iSeries property, whether it is Local or shared, and wether it is a predefined property, or an ISV supplied property. Returns the default value argument if the property is not found. |
boolean |
isDirty()
Tests whether this properties model needs to be saved or not. returns true only if any of the predefined properties or ISV defined properties have changed. |
boolean |
isTeamShared(String key)
Tests whether this property is team shared on not. Properties can be either team shared, or local. |
void |
load(org.eclipse.core.runtime.IProgressMonitor monitor)
Loads all local and shared properties, wether they are predefined properties or ISV contributed ones. Also loads the list of modified properties. |
void |
mergeProperties(Hashtable newProperties)
Merges the argument properties with an existing model. Preserves properties that are not passed in the argument table. |
void |
save(org.eclipse.core.runtime.IProgressMonitor monitor)
Saves local and shared properties. Also saved the current list of modified properties. |
void |
setBooleanProperty(String key,
boolean value)
Sets a long property. If the new value of the property is different than the old value, then the key/value pair for the old value is stored in the list of modified properties, as returned by getModifiedProperties(). |
void |
setIntProperty(String key,
int value)
Sets a int property. If the new value of the property is different than the old value, then the key/value pair for the old value is stored in the list of modified properties, as returned by getModifiedProperties(). |
void |
setLongProperty(String key,
long value)
Sets a long property. If the new value of the property is different than the old value, then the key/value pair for the old value is stored in the list of modified properties, as returned by getModifiedProperties(). |
void |
setProperty(String key,
String value)
Sets the property. If the value is null, the method does nothing. |
Field Detail |
---|
static final String Copyright
Method Detail |
---|
boolean isTeamShared(String key)
boolean isDirty()
String getProperty(String key)
String getProperty(String key, String defaultValue)
getProperty(String key).
void setProperty(String key, String value)
Boolean getBooleanProperty(String key)
Long getLongProperty(String key)
Long getLongProperty(String key, long defaultValue)
Integer getIntProperty(String key)
void setBooleanProperty(String key, boolean value)
void setLongProperty(String key, long value)
void setIntProperty(String key, int value)
void mergeProperties(Hashtable newProperties)
void save(org.eclipse.core.runtime.IProgressMonitor monitor)
void load(org.eclipse.core.runtime.IProgressMonitor monitor)
void clearCache()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |