|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.specloader.internal.NakedObjectActionParameterAbstract
org.nakedobjects.metamodel.specloader.internal.OneToOneActionParameterImpl
public class OneToOneActionParameterImpl
| Constructor Summary | |
|---|---|
OneToOneActionParameterImpl(int index,
NakedObjectActionImpl actionImpl,
NakedObjectActionParamPeer peer)
|
|
| Method Summary | |
|---|---|
NakedObject |
get(NakedObject owner)
Gets the proposed value of the Instance (downcast as a
MutableProposed, wrapping the proposed value into a NakedObject. |
Instance |
getInstance(NakedObject nakedObject)
Return an Instance of this Specification with respect
to the provided NakedObject. |
boolean |
isObject()
Subclasses should override either NakedObjectActionParameterAbstract.isObject() or NakedObjectActionParameterAbstract.isCollection(). |
java.lang.String |
isValid(NakedObject nakedObject,
java.lang.Object proposedValue)
TODO: need to be able to validate parameters individually, eg if have RegEx annotation; should delegate to the Check framework instead. |
void |
set(NakedObject owner,
NakedObject newValue)
Sets the proposed value of the Instance (downcast as a
MutableProposed, unwrapped the proposed value from a NakedObject. |
| Methods inherited from class org.nakedobjects.metamodel.specloader.internal.NakedObjectActionParameterAbstract |
|---|
addFacet, addFacet, checkChoicesType, containsFacet, createProposedArgumentInteractionContext, getAction, getAuthenticationSession, getChoices, getDefault, getDescription, getFacet, getFacets, getFacetTypes, getIdentifier, getName, getNumber, getRuntimeContext, getSpecification, isCollection, isOptional, isUsable, removeFacet, removeFacet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.metamodel.spec.feature.NakedObjectActionParameter |
|---|
createProposedArgumentInteractionContext, getAction, getChoices, getDefault, getNumber, isCollection, isOptional |
| Methods inherited from interface org.nakedobjects.metamodel.spec.TypedSpecification |
|---|
getSpecification |
| 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 |
| Constructor Detail |
|---|
public OneToOneActionParameterImpl(int index,
NakedObjectActionImpl actionImpl,
NakedObjectActionParamPeer peer)
| Method Detail |
|---|
public boolean isObject()
NakedObjectActionParameterAbstractNakedObjectActionParameterAbstract.isObject() or NakedObjectActionParameterAbstract.isCollection().
isObject in interface NakedObjectActionParameterisObject in class NakedObjectActionParameterAbstract
public java.lang.String isValid(NakedObject nakedObject,
java.lang.Object proposedValue)
isValid in interface NakedObjectActionParameterpublic Instance getInstance(NakedObject nakedObject)
SpecificationInstance of this Specification with respect
to the provided NakedObject.
For example, if the Specification is a OneToOneAssociation,
then is an Instance implementation representing the { NakedObject/ OneToOneAssociation } tuple.
Implementations are expected to use a double-dispatch back to the provided
NakedObject (passing themselves as a parameter), using
NakedObjectMM.getInstance(Specification).
Note: this method may throw an UnsupportedOperationException;
see NakedObjectMM.getInstance(Specification) for details.
getInstance in interface Specificationpublic NakedObject get(NakedObject owner)
Instance (downcast as a
MutableProposed, wrapping the proposed value into a NakedObject.
get in interface CurrentHolder
public void set(NakedObject owner,
NakedObject newValue)
Instance (downcast as a
MutableProposed, unwrapped the proposed value from a NakedObject.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||