org.nakedobjects.object.reflect
Class OneToManyAssociation

java.lang.Object
  extended byorg.nakedobjects.object.reflect.Member
      extended byorg.nakedobjects.object.reflect.Field
          extended byorg.nakedobjects.object.reflect.Association
              extended byorg.nakedobjects.object.reflect.OneToManyAssociation

public class OneToManyAssociation
extends Association


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.Association
addMethod, removeMethod, setMethod
 
Fields inherited from class org.nakedobjects.object.reflect.Member
DEFAULT
 
Constructor Summary
OneToManyAssociation(java.lang.String name, java.lang.Class type, java.lang.reflect.Method get, java.lang.reflect.Method set, java.lang.reflect.Method add, java.lang.reflect.Method remove, java.lang.reflect.Method about)
           
 
Method Summary
 java.lang.String getLabel(NakedObject object)
           
 void init(NakedObject inObject, java.lang.Object setValue)
          Set the data in an NakedObject.
 boolean isAggregate()
           
 void remove(NakedObject inObject, NakedObject element)
          Remove an associated object (the element) from the specified NakedObject in the association field represented by this object.
 void set(NakedObject inObject, java.lang.Object setValue)
          Set the data in an NakedObject.
 java.lang.String toString()
           
 
Methods inherited from class org.nakedobjects.object.reflect.Association
get, getAbout, getLabel, hasAddMethod
 
Methods inherited from class org.nakedobjects.object.reflect.Field
getAbout, getType, isDerived, isValue
 
Methods inherited from class org.nakedobjects.object.reflect.Member
getAboutMethod, getMemberMethod, getName, getObjectStore, hasAbout, init, isDistributed, isProxied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OneToManyAssociation

public OneToManyAssociation(java.lang.String name,
                            java.lang.Class type,
                            java.lang.reflect.Method get,
                            java.lang.reflect.Method set,
                            java.lang.reflect.Method add,
                            java.lang.reflect.Method remove,
                            java.lang.reflect.Method about)
Method Detail

isAggregate

public boolean isAggregate()
Overrides:
isAggregate in class Field
Returns:
boolean

getLabel

public java.lang.String getLabel(NakedObject object)
Overrides:
getLabel in class Association

init

public void init(NakedObject inObject,
                 java.lang.Object setValue)
Description copied from class: Association
Set the data in an NakedObject. Passes in an existing object to for the EO to reference.

Overrides:
init in class Association

remove

public void remove(NakedObject inObject,
                   NakedObject element)
Remove an associated object (the element) from the specified NakedObject in the association field represented by this object.

Overrides:
remove in class Association

set

public void set(NakedObject inObject,
                java.lang.Object setValue)
Description copied from class: Association
Set the data in an NakedObject. Passes in an existing object to for the EO to reference.

Overrides:
set in class Association

toString

public java.lang.String toString()
Overrides:
toString in class Association