org.nakedobjects.metamodel.spec.feature
Interface NakedObjectAssociation

All Superinterfaces:
CurrentHolder, FacetHolder, Identified, NakedObjectFeature, NakedObjectMember, NamedAndDescribed, Specification, TypedSpecification
All Known Subinterfaces:
OneToManyAssociation, OneToOneAssociation
All Known Implementing Classes:
NakedObjectAssociationAbstract, OneToManyAssociationImpl, OneToOneAssociationImpl

public interface NakedObjectAssociation
extends NakedObjectMember, CurrentHolder

Provides reflective access to a field on a domain object.


Method Summary
 java.lang.String getBusinessKeyName()
          Get the name for the business key, if one has been specified.
 NakedObject[] getChoices(NakedObject object)
          Returns a list of possible references/values for this field, which the user can choose from.
 NakedObject getDefault(NakedObject nakedObject)
          Return the default for this property.
 boolean hasChoices()
          Whether there are any choices provided (eg choicesXxx supporting method) for the association.
 boolean isEmpty(NakedObject target)
          Returns true if this field on the specified object is deemed to be empty, or has no content.
 boolean isMandatory()
          Determines if this field must be complete before the object is in a valid state
 boolean isNotDerived()
          Returns true if not calculated from other data in the object, that is, should be persisted.
 void toDefault(NakedObject target)
          Set the property to it default references/values.
 
Methods inherited from interface org.nakedobjects.metamodel.spec.feature.NakedObjectMember
createUsableInteractionContext, createVisibleInteractionContext, debugData, getHelp, getId, isAction, isAssociation, isOneToManyAssociation, isOneToOneAssociation, isUsable, isVisible
 
Methods inherited from interface org.nakedobjects.metamodel.spec.TypedSpecification
getSpecification
 
Methods inherited from interface org.nakedobjects.metamodel.spec.Specification
getInstance
 
Methods inherited from interface org.nakedobjects.metamodel.spec.identifier.Identified
getIdentifier
 
Methods inherited from interface org.nakedobjects.metamodel.facets.FacetHolder
addFacet, addFacet, containsFacet, getFacet, getFacets, getFacetTypes, removeFacet, removeFacet
 
Methods inherited from interface org.nakedobjects.metamodel.spec.NamedAndDescribed
getDescription, getName
 
Methods inherited from interface org.nakedobjects.metamodel.spec.feature.CurrentHolder
get
 

Method Detail

getBusinessKeyName

java.lang.String getBusinessKeyName()
Get the name for the business key, if one has been specified.


getDefault

NakedObject getDefault(NakedObject nakedObject)
Return the default for this property.


toDefault

void toDefault(NakedObject target)
Set the property to it default references/values.


getChoices

NakedObject[] getChoices(NakedObject object)
Returns a list of possible references/values for this field, which the user can choose from.


isNotDerived

boolean isNotDerived()
Returns true if not calculated from other data in the object, that is, should be persisted.


isEmpty

boolean isEmpty(NakedObject target)
Returns true if this field on the specified object is deemed to be empty, or has no content.


isMandatory

boolean isMandatory()
Determines if this field must be complete before the object is in a valid state


hasChoices

boolean hasChoices()
Whether there are any choices provided (eg choicesXxx supporting method) for the association.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.