|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides aggregation acrosss multiple IPropertySource
instances
based on a ranking of those IPropertySource
instances.
To provide the same abilities of a IPropertySource
instance,
this IPropertyAggregator
instance extends the
IPropertySource
interface. The IPropertyAggregator
instance decorates a collection of IPropertySource
instances,
delegating method calls the first IPropertySource
instance
with the highest ranking that returns a valid value.
Properties are any persistent data source that parameterizes behavior of a running application. That data source could be XML, a relational database, or even a URL.
To load properties from their data source, call the load
method.
Properties can be read-only or writable. The setWriteable
and
isWriteable
methods determine whether an
IPropertySource
instance is writeable.
If the properties represented by this IPropertySource
instance
are writable, then the save
method saves the properties
to the represented property source.
To allow easy access to Properties, this IPropertySource
interface extends the INode
interface.
This interface is the root of the Properties framework. It provides the container for the storage and manipulation of properties.
PropertyManager
Method Summary | |
void |
addPropertySource(int aRank,
IPropertySource aPropertySource)
Adds the specified IPropertySource instance to this
IPropertyAggregator instance at the specified ranking,
replacing the IPropertySource instance that was in that rank,
if any. |
void |
addPropertySource(IPropertySource aPropertySource)
Adds the specified IPropertySource instance to this
IPropertyAggregator instance at the lowest ranking (at the
end of the aggregate list). |
IPropertySource |
getPropertySource(int aRank)
Returns the specified IPropertySource instance from this
IPropertyAgregator instance at the specified ranking. |
IPropertySource |
getPropertySource(java.lang.Object aID)
Returns the specified IPropertySource instance from this
IPropertyAgregator instance with the specified identifier. |
java.util.Iterator |
getPropertySources()
Returns the IPropertySource instances from this
IPropertyAgregator instance. |
void |
removePropertySource(IPropertySource aPropertySource)
Removes the specified IPropertySource instance from this
IPropertyAgregator instance. |
Methods inherited from interface net.sourceforge.esw.properties.IPropertySource |
isWriteable, load, save, setWriteable |
Methods inherited from interface net.sourceforge.esw.graph.INode |
acceptVisitor, add, add, addParent, clear, containsID, get, get, getList, getParents, getValue, isEmpty, iterator, remove, removeParent, setValue, size |
Methods inherited from interface net.sourceforge.esw.util.ISupportObject |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getID, getProperty, getPropertySize, propertyKeys, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setID, setProperty |
Methods inherited from interface net.sourceforge.esw.util.ICloneable |
clone |
Method Detail |
public void addPropertySource(int aRank, IPropertySource aPropertySource)
IPropertySource
instance to this
IPropertyAggregator
instance at the specified ranking,
replacing the IPropertySource
instance that was in that rank,
if any.aRank
- the rank the specifed IPropertySource
instance
should be added.aPropertySource
- the IPropertySource
instance to be
added.public void addPropertySource(IPropertySource aPropertySource)
IPropertySource
instance to this
IPropertyAggregator
instance at the lowest ranking (at the
end of the aggregate list).aPropertySource
- the IPropertySource
instance to be
added.public IPropertySource getPropertySource(java.lang.Object aID)
IPropertySource
instance from this
IPropertyAgregator
instance with the specified identifier.aID
- the identifier of the IPropertySource
instance to
return.IPropertySource
instance with the specified
identifier.public IPropertySource getPropertySource(int aRank)
IPropertySource
instance from this
IPropertyAgregator
instance at the specified ranking.aRank
- the rank for which to return an IPropertySource
instanceIPropertySource
instance with the specified
identifier.public java.util.Iterator getPropertySources()
IPropertySource
instances from this
IPropertyAgregator
instance.Iterator
over the IPropertySource
instanced contained by this IPropertyAgregator
instance.public void removePropertySource(IPropertySource aPropertySource)
IPropertySource
instance from this
IPropertyAgregator
instance.aPropertySource
- the IPropertySource
instance to remove.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |