|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.planetalia.dynject.sources.MapSource<T>
public class MapSource<T>
Retrieves property values from a Map
| Constructor Summary | |
|---|---|
MapSource(java.util.Map<java.lang.String,T> data)
Creates a MapSource using the specified map as provider of data |
|
| Method Summary | |
|---|---|
ClassPreferences |
getPropertyClass(java.lang.String propertyName)
Returns the class preferences for a property |
java.util.Set<java.lang.String> |
getPropertyNames()
Returns the set of all existing properties at the time of invocation. |
java.lang.Object |
getValue(java.lang.String propertyName)
Provides the value of a specific property |
boolean |
propertyExists(java.lang.String propertyName)
Checks whether a specific property exists. |
void |
setValue(java.lang.String propertyName,
T value)
Sets the value of a specific property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapSource(java.util.Map<java.lang.String,T> data)
data - Map to use as data provider| Method Detail |
|---|
public java.lang.Object getValue(java.lang.String propertyName)
IValueSource
getValue in interface IValueSource<T>propertyName - Name of the requested property. Assumed to exist.
public boolean propertyExists(java.lang.String propertyName)
IValueSource
propertyExists in interface IValueSource<T>propertyName - Name of the requested property
public ClassPreferences getPropertyClass(java.lang.String propertyName)
IValueSource
getPropertyClass in interface IValueSource<T>propertyName - Name of the property
public java.util.Set<java.lang.String> getPropertyNames()
IValueSource
getPropertyNames in interface IValueSource<T>
public void setValue(java.lang.String propertyName,
T value)
IValueSource
setValue in interface IValueSource<T>propertyName - Name of the requested property.value - Property value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||