org.nakedobjects.metamodel.specloader.internal.peer
Class JavaNakedObjectAssociationPeer
java.lang.Object
org.nakedobjects.metamodel.facets.FacetHolderImpl
org.nakedobjects.metamodel.specloader.internal.peer.JavaNakedObjectMemberPeer
org.nakedobjects.metamodel.specloader.internal.peer.JavaNakedObjectAssociationPeer
- All Implemented Interfaces:
- FacetHolder, Identified, NakedObjectAssociationPeer, NakedObjectMemberPeer
- Direct Known Subclasses:
- JavaOneToManyAssociationPeer, JavaOneToOneAssociationPeer
public abstract class JavaNakedObjectAssociationPeer
- extends JavaNakedObjectMemberPeer
- implements NakedObjectAssociationPeer
|
Field Summary |
protected java.lang.Class<?> |
type
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected java.lang.Class<?> type
JavaNakedObjectAssociationPeer
public JavaNakedObjectAssociationPeer(Identifier identifier,
java.lang.Class<?> returnType,
boolean oneToMany,
SpecificationLoader specificationLoader)
getSpecification
public NakedObjectSpecification getSpecification()
- return the object type, as a Class object, that the method returns.
- Specified by:
getSpecification in interface NakedObjectAssociationPeer
setType
public void setType(java.lang.Class<?> type)
isOneToMany
public final boolean isOneToMany()
- Description copied from interface:
NakedObjectAssociationPeer
- If this is a collection.
Opposite of NakedObjectAssociationPeer.isOneToOne().
- Specified by:
isOneToMany in interface NakedObjectAssociationPeer
isOneToOne
public final boolean isOneToOne()
- Description copied from interface:
NakedObjectAssociationPeer
- If this is a scalar association, representing (in old terminology) a reference to another entity or a
value.
Opposite of NakedObjectAssociationPeer.isOneToMany().
- Specified by:
isOneToOne in interface NakedObjectAssociationPeer
getSpecificationLoader
protected SpecificationLoader getSpecificationLoader()
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.