public class ObjectActionParameterParseable extends ObjectActionParameterAbstract implements ParseableEntryActionParameter
ObjectActionParameter.Filters| Constructor and Description |
|---|
ObjectActionParameterParseable(int index,
ObjectActionImpl action,
TypedHolder peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrap()
Determines if a multi-line value can be wrapped when displayed.
|
protected ObjectAdapter |
doCoerceProposedValue(ObjectAdapter adapter,
Object proposedValue,
org.apache.isis.applib.profiles.Localization localization)
Optional hook for parsing.
|
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)
|
int |
getMaximumLength()
Returns the maximum number of characters for a value of this type.
|
int |
getNoLines()
Returns the number of lines for a multi-line value.
|
int |
getTypicalLineLength()
The typical length of each line for this value, as a number of
characters.
|
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, getAction, getAdapterMap, getAuthenticationSession, getAuthenticationSessionProvider, getAutoComplete, getAutoCompleteMinLength, getChoices, getDefault, getDescription, getFacet, getFacets, getFacetTypes, getId, getIdentifier, getName, getNumber, getPeer, getQuerySubmitter, getSpecification, getSpecificationLookup, hasAutoComplete, hasChoices, isCollection, isObject, 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, isObject, isOptional, isValidgetDescription, getId, getSpecificationgetIdentifieraddFacet, addFacet, containsDoOpFacet, containsFacet, getFacet, getFacets, getFacetTypes, removeFacet, removeFacetpublic ObjectActionParameterParseable(int index, ObjectActionImpl action, TypedHolder peer)
public int getNoLines()
ParseableEntryFeaturegetNoLines in interface ParseableEntryFeaturepublic boolean canWrap()
ParseableEntryFeaturecanWrap in interface ParseableEntryFeaturepublic int getMaximumLength()
ParseableEntryFeaturegetMaximumLength in interface ParseableEntryFeaturepublic int getTypicalLineLength()
ParseableEntryFeaturegetTypicalLineLength in interface ParseableEntryFeatureprotected ObjectAdapter doCoerceProposedValue(ObjectAdapter adapter, Object proposedValue, org.apache.isis.applib.profiles.Localization localization)
ObjectActionParameterAbstractdoCoerceProposedValue 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.public FeatureType getFeatureType()
getFeatureType in interface SpecificationCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.