| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
PropertyType - public interface LaraStorage<PropertyType extends LaraProperty<? extends PropertyType,?>>
The LaraStorage provides a general abstract data type that
 stores instances of LaraProperty each identified by a key of type
 String.
 
 PropertyType specifies the type of LaraPropertys the
 storage may store (Object in most cases).
 
 Any implementing class must guarantee (at least) all of following criteria of
 the contract for a LaraStorage:
 
| Field Summary | 
|---|
| Fields inherited from interface de.cesr.lara.components.container.LaraContainer | 
|---|
| UNLIMITED_CAPACITY | 
| Method Summary | ||
|---|---|---|
|  void | addStoragePropertyListener(LaraStorageListener.StorageEvent eventType,
                           LaraStorageListener listener)Adds a given LaraStorageListenerfor the specifiedLaraStorageListener.StorageEvent | |
|  void | clear()Clears the storage, i.e. removes all properties. | |
|  boolean | contains(Class<?> propertyType,
         String key)Checks whether the storage contains a property of the given type with the given key. | |
|  boolean | contains(PropertyType property)Returns true, if, and only if, this storage contains the
 given property. | |
|  boolean | contains(PropertyType property,
         String key)Checks whether the memory contains the given LaraPropertywith
 the given key. | |
|  boolean | contains(String key)Returns true, if, and only if, this storage contains a
 property for the specifiedkey. | |
|  boolean | contains(String key,
         int step)Returns true, if, and only if, this storage contains a
 property for the specifiedkeyandstep. | |
| 
 | fetch(Class<RequestPropertyType> propertyType,
      String key)Generic method that returns the most recently stored property that is of the specified type and identified with key. | |
| 
 | fetch(Class<RequestPropertyType> propertyType,
      String key,
      int step)Generic method that returns the first property that is of the specified type, was stored in stepand identified withkey. | |
|  PropertyType | fetch(String key)Generic method that returns the most recently stored property that is identified with key. | |
|  PropertyType | fetch(String key,
      int step)Generic method that returns the first property that was stored in stepand identified withkey. | |
|  Collection<PropertyType> | fetchAll()Generic method that returns a collection of all properties found. | |
| 
 | fetchAll(Class<RequestPropertyType> propertyType)Generic method that returns a collection of all properties found. | |
| 
 | fetchAll(Class<RequestPropertyType> propertyType,
         String key)Generic method that returns a collection of all properties found that are of the specified type and are identified by key. | |
|  Collection<PropertyType> | fetchAll(String key)Generic method that returns a collection of all properties found that are identified by key. | |
|  Set<String> | getAllPropertyKeys()Returns a set of Strings that represent the keys of properties stored in the storage such that any property in the storage is represented. | |
|  PropertyType | remove(PropertyType propertyToRemove)Removes the specified property from this storage. | |
|  PropertyType | remove(String key,
       int step)Removes the property with the specified key that was stored in stepfrom this storage. | |
|  Collection<PropertyType> | removeAll(Collection<PropertyType> propertiesToBeRemoved)Removes all properties in the specified collection from this storage. | |
|  Collection<PropertyType> | removeAll(String key)Removes all properties that are identified by the specified key. | |
|  void | removeStoragePropertyListener(LaraStorageListener.StorageEvent eventType,
                              LaraStorageListener listener) | |
|  void | store(PropertyType propertyToStore)Tries to add the specified property to this storage. | |
| Methods inherited from interface de.cesr.lara.components.container.LaraContainer | 
|---|
| getCapacity, getSize, isEmpty, isFull | 
| Methods inherited from interface java.lang.Iterable | 
|---|
| iterator | 
| Method Detail | 
|---|
void addStoragePropertyListener(LaraStorageListener.StorageEvent eventType,
                                LaraStorageListener listener)
LaraStorageListener for the specified
 LaraStorageListener.StorageEvent
eventType - the category of storage property events the listeners shall be
            registered forlistener - the listener to be registered
void clear()
           throws LRemoveException
LRemoveException
boolean contains(Class<?> propertyType,
                 String key)
key - 
boolean contains(PropertyType property)
true, if, and only if, this storage contains the
 given property.
property - 
true, if, and only if, this storage contains the
         given property.
boolean contains(PropertyType property,
                 String key)
LaraProperty with
 the given key.
key - 
boolean contains(String key)
true, if, and only if, this storage contains a
 property for the specified key.
key - 
true, if, and only if, this storage contains a
         property for the specified key.
boolean contains(String key,
                 int step)
true, if, and only if, this storage contains a
 property for the specified key and step.
key - step - 
true, if, and only if, this storage contains a
         property for the specified key and step.
<RequestPropertyType extends PropertyType> RequestPropertyType fetch(Class<RequestPropertyType> propertyType,
                                                                     String key)
                                               throws LRetrieveException
key.
propertyType - key - identifier for the property to be retrieved.
key.
LRetrieveException
<RequestPropertyType extends PropertyType> RequestPropertyType fetch(Class<RequestPropertyType> propertyType,
                                                                     String key,
                                                                     int step)
                                               throws LRetrieveException
step and identified with key.
propertyType - key - identifier for the property to be retrieved.step - step in which the property was stored.
step and identified with key.
LRetrieveException
PropertyType fetch(String key)
                                                                  throws LRetrieveException
key.
key - identifier for the property to be retrieved.
key.
LRetrieveException
PropertyType fetch(String key,
                   int step)
                                                                  throws LRetrieveException
step and identified with key.
key - identifier for the property to be retrieved.step - step in which the property was stored.
step and identified
         with key.
LRetrieveException
Collection<PropertyType> fetchAll()
                                                                                 throws LRetrieveException
LRetrieveException
<RequestPropertyType extends PropertyType> Collection<RequestPropertyType> fetchAll(Class<RequestPropertyType> propertyType)
                                                              throws LRetrieveException
propertyType - identifier for the properties to be retrieved.
step and identified with key.
LRetrieveException
<RequestPropertyType extends PropertyType> Collection<RequestPropertyType> fetchAll(Class<RequestPropertyType> propertyType,
                                                                                    String key)
                                                              throws LRetrieveException
key.
propertyType - key - identifier for the properties to be retrieved.
step and identified with key.
LRetrieveException
Collection<PropertyType> fetchAll(String key)
                                                                                 throws LRetrieveException
key.
key - identifier for the properties to be retrieved.
key.
LRetrieveExceptionSet<String> getAllPropertyKeys()
PropertyType remove(PropertyType propertyToRemove)
                                                                   throws LRemoveException
propertyToRemove - the property to be removed.
LRemoveException
PropertyType remove(String key,
                    int step)
                                                                   throws LRemoveException
step from this storage.
key - identifier for the property to be removed.step - the step in which the property to be removed was stored.
LRemoveException
Collection<PropertyType> removeAll(Collection<PropertyType> propertiesToBeRemoved)
                                                                                  throws LRemoveException
propertiesToBeRemoved - the properties to be removed
LRemoveException
Collection<PropertyType> removeAll(String key)
                                                                                  throws LRemoveException
key - key identifier for the properties to be removed.
LRemoveException
void removeStoragePropertyListener(LaraStorageListener.StorageEvent eventType,
                                   LaraStorageListener listener)
eventType - the category of storage property events the listeners shall be
            removed fromlistener - the listener to be removed
void store(PropertyType propertyToStore)
           throws LContainerFullException,
                  LInvalidTimestampException
propertyToStore - the property to be stored.
LStoreException
LContainerFullException
LInvalidTimestampException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||