Interface PropertiesCollection<E>

Type Parameters:
E - the type of keys to use.
All Superinterfaces:
Serializable
All Known Implementing Classes:
JPPFSystemInformation

public interface PropertiesCollection<E> extends Serializable
A grouping of TypedProperties objects, representing multiple sets of properties while allowing to retrive vlaues as if it were a single set of properties.
Author:
Laurent Cohen
  • Method Details

    • addProperties

      void addProperties(E key, TypedProperties properties)
      Add the specified properties with the specified keys.
      Parameters:
      key - the key to use.
      properties - the properties to add.
    • getProperties

      TypedProperties getProperties(E key)
      Add the specified properties with the specified key.
      Parameters:
      key - the key to use to retrieve the properties.
      Returns:
      the properties to correponding to the key, or null if the key could not be found.
    • getPropertiesArray

      TypedProperties[] getPropertiesArray()
      Get all the properties as an array.
      Returns:
      an array of all the sets of properties.
    • getProperty

      String getProperty(String name)
      Get the value of the property with the specified name.
      Parameters:
      name - the name of the property to find.
      Returns:
      the proerty value, or null if the property could not be found.
    • containsKey

      boolean containsKey(String name)
      Determine whether this properties collection contains a property witht he specified key.
      Parameters:
      name - the name of the property to check.
      Returns:
      true if the property could be found, false otherwise.