public class DefaultGriffonModelClass extends DefaultGriffonClass implements GriffonModelClass
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
propertiesCache |
eventsCache, logTRAILING, TYPESTANDARD_PROPERTIES| Constructor and Description |
|---|
DefaultGriffonModelClass(GriffonApplication application,
java.lang.Class<?> clazz) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getModelPropertyValue(GriffonModel model,
java.lang.String propertyName)
Returns the value of a model property.
|
java.lang.String[] |
getPropertyNames()
Matches all public properties that are not event handlers nor
have a Closure as their value.
|
void |
resetCaches() |
void |
setModelPropertyValue(GriffonModel model,
java.lang.String propertyName,
java.lang.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
java.lang.Class<?> clazz)
public void resetCaches()
resetCaches in class AbstractGriffonClass@Nonnull public java.lang.String[] getPropertyNames()
GriffonModelClassgetPropertyNames in interface GriffonModelClasspublic void setModelPropertyValue(@Nonnull
GriffonModel model,
@Nonnull
java.lang.String propertyName,
@Nullable
java.lang.Object value)
GriffonModelClasssetModelPropertyValue in interface GriffonModelClassmodel - the model to be affectedpropertyName - the name of the property to updatevalue - new value@Nullable
public java.lang.Object getModelPropertyValue(@Nonnull
GriffonModel model,
@Nonnull
java.lang.String propertyName)
GriffonModelClassgetModelPropertyValue in interface GriffonModelClassmodel - the model to querypropertyName - the name of the property to query