public interface GriffonModelClass extends GriffonClass
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TRAILING
"Model"
|
static java.lang.String |
TYPE
"model"
|
STANDARD_PROPERTIES
Modifier and Type | Method and Description |
---|---|
java.lang.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.
|
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 |
setModelPropertyValue(GriffonModel model,
java.lang.String propertyName,
java.lang.Object value)
Sets a value of a model property.
|
getApplication, getArtifactType, getClazz, getFullName, getLogicalPropertyName, getName, getNaturalName, getPackageName, getPropertyName, getPropertyValue, getPropertyValue, getShortName, hasProperty
static final java.lang.String TYPE
static final java.lang.String TRAILING
@Nonnull java.lang.String[] getPropertyNames()
@Nonnull java.lang.String[] getEventNames()
void setModelPropertyValue(@Nonnull GriffonModel model, @Nonnull java.lang.String propertyName, @Nullable java.lang.Object value)
model
- the model to be affectedpropertyName
- the name of the property to updatevalue
- new value@Nullable java.lang.Object getModelPropertyValue(@Nonnull GriffonModel model, @Nonnull java.lang.String propertyName)
model
- the model to querypropertyName
- the name of the property to query