atg.droplet
Class BeanTyperParamDescriptor
java.lang.Object
java.beans.FeatureDescriptor
atg.beans.SerializableFeatureDescriptor
atg.droplet.ParamDescriptor
atg.droplet.DynamicParamDescriptor
atg.droplet.BeanTyperParamDescriptor
- All Implemented Interfaces:
- java.io.Serializable
public class BeanTyperParamDescriptor
- extends DynamicParamDescriptor
This is a dynamic ParamDescriptor which allows you to define an output
parameter whose type is the same as the type of a BeanTyper input
parameter.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary |
BeanTyperParamDescriptor()
|
BeanTyperParamDescriptor(java.lang.String pName,
java.lang.String pDescription,
java.lang.Class pParamClass,
boolean pOptional,
boolean pLocal,
java.lang.String pBeanTyperParamName)
Construct an BeanTyperParamDescriptor. |
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
BeanTyperParamDescriptor
public BeanTyperParamDescriptor()
BeanTyperParamDescriptor
public BeanTyperParamDescriptor(java.lang.String pName,
java.lang.String pDescription,
java.lang.Class pParamClass,
boolean pOptional,
boolean pLocal,
java.lang.String pBeanTyperParamName)
- Construct an BeanTyperParamDescriptor. Most of these arguments
are the same as those to ParamDescriptor.
The last argument, pBeanTyperParamName, is the name of the input parameter
that we should base our output type on. This should be the parameter
name of a BeanTyper (a bean that describes the type of a class of
related beans) used for this ParamDescriptor.
setBeanTyperParamName
public void setBeanTyperParamName(java.lang.String pBeanTyperParamName)
- Sets the property BeanTyper. This is the
name of the input parameter, which should be a BeanTyper, that
we use to based our output parameter's type on.
getBeanTyperParamName
public java.lang.String getBeanTyperParamName()
- Returns:
- The value of the property BeanTyperParamName.
getParamInfo
public ObjectTypeInfo getParamInfo(ParamDescriptorResolver pResolver)
- Returns the type of the parameter by first getting the type of the
input parameter. If this type is known, and it is known to be an
array, we return our type as the component type of that array.
- Specified by:
getParamInfo
in class DynamicParamDescriptor