Kodo 4.2.0. generated on July 28 2008

kodo.beans
Interface FieldAccessor

All Known Implementing Classes:
StateClassAccessor.StateFieldAccessor

public interface FieldAccessor

Accessor for setting and getting the value of a field.


Method Summary
 boolean equals(Object other)
          Equality depends on the owning ClassAccessor and name and type of the field.
 ClassAccessor getClassAccessor()
          The owning ClassAccessor for this field.
 String getName()
          The name of the field.
 Class getType()
          The type of this field.
 Object getValue(Object forObject)
          Returns the field's value for the specified object.
 int hashCode()
          Equality depends on the owning ClassAccessor and name and type of the field.
 boolean isEditable(Object forObject)
          Returns true if this field is editable; else returns false.
 void setValue(Object forObject, Object value)
          Set the value of the specified field.
 

Method Detail

getName

String getName()
The name of the field.


getClassAccessor

ClassAccessor getClassAccessor()
The owning ClassAccessor for this field.


getType

Class getType()
The type of this field.


getValue

Object getValue(Object forObject)
Returns the field's value for the specified object.

Parameters:
forObject - the object for which to return the field value

setValue

void setValue(Object forObject,
              Object value)
Set the value of the specified field.

Parameters:
forObject - the object whose field should be set
value - the new value to apply to the field

isEditable

boolean isEditable(Object forObject)
Returns true if this field is editable; else returns false.

Parameters:
forObject - the object whose field may be set

equals

boolean equals(Object other)
Equality depends on the owning ClassAccessor and name and type of the field.

Overrides:
equals in class Object

hashCode

int hashCode()
Equality depends on the owning ClassAccessor and name and type of the field.

Overrides:
hashCode in class Object

Kodo 4.2.0. generated on July 28 2008

Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.