|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NakedObjectAssociation
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 |
|---|
java.lang.String getBusinessKeyName()
NakedObject getDefault(NakedObject nakedObject)
void toDefault(NakedObject target)
NakedObject[] getChoices(NakedObject object)
boolean isNotDerived()
boolean isEmpty(NakedObject target)
true if this field on the specified object is deemed to be empty, or has no
content.
boolean isMandatory()
boolean hasChoices()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||