Package groovy.model
Class PropertyModel
- java.lang.Object
-
- groovy.model.PropertyModel
-
- All Implemented Interfaces:
NestedValueModel
,ValueModel
public class PropertyModel extends java.lang.Object implements ValueModel, NestedValueModel
Represents a property of a value as a model.
-
-
Constructor Summary
Constructors Constructor Description PropertyModel(ValueModel sourceModel, java.lang.String property)
PropertyModel(ValueModel sourceModel, java.lang.String property, java.lang.Class type)
PropertyModel(ValueModel sourceModel, java.lang.String property, java.lang.Class type, boolean editable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getProperty()
ValueModel
getSourceModel()
java.lang.Class
getType()
java.lang.Object
getValue()
boolean
isEditable()
void
setValue(java.lang.Object value)
-
-
-
Constructor Detail
-
PropertyModel
public PropertyModel(ValueModel sourceModel, java.lang.String property)
-
PropertyModel
public PropertyModel(ValueModel sourceModel, java.lang.String property, java.lang.Class type)
-
PropertyModel
public PropertyModel(ValueModel sourceModel, java.lang.String property, java.lang.Class type, boolean editable)
-
-
Method Detail
-
getProperty
public java.lang.String getProperty()
-
getSourceModel
public ValueModel getSourceModel()
- Specified by:
getSourceModel
in interfaceNestedValueModel
-
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interfaceValueModel
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValue
in interfaceValueModel
-
getType
public java.lang.Class getType()
- Specified by:
getType
in interfaceValueModel
-
isEditable
public boolean isEditable()
- Specified by:
isEditable
in interfaceValueModel
-
-