|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NakedObjectActionParameter
Analogous to NakedObjectAssociation.
| Method Summary | |
|---|---|
ActionArgumentContext |
createProposedArgumentInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
NakedObject targetObject,
NakedObject[] args,
int position)
|
NakedObjectAction |
getAction()
Owning NakedObjectAction. |
NakedObject[] |
getChoices(NakedObject nakedObject)
|
NakedObject |
getDefault(NakedObject nakedObject)
|
int |
getNumber()
Returns the 0-based index to this parameter. |
boolean |
isCollection()
Only for symmetry with NakedObjectAssociation, however since the NOF does not support
collections as actions all implementations should return false. |
boolean |
isObject()
If true then can cast to a OneToOneActionParameter. |
boolean |
isOptional()
Returns a flag indicating if it can be left unset when the action can be invoked. |
java.lang.String |
isValid(NakedObject nakedObject,
java.lang.Object proposedValue)
Whether proposed value for this parameter is valid. |
| 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 |
|---|
boolean isObject()
OneToOneActionParameter.
Either this or isCollection() will be true.
Design note: modelled after NakedObjectAssociation#isObject()
boolean isCollection()
NakedObjectAssociation, however since the NOF does not support
collections as actions all implementations should return false.
NakedObjectAction getAction()
NakedObjectAction.
boolean isOptional()
int getNumber()
ActionArgumentContext createProposedArgumentInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
NakedObject targetObject,
NakedObject[] args,
int position)
java.lang.String isValid(NakedObject nakedObject,
java.lang.Object proposedValue)
nakedObject - proposedValue -
NakedObject[] getChoices(NakedObject nakedObject)
NakedObject getDefault(NakedObject nakedObject)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||