|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.grails.commons.metaclass.AbstractDynamicProperty
public abstract class AbstractDynamicProperty
An abstract class for implementors of dynamic getters to implement
| Constructor Summary | |
|---|---|
AbstractDynamicProperty(String propertyName)
|
|
| Method Summary | |
|---|---|
abstract Object |
get(Object object)
Call the getter on the given object |
String |
getPropertyName()
|
boolean |
isPropertyMatch(String propertyName)
Whether the target class contains the specified property |
abstract void |
set(Object object,
Object newValue)
Call the setter on the given object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDynamicProperty(String propertyName)
| Method Detail |
|---|
public boolean isPropertyMatch(String propertyName)
DynamicProperty
isPropertyMatch in interface DynamicPropertypropertyName - The name of the property
public String getPropertyName()
getPropertyName in interface DynamicPropertypublic abstract Object get(Object object)
DynamicProperty
get in interface DynamicPropertyobject - The target object
public abstract void set(Object object,
Object newValue)
DynamicProperty
set in interface DynamicPropertyobject - The target objectnewValue - The new value of the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||