groovy.model
Class PropertyModel

java.lang.Object
  extended bygroovy.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.

Version:
$Revision: 1.1 $
Author:
James Strachan

Field Summary
private  java.lang.String property
           
private  ValueModel sourceModel
           
private  java.lang.Class type
           
 
Constructor Summary
PropertyModel(ValueModel sourceModel, java.lang.String property)
           
PropertyModel(ValueModel sourceModel, java.lang.String property, java.lang.Class type)
           
 
Method Summary
 java.lang.String getProperty()
           
 ValueModel getSourceModel()
           
 java.lang.Class getType()
           
 java.lang.Object getValue()
           
 boolean isEditable()
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceModel

private ValueModel sourceModel

property

private java.lang.String property

type

private java.lang.Class type
Constructor Detail

PropertyModel

public PropertyModel(ValueModel sourceModel,
                     java.lang.String property)

PropertyModel

public PropertyModel(ValueModel sourceModel,
                     java.lang.String property,
                     java.lang.Class type)
Method Detail

getProperty

public java.lang.String getProperty()

getSourceModel

public ValueModel getSourceModel()
Specified by:
getSourceModel in interface NestedValueModel

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface ValueModel

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface ValueModel

getType

public java.lang.Class getType()
Specified by:
getType in interface ValueModel

isEditable

public boolean isEditable()
Specified by:
isEditable in interface ValueModel


Copyright © 2003-2005 The Codehaus. All Rights Reserved.