RSE
Release 1.0

org.eclipse.rse.core.subsystems
Interface IRemotePropertyHolder

All Known Subinterfaces:
IRemoteFile, IVirtualRemoteFile
All Known Implementing Classes:
AbstractRemoteFile, DStoreFile, DStoreVirtualFile, LocalFile, LocalVirtualFile, RemoteFile

public interface IRemotePropertyHolder

This interface should be implemented by any remote artifact that contains remote properties and (optionally) caches them.


Method Summary
 Object[] getProperties(String[] keys)
          Returns the value of the properties with the given keys.
 Object getProperty(String key)
          Returns the value of the property with the given key.
 boolean isPropertyStale(String key)
          Returns whether the property with the given key is stale.
 void markAllPropertiesStale()
          Marks all properties as stale.
 void markPropertyStale(String key)
          Marks the property with the given key as stale.
 void setProperties(String[] keys, Object[] values)
          Sets the values of the properties with the given keys.
 void setProperty(String key, Object value)
          Sets the value of the property with the given key.
 

Method Detail

getProperty

public Object getProperty(String key)
Returns the value of the property with the given key.

Parameters:
key - the property key.
Returns:
the value of the property.

getProperties

public Object[] getProperties(String[] keys)
Returns the value of the properties with the given keys.

Parameters:
keys - the property keys.
Returns:
the correspoding values of the properties.

setProperty

public void setProperty(String key,
                        Object value)
Sets the value of the property with the given key.

Parameters:
key - the property key.
value - the value of the property.

setProperties

public void setProperties(String[] keys,
                          Object[] values)
Sets the values of the properties with the given keys.

Parameters:
keys - the property keys.
values - the corresponding values of the properties.

isPropertyStale

public boolean isPropertyStale(String key)
Returns whether the property with the given key is stale.

Parameters:
key - the property key.
Returns:
true if the property is stale, false otherwise.

markPropertyStale

public void markPropertyStale(String key)
Marks the property with the given key as stale.

Parameters:
key - the property key.

markAllPropertiesStale

public void markAllPropertiesStale()
Marks all properties as stale.


RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.