public class DefaultGriffonModelClass extends DefaultGriffonClass implements GriffonModelClass
| Modifier and Type | Field and Description | 
|---|---|
| protected Set<String> | propertiesCache | 
eventsCache, logTRAILING, TYPESTANDARD_PROPERTIES| Constructor and Description | 
|---|
| DefaultGriffonModelClass(GriffonApplication application,
                        Class<?> clazz) | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 | resetCaches() | 
| void | setModelPropertyValue(GriffonModel model,
                     String propertyName,
                     Object value)Sets a value of a model property. | 
equals, getApplication, getArtifactType, getClazz, getEventNames, getFullName, getLogicalPropertyName, getName, getNaturalName, getPackageName, getPropertiesWithFields, getPropertyName, getPropertyOrStaticPropertyOrFieldValue, getPropertyType, getPropertyValue, getPropertyValue, getShortName, hashCode, hasProperty, isReadableProperty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetEventNamesgetApplication, getArtifactType, getClazz, getFullName, getLogicalPropertyName, getName, getNaturalName, getPackageName, getPropertyName, getPropertyValue, getPropertyValue, getShortName, hasPropertypublic DefaultGriffonModelClass(@Nonnull GriffonApplication application, @Nonnull Class<?> clazz)
public void resetCaches()
resetCaches in class AbstractGriffonClass@Nonnull public String[] getPropertyNames()
GriffonModelClassgetPropertyNames in interface GriffonModelClasspublic void setModelPropertyValue(@Nonnull GriffonModel model, @Nonnull String propertyName, @Nullable Object value)
GriffonModelClasssetModelPropertyValue in interface GriffonModelClassmodel - the model to be affectedpropertyName - the name of the property to updatevalue - new value@Nullable public Object getModelPropertyValue(@Nonnull GriffonModel model, @Nonnull String propertyName)
GriffonModelClassgetModelPropertyValue in interface GriffonModelClassmodel - the model to querypropertyName - the name of the property to query