rcf.core.framework.component
Class ReflectedProperty.Default

java.lang.Object
  extended by rcf.core.framework.component.ReflectedProperty.Default
All Implemented Interfaces:
ReflectedBindable<DynamicProperty>, ReflectedProperty
Enclosing interface:
ReflectedProperty

public static final class ReflectedProperty.Default
extends Object
implements ReflectedProperty

TODO: Javadoc

TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString

Version:
$Revision: 1.3 $
Author:
Greg Gibeling

Nested Class Summary
 
Nested classes/interfaces inherited from interface rcf.core.framework.component.ReflectedProperty
ReflectedProperty.Default
 
Field Summary
protected  ReflectedComponent component
          TODO: Javadoc
protected  Field field
          TODO: Javadoc
protected  Method get
          TODO: Javadoc
protected  PropertyMode mode
          TODO: Javadoc
protected  String name
          TODO: Javadoc
protected  Method property
          TODO: Javadoc
protected  Method set
          TODO: Javadoc
protected  Type type
          TODO: Javadoc
protected  PropertyUse use
          TODO: Javadoc
 
Constructor Summary
ReflectedProperty.Default(ReflectedComponent _component, Type _type, String _name, PropertyUse _use, PropertyMode _mode, Method _get, Method _set, Field _field, Method _property)
          TODO: Javadoc
 
Method Summary
 DynamicProperty bind(Object o)
          TODO: Javadoc Return a dynamic bound interface representing this reflected bindable bound to the specified object, assuming the object is an instance of the appropriate reflected component.
 ReflectedComponent component()
          TODO: Javadoc
 PropertyMode mode()
          TODO: Javadoc Determine if this property is readable, writeable, neither or both.
 String name()
          TODO: Javadoc The name of the property this object represents.
 Type type()
          TODO: Javadoc The type of this property
 PropertyUse use()
          TODO: Javadoc The use of this property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

protected final ReflectedComponent component
TODO: Javadoc


type

protected final Type type
TODO: Javadoc


name

protected String name
TODO: Javadoc


use

protected final PropertyUse use
TODO: Javadoc


mode

protected final PropertyMode mode
TODO: Javadoc


get

protected Method get
TODO: Javadoc


set

protected Method set
TODO: Javadoc


field

protected Field field
TODO: Javadoc


property

protected Method property
TODO: Javadoc

Constructor Detail

ReflectedProperty.Default

public ReflectedProperty.Default(ReflectedComponent _component,
                                 Type _type,
                                 String _name,
                                 PropertyUse _use,
                                 PropertyMode _mode,
                                 Method _get,
                                 Method _set,
                                 Field _field,
                                 Method _property)
TODO: Javadoc

Parameters:
_component -
_type -
_name -
_use -
_mode -
_get -
_set -
_field -
Method Detail

bind

public DynamicProperty bind(Object o)
Description copied from interface: ReflectedBindable
TODO: Javadoc Return a dynamic bound interface representing this reflected bindable bound to the specified object, assuming the object is an instance of the appropriate reflected component. ReflectedComponent.isInstance(Object), component().isInstance(o) must be true.

Specified by:
bind in interface ReflectedBindable<DynamicProperty>
Returns:

component

public ReflectedComponent component()
Description copied from interface: ReflectedBindable
TODO: Javadoc

Specified by:
component in interface ReflectedBindable<DynamicProperty>
Returns:

mode

public PropertyMode mode()
Description copied from interface: ReflectedProperty
TODO: Javadoc Determine if this property is readable, writeable, neither or both. Notice that the existence of a StaticGetMethod or StaticSetMethod annotated method may override the value specified here. It is an error to specify that a final field is writeable, and it is a warning to specify that e.g. a field is not readable when it has a StaticGetMethod method or not writeable with a StaticSetMethod method.

Specified by:
mode in interface ReflectedProperty

name

public String name()
Description copied from interface: ReflectedProperty
TODO: Javadoc The name of the property this object represents.

Specified by:
name in interface ReflectedProperty

type

public Type type()
Description copied from interface: ReflectedProperty
TODO: Javadoc The type of this property

Specified by:
type in interface ReflectedProperty
Returns:

use

public PropertyUse use()
Description copied from interface: ReflectedProperty
TODO: Javadoc The use of this property. Must be PropertyType.Option if there are any matching StaticGetMethod or StaticSetMethod annotations.

Specified by:
use in interface ReflectedProperty