public class DefaultGriffonModelClass extends DefaultGriffonClass implements GriffonModelClass
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
propertiesCache |
eventsCache, log
TRAILING, TYPE
STANDARD_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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getEventNames
getApplication, getArtifactType, getClazz, getFullName, getLogicalPropertyName, getName, getNaturalName, getPackageName, getPropertyName, getPropertyValue, getPropertyValue, getShortName, hasProperty
public DefaultGriffonModelClass(@Nonnull GriffonApplication application, @Nonnull Class<?> clazz)
public void resetCaches()
resetCaches
in class AbstractGriffonClass
@Nonnull public String[] getPropertyNames()
GriffonModelClass
getPropertyNames
in interface GriffonModelClass
public void setModelPropertyValue(@Nonnull GriffonModel model, @Nonnull String propertyName, @Nullable Object value)
GriffonModelClass
setModelPropertyValue
in interface GriffonModelClass
model
- the model to be affectedpropertyName
- the name of the property to updatevalue
- new value@Nullable public Object getModelPropertyValue(@Nonnull GriffonModel model, @Nonnull String propertyName)
GriffonModelClass
getModelPropertyValue
in interface GriffonModelClass
model
- the model to querypropertyName
- the name of the property to query