|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.perspective.model.IBMiPropertiesModelAdapter
public class IBMiPropertiesModelAdapter
Field Summary |
---|
Fields inherited from interface com.ibm.etools.iseries.perspective.model.IISeriesPropertiesModel |
---|
Copyright |
Constructor Summary | |
---|---|
IBMiPropertiesModelAdapter(IBMiProperties target)
|
Method Summary | |
---|---|
void |
clearCache()
Remove any cached values so that the next read, will read from the persisted store |
void |
generatePropertyModel(Hashtable<String,String> properties,
IProgressMonitor monitor)
Save the specified properties into the metadata model |
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 |
isPredefinedProperty(String key)
|
boolean |
isTeamShared(String key)
Tests whether this property is team shared on not. Properties can be either team shared, or local. |
void |
load(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(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IBMiPropertiesModelAdapter(IBMiProperties target)
Method Detail |
---|
public String getProperty(String key)
IISeriesPropertiesModel
getProperty
in interface IISeriesPropertiesModel
IISeriesPropertiesModel.getProperty(java.lang.String)
public String getProperty(String key, String defaultValue)
IISeriesPropertiesModel
getProperty
in interface IISeriesPropertiesModel
IISeriesPropertiesModel.getProperty(java.lang.String, java.lang.String)
public Boolean getBooleanProperty(String key)
IISeriesPropertiesModel
getBooleanProperty
in interface IISeriesPropertiesModel
public Long getLongProperty(String key)
IISeriesPropertiesModel
getLongProperty
in interface IISeriesPropertiesModel
public Long getLongProperty(String key, long defaultValue)
IISeriesPropertiesModel
getLongProperty
in interface IISeriesPropertiesModel
public Integer getIntProperty(String key)
IISeriesPropertiesModel
getIntProperty
in interface IISeriesPropertiesModel
public void setProperty(String key, String value)
IISeriesPropertiesModel
setProperty
in interface IISeriesPropertiesModel
public void setBooleanProperty(String key, boolean value)
IISeriesPropertiesModel
setBooleanProperty
in interface IISeriesPropertiesModel
public void setLongProperty(String key, long value)
IISeriesPropertiesModel
setLongProperty
in interface IISeriesPropertiesModel
public void setIntProperty(String key, int value)
IISeriesPropertiesModel
setIntProperty
in interface IISeriesPropertiesModel
public boolean isDirty()
IISeriesPropertiesModel
isDirty
in interface IISeriesPropertiesModel
public boolean isPredefinedProperty(String key)
public boolean isTeamShared(String key)
IISeriesPropertiesModel
isTeamShared
in interface IISeriesPropertiesModel
public void load(IProgressMonitor monitor)
IISeriesPropertiesModel
load
in interface IISeriesPropertiesModel
public void save(IProgressMonitor monitor)
IISeriesPropertiesModel
save
in interface IISeriesPropertiesModel
public void generatePropertyModel(Hashtable<String,String> properties, IProgressMonitor monitor)
properties
- - Hashtable of property name, values to
set into the modelmonitor
- - allow the client to observe progress via this IProgressMonitor
public void mergeProperties(Hashtable newProperties)
IISeriesPropertiesModel
mergeProperties
in interface IISeriesPropertiesModel
public void clearCache()
clearCache
in interface IISeriesPropertiesModel
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |