jp.develop.common.util.amf.beans
Interface IProperty


public interface IProperty

Interface for bean's property.

Author:
Waki Takeya

Method Summary
 String getPropertyName()
          Get property name.
 Type getPropertyType()
          Get property actual type.
 Type getReadType()
          Get property's read actual type.
 Object getValue(Object instance)
          Get value of this property.
 Type getWriteType()
          Get property's write actual type.
 boolean isReadable()
          Is this readable property?
 boolean isWritable()
          Is this writable property?
 void setValue(Object instance, Object value)
          Set value of this property.
 

Method Detail

getPropertyName

String getPropertyName()
Get property name.

Returns:
Property name.

getPropertyType

Type getPropertyType()
Get property actual type. If read property type and write property type is not same, return read property type.

Returns:
Property actual type.

getValue

Object getValue(Object instance)
Get value of this property.

Parameters:
instance - The instance to get property value.
Returns:
The value of property.

getReadType

Type getReadType()
Get property's read actual type. This is the type of getter/field.

Returns:
The type of property for getting value.

setValue

void setValue(Object instance,
              Object value)
Set value of this property.

Parameters:
instance - The instance to be set property value.
value - The value to be set.

getWriteType

Type getWriteType()
Get property's write actual type. This is the type of setter/field.

Returns:
The type of property for setting value.

isReadable

boolean isReadable()
Is this readable property?

Returns:
true, if it is readable property.

isWritable

boolean isWritable()
Is this writable property?

Returns:
true, if it is writable property.