|
Griffon 0.9.5-rc2 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
griffon.core.ApplicationHandlergriffon.core.GriffonClass
griffon.core.GriffonModelClass
public interface GriffonModelClass extends GriffonClass
Represents a Model class in Griffon.
| Field Summary | |
|---|---|
String |
TRAILING
"Model" |
String |
TYPE
"model" |
| Fields inherited from interface GriffonClass | |
|---|---|
| STANDARD_PROPERTIES |
| Method Summary | |
|---|---|
String[]
|
getEventNames()
Matches all public methods and closure properties whose name matches the event handler convention, i.e, starts with "on" and is followed by at least one uppercase character. |
Object
|
getModelPropertyValue(GriffonModel model, String propertyName)
Returns the value of a model property. |
String[]
|
getPropertyNames()
Matches all public properties that are not event handlers nor have a Closure as their value. |
void
|
setModelPropertyValue(GriffonModel model, String propertyName, Object value)
Sets a value of a model property. |
| Methods inherited from interface GriffonClass | |
|---|---|
| getArtifactType, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPropertyName, getPropertyValue, getPropertyValue, getReferenceInstance, getShortName, hasProperty, newInstance |
| Methods inherited from interface ApplicationHandler | |
|---|---|
| getApp |
| Field Detail |
|---|
public String TRAILING
public String TYPE
| Method Detail |
|---|
public String[] getEventNames()
public Object getModelPropertyValue(GriffonModel model, String propertyName)
model - the model to querypropertyName - the name of the property to query
public String[] getPropertyNames()
public void setModelPropertyValue(GriffonModel model, String propertyName, Object value)
model - the model to be affectedpropertyName - the name of the property to updatevalue - new value
Groovy Documentation