atg.droplet
Class DynamicParamDescriptor
java.lang.Object
java.beans.FeatureDescriptor
atg.beans.SerializableFeatureDescriptor
atg.droplet.ParamDescriptor
atg.droplet.DynamicParamDescriptor
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ArrayElementParamDescriptor, ArrayOfBeanPathParamDescriptor, ArrayOfBeanTyperParamDescriptor, BeanTyperParamDescriptor, IdentityParamDescriptor
public abstract class DynamicParamDescriptor
- extends ParamDescriptor
This is an abstract class for ParamDescriptors that should be extended
by the various ways to derive the type of a parameter dynamically.
The resolver can be used to access the types + values of other parameters
that this parameter may depend upon.
Sub-classes of this can be relatively generic: ArrayElementOfParamDescriptor
ArrayOfParamDescriptor, or fairly specific: TargetingArrayParamDescriptor.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary |
DynamicParamDescriptor()
|
DynamicParamDescriptor(java.lang.String pName,
java.lang.String pDescription,
java.lang.Class pParamClass,
boolean pOptional,
boolean pLocal)
Construct an ArrayElementParamDescriptor. |
Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getName, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CLASS_VERSION
public static java.lang.String CLASS_VERSION
- Class version string
DynamicParamDescriptor
public DynamicParamDescriptor()
DynamicParamDescriptor
public DynamicParamDescriptor(java.lang.String pName,
java.lang.String pDescription,
java.lang.Class pParamClass,
boolean pOptional,
boolean pLocal)
- Construct an ArrayElementParamDescriptor. Most of these arguments
are the same as those to ParamDescriptor.
The last argument, pArrayParamName, is the name of the input parameter
that we should base our output parameter's type on.
getParamInfo
public abstract ObjectTypeInfo getParamInfo(ParamDescriptorResolver pResolver)
- Returns an ObjectTypeInfo that describes the type of this parameter.
This method uses the pResolver argument to lookup the types of its
input parameters and defines this parameter in terms of those types.