All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nakedobjects.metamodel.specloader.internal.peer.NakedObjectAssociationPeer Maven / Gradle / Ivy

The newest version!
package org.nakedobjects.metamodel.specloader.internal.peer;

import org.nakedobjects.metamodel.spec.NakedObjectSpecification;


/**
 * Additional reflective details about field members.
 * 
 * @see org.nakedobjects.metamodel.specloader.internal.peer.NakedObjectMemberPeer
 */
public interface NakedObjectAssociationPeer extends NakedObjectMemberPeer {

    /**
     * The {@link NakedObjectSpecification specification} of the associated object if {@link #isOneToOne()} is
     * true, or, the type of the associated object (rather than a Vector.class, say),
     * if {@link #isOneToMany()} is true.
     */
    NakedObjectSpecification getSpecification();

    /**
     * If this is a scalar association, representing (in old terminology) a reference to another entity or a
     * value.
     * 
     * 

* Opposite of {@link #isOneToMany()}. */ public boolean isOneToOne(); /** * If this is a collection. * *

* Opposite of {@link #isOneToOne()}. */ public boolean isOneToMany(); } // Copyright (c) Naked Objects Group Ltd.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy