org.nakedobjects.object.reflect
Class OneToManyAssociation
java.lang.Object
org.nakedobjects.object.reflect.Member
org.nakedobjects.object.reflect.Field
org.nakedobjects.object.reflect.Association
org.nakedobjects.object.reflect.OneToManyAssociation
- public class OneToManyAssociation
- extends Association
| 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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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