public class OneToOneActionParameterImpl extends ObjectActionParameterAbstract implements OneToOneActionParameter
ObjectActionParameter.Filters| Constructor and Description |
|---|
OneToOneActionParameterImpl(int index,
ObjectActionImpl actionImpl,
TypedHolder peer) |
| Modifier and Type | Method and Description |
|---|---|
ObjectAdapter |
get(ObjectAdapter owner)
Gets the proposed value of the
Instance (downcast as a
MutableProposed, wrapping the proposed value into a
ObjectAdapter. |
FeatureType |
getFeatureType() |
Instance |
getInstance(ObjectAdapter adapter)
|
boolean |
isObject()
Subclasses should override either
ObjectActionParameterAbstract.isObject() or
ObjectActionParameterAbstract.isCollection(). |
void |
set(ObjectAdapter owner,
ObjectAdapter newValue)
Sets the proposed value of the
Instance (downcast as a
MutableProposed, unwrapped the proposed value from a
ObjectAdapter. |
addFacet, addFacet, argsForDefaultOrChoices, containsDoOpFacet, containsFacet, createProposedArgumentInteractionContext, doCoerceProposedValue, getAction, getAdapterMap, getAuthenticationSession, getAuthenticationSessionProvider, getAutoComplete, getAutoCompleteMinLength, getChoices, getDefault, getDescription, getFacet, getFacets, getFacetTypes, getId, getIdentifier, getName, getNumber, getPeer, getQuerySubmitter, getSpecification, getSpecificationLookup, hasAutoComplete, hasChoices, isCollection, isOptional, isUsable, isValid, removeFacet, removeFacet, targetForDefaultOrChoicesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateProposedArgumentInteractionContext, getAction, getAutoComplete, getAutoCompleteMinLength, getChoices, getDefault, getName, getNumber, hasAutoComplete, hasChoices, isCollection, isOptional, isValidgetDescription, getId, getSpecificationgetIdentifieraddFacet, addFacet, containsDoOpFacet, containsFacet, getFacet, getFacets, getFacetTypes, removeFacet, removeFacetpublic OneToOneActionParameterImpl(int index, ObjectActionImpl actionImpl, TypedHolder peer)
public FeatureType getFeatureType()
getFeatureType in interface Specificationpublic boolean isObject()
ObjectActionParameterAbstractObjectActionParameterAbstract.isObject() or
ObjectActionParameterAbstract.isCollection().isObject in interface ObjectActionParameterisObject in class ObjectActionParameterAbstractpublic Instance getInstance(ObjectAdapter adapter)
SpecificationInstance of this Specification with respect to
the provided ObjectAdapter.
For example, if the Specification is a
OneToOneAssociation, then is an Instance implementation
representing the { ObjectAdapter/ OneToOneAssociation
tuple.
Implementations are expected to use a double-dispatch back to the
provided ObjectAdapter (passing themselves as a parameter), using
ObjectAdapter.getInstance(Specification).
Note: this method may throw an UnsupportedOperationException; see
ObjectAdapter.getInstance(Specification) for details.
getInstance in interface Specificationpublic ObjectAdapter get(ObjectAdapter owner)
Instance (downcast as a
MutableProposed, wrapping the proposed value into a
ObjectAdapter.get in interface CurrentHolderpublic void set(ObjectAdapter owner, ObjectAdapter newValue)
Instance (downcast as a
MutableProposed, unwrapped the proposed value from a
ObjectAdapter.Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.