public class

AggregatePropertySet

extends AbstractPropertySet
implements Serializable
java.lang.Object
   ↳ com.opensymphony.module.propertyset.AbstractPropertySet
     ↳ com.opensymphony.module.propertyset.aggregate.AggregatePropertySet

Class Overview

PropertySet composed of a collection of other propertysets. Tried each of the propertysets to find a value, tries to be as fault tolerant as possible, in that when any error occurs, it simply tries the operation on the next set.

Optional Args

  • PropertySets - a List of PropertySet
Date: Dec 16, 2001 Time: 11:28:06 PM

Summary

[Expand]
Inherited Constants
From interface com.opensymphony.module.propertyset.PropertySet
[Expand]
Inherited Fields
From class com.opensymphony.module.propertyset.AbstractPropertySet
Public Constructors
AggregatePropertySet()
Public Methods
void addPropertySet(PropertySet propertySet)
boolean exists(String key)
Collection getKeys(String prefix, int type)
int getType(String key)
Checks all propertysets for the specified property.
void init(Map config, Map args)
boolean isSettable(String property)
Returns true.
void remove()
void remove(String key)
Protected Methods
Object get(int type, String key)
void setImpl(int type, String key, Object value)
Attempts to set a property in one of the propertysets.
[Expand]
Inherited Methods
From class com.opensymphony.module.propertyset.AbstractPropertySet
From class java.lang.Object
From interface com.opensymphony.module.propertyset.PropertySet

Public Constructors

public AggregatePropertySet ()

Public Methods

public void addPropertySet (PropertySet propertySet)

public boolean exists (String key)

public Collection getKeys (String prefix, int type)

public int getType (String key)

Checks all propertysets for the specified property. If a match is found, the type for the match is returned. Note that the first match is what is checked, other propertysets might also define this key, but they would not be checked.

public void init (Map config, Map args)

public boolean isSettable (String property)

Returns true.

public void remove ()

public void remove (String key)

Protected Methods

protected Object get (int type, String key)

protected void setImpl (int type, String key, Object value)

Attempts to set a property in one of the propertysets. Note that this method returns at the FIRST successful set call, rather than setting the same property on all the propertysets.