|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.planetalia.dynject.sources.ObjectSource
public class ObjectSource
Retrieves property values from an object instance.
| Constructor Summary | |
|---|---|
ObjectSource(java.lang.Object instance)
Creates an ObjectSource using the specified object as the underlying property holder |
|
ObjectSource(java.lang.Object instance,
PropertySelectionPolicy propertySelectionPolicy)
Creates an ObjectSource using the specified object as the underlying property holder and with a specific access policy |
|
| 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. |
PropertySelectionPolicy |
getPropertySelectionPolicy()
|
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 |
setPropertySelectionPolicy(PropertySelectionPolicy propertySelectionPolicy)
|
void |
setValue(java.lang.String propertyName,
java.lang.Object 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 ObjectSource(java.lang.Object instance)
instance - Object to use for extracting property values
public ObjectSource(java.lang.Object instance,
PropertySelectionPolicy propertySelectionPolicy)
instance - Object to use for extracting property valuespropertySelectionPolicy - selectionPolicy for reading properties| Method Detail |
|---|
public PropertySelectionPolicy getPropertySelectionPolicy()
public void setPropertySelectionPolicy(PropertySelectionPolicy propertySelectionPolicy)
public java.lang.Object getValue(java.lang.String propertyName)
IValueSource
getValue in interface IValueSource<java.lang.Object>propertyName - Name of the requested property. Assumed to exist.
public boolean propertyExists(java.lang.String propertyName)
IValueSource
propertyExists in interface IValueSource<java.lang.Object>propertyName - Name of the requested property
public ClassPreferences getPropertyClass(java.lang.String propertyName)
IValueSource
getPropertyClass in interface IValueSource<java.lang.Object>propertyName - Name of the property
public java.util.Set<java.lang.String> getPropertyNames()
IValueSource
getPropertyNames in interface IValueSource<java.lang.Object>
public void setValue(java.lang.String propertyName,
java.lang.Object value)
IValueSource
setValue in interface IValueSource<java.lang.Object>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 | |||||||||