Remote Systems
v6.4.1

com.ibm.etools.systems.subsystems
Interface IRemotePropertyHolder

All Known Subinterfaces:
IRemoteFile, IRemoteFileMutable
All Known Implementing Classes:
LocalFileImpl, RemoteFileImpl, UniversalFileImpl

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.


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.