public interface ObjectActionParameter extends ObjectFeature, CurrentHolder
ObjectAssociation.| Modifier and Type | Interface and Description |
|---|---|
static class |
ObjectActionParameter.Filters |
| Modifier and Type | Method and Description |
|---|---|
ActionArgumentContext |
createProposedArgumentInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
ObjectAdapter targetObject,
ObjectAdapter[] args,
int position) |
ObjectAction |
getAction()
Owning
ObjectAction. |
ObjectAdapter[] |
getAutoComplete(ObjectAdapter adapter,
String searchArg)
Returns a list of possible references/values for this parameter, which the
user can choose from, based on the input search argument.
|
int |
getAutoCompleteMinLength() |
ObjectAdapter[] |
getChoices(ObjectAdapter adapter,
ObjectAdapter[] argumentsIfAvailable)
Returns a list of possible references/values for this parameter, which the
user can choose from.
|
ObjectAdapter |
getDefault(ObjectAdapter adapter) |
String |
getName()
Returns the name of this parameter.
|
int |
getNumber()
Returns the 0-based index to this parameter.
|
boolean |
hasAutoComplete()
Whether there is an autoComplete provided (eg autoCompleteXxx supporting
method) for the parameter.
|
boolean |
hasChoices()
Whether there are any choices provided (eg choicesXxx supporting
method) for the parameter.
|
boolean |
isCollection()
Only for symmetry with
ObjectAssociation, 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.
|
String |
isValid(ObjectAdapter adapter,
Object proposedValue,
org.apache.isis.applib.profiles.Localization localization)
Whether proposed value for this parameter is valid.
|
getDescription, getId, getSpecificationgetFeatureType, getInstancegetIdentifieraddFacet, addFacet, containsDoOpFacet, containsFacet, getFacet, getFacets, getFacetTypes, removeFacet, removeFacetgetboolean isObject()
OneToOneActionParameter.
Either this or isCollection() will be true.
Design note: modelled after ObjectAssociation#isNotCollection()
boolean isCollection()
ObjectAssociation, however since the NOF
does not support collections as actions all implementations should return
false.ObjectAction getAction()
ObjectAction.boolean isOptional()
int getNumber()
String getName()
Because Java's reflection API does not allow us to access the code name of the parameter, we have to do figure out the name of the parameter ourselves:
NamedFacet associated with this parameter then
we infer a name from this, eg "First Name" becomes "firstName".
getName in interface ObjectFeatureIdentifiedHolder.getIdentifier()ActionArgumentContext createProposedArgumentInteractionContext(AuthenticationSession session, InteractionInvocationMethod invocationMethod, ObjectAdapter targetObject, ObjectAdapter[] args, int position)
boolean hasAutoComplete()
ObjectAdapter[] getAutoComplete(ObjectAdapter adapter, String searchArg)
int getAutoCompleteMinLength()
boolean hasChoices()
ObjectAdapter[] getChoices(ObjectAdapter adapter, ObjectAdapter[] argumentsIfAvailable)
ObjectAdapter getDefault(ObjectAdapter adapter)
String isValid(ObjectAdapter adapter, Object proposedValue, org.apache.isis.applib.profiles.Localization localization)
adapter - proposedValue - Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.