org.nakedobjects.object.reflect
Class Field

java.lang.Object
  extended byorg.nakedobjects.object.reflect.Member
      extended byorg.nakedobjects.object.reflect.Field
Direct Known Subclasses:
Association, Value

public abstract class Field
extends Member


Nested Class Summary
 
Nested classes inherited from class org.nakedobjects.object.reflect.Member
Member.DefaultAbout
 
Field Summary
 
Fields inherited from class org.nakedobjects.object.reflect.Member
DEFAULT
 
Constructor Summary
Field(java.lang.String name, java.lang.Class type, java.lang.reflect.Method get, java.lang.reflect.Method about, boolean isDerived)
           
 
Method Summary
abstract  Naked get(NakedObject fromObject)
          call the accessor method on the specified object to return the data it holds
 About getAbout(NakedObject object)
           
 java.lang.String getLabel(NakedObject object)
           
 java.lang.Class getType()
          return the object type, as a Class object, that the method returns.
 boolean isAggregate()
           
 boolean isDerived()
          Returns true if this attribute is derived - is calculated from other data in the object - and should therefore not be editable nor persisted.
 boolean isValue()
           
 
Methods inherited from class org.nakedobjects.object.reflect.Member
getAboutMethod, getMemberMethod, getName, getObjectStore, hasAbout, init, isDistributed, isProxied, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field(java.lang.String name,
             java.lang.Class type,
             java.lang.reflect.Method get,
             java.lang.reflect.Method about,
             boolean isDerived)
Method Detail

get

public abstract Naked get(NakedObject fromObject)
call the accessor method on the specified object to return the data it holds


getAbout

public About getAbout(NakedObject object)

getLabel

public java.lang.String getLabel(NakedObject object)

getType

public java.lang.Class getType()
return the object type, as a Class object, that the method returns.


isAggregate

public boolean isAggregate()
Returns:
boolean

isDerived

public boolean isDerived()
Returns true if this attribute is derived - is calculated from other data in the object - and should therefore not be editable nor persisted.


isValue

public boolean isValue()
Returns:
boolean