|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.rep.SuppleBeanImpl
edu.washington.cs.supple.rep.BaseType
edu.washington.cs.supple.rep.ContainerTypeImpl
edu.washington.cs.supple.rep.ActionTypeImpl
Container type for actions.
| Field Summary | |
protected java.util.Collection |
dependencies
|
protected java.util.HashSet |
dynamicObjects
|
protected UiObject |
parametersObject
|
protected SuppleType |
parametersType
|
protected SuppleType |
returnType
|
| Fields inherited from class edu.washington.cs.supple.rep.ContainerTypeImpl |
children, childTable, derivedFrom, dynamicChildren, hiddenChildren, numChildrenAdded, object |
| Fields inherited from class edu.washington.cs.supple.rep.BaseType |
finalLegalValues, hasOrdering, lastUid, legalValues, legalValuesBinding, likelyValues, likelyValuesBinding, maxNumLegalValues, nullLegal, typicalIndexLength, uid |
| Fields inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl |
pcs |
| Constructor Summary | |
ActionTypeImpl(SuppleType returnType,
UiObject parametersObject)
Create an action type with the parameters type and the return type |
|
| Method Summary | |
void |
addDependency(Reference r)
The execution of an action might require values from other UiObjects, for instance state variables. |
void |
addDynamicObject(UiObject o)
Stores a new dynamic object that was created by this action. |
java.lang.Object |
clone()
Clone this type, does not clone children. |
java.util.Collection |
getDependencies()
Returns a list of all dependencies. |
java.util.Collection |
getDynamicObjects()
Returns a Collection of dynamic objects that were created by this action. |
UiObject |
getParameterObject(java.lang.String name)
Locate the parameter ui object associated with the name. |
UiObject |
getParametersObject()
|
SuppleType |
getParametersType()
|
java.lang.Object |
getParameterValue(java.lang.String name)
Locate the paramter value associated with the name. |
SuppleType |
getReturnType()
|
static ActionTypeImpl |
getVoidType()
|
boolean |
hasIndex()
Index is a short unique summary of the value (which can be used for choosing present values, etc. |
protected void |
init()
Initialize the container type. |
boolean |
isEnumerable()
This method tells you if possible values for this type can be (reasonably) enumerated |
boolean |
isLegalValueClass(java.lang.Class c)
Check if a class is legal for this type. |
boolean |
isPrimitiveType()
Test if this is a primitive type. |
void |
removeDynamicObject(UiObject o)
Removes a dynamic object that was created by this action. |
java.lang.String |
toString()
|
| Methods inherited from class edu.washington.cs.supple.rep.ContainerTypeImpl |
accept, addChild, addDynamicChild, childrenHaveLabels, getChild, getChildren, getIndex, getNumChildren, getNumChildrenAdded, getUiObject, hasModifiableChild, rebindChildrenToValue, removeChild, size, swapChild, toPrettyString |
| Methods inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl |
addPropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.washington.cs.supple.rep.ContainerType |
childrenHaveLabels, getChild, getChildren, getNumChildren, getNumChildrenAdded, getUiObject, hasModifiableChild, removeChild, size, swapChild |
| Methods inherited from interface edu.washington.cs.supple.rep.SuppleType |
accept, getIndex, getIndex, getLegalValues, getLikelyValues, getLongestLegalIndex, getMaxNumLegalValues, getNumLegalValues, getNumLikelyValues, getTypicalIndexLength, getUniqueId, hasOrdering, hasSetLegalValues, isFinalLegalValues, isLegalValue, orderValues, toPrettyString, verifyCurrentValue |
| Methods inherited from interface edu.washington.cs.supple.rep.SuppleBean |
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
protected SuppleType parametersType
protected SuppleType returnType
protected UiObject parametersObject
protected java.util.Collection dependencies
protected java.util.HashSet dynamicObjects
| Constructor Detail |
public ActionTypeImpl(SuppleType returnType,
UiObject parametersObject)
returnType - the return type| Method Detail |
public java.lang.Object clone()
ContainerTypeImpl
clone in class ContainerTypeImplpublic static ActionTypeImpl getVoidType()
public UiObject getParametersObject()
getParametersObject in interface ActionTypepublic SuppleType getParametersType()
getParametersType in interface ActionTypepublic UiObject getParameterObject(java.lang.String name)
ActionType
getParameterObject in interface ActionTypepublic java.lang.Object getParameterValue(java.lang.String name)
ActionType
getParameterValue in interface ActionTypepublic SuppleType getReturnType()
getReturnType in interface ActionTypepublic java.lang.String toString()
toString in class ContainerTypeImplpublic boolean isEnumerable()
SuppleType
isEnumerable in interface SuppleTypeisEnumerable in class ContainerTypeImplpublic boolean hasIndex()
SuppleType
hasIndex in interface SuppleTypehasIndex in class ContainerTypeImplpublic boolean isLegalValueClass(java.lang.Class c)
SuppleType
isLegalValueClass in interface SuppleTypeisLegalValueClass in class ContainerTypeImplpublic void addDependency(Reference r)
public java.util.Collection getDependencies()
ActionType
getDependencies in interface ActionTypepublic void addDynamicObject(UiObject o)
public void removeDynamicObject(UiObject o)
public java.util.Collection getDynamicObjects()
ActionType
getDynamicObjects in interface ActionTypeprotected void init()
ContainerTypeImpl
init in class ContainerTypeImplpublic boolean isPrimitiveType()
SuppleType
isPrimitiveType in interface SuppleTypeisPrimitiveType in class ContainerTypeImpl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||