atg.droplet
Class ArrayOfBeanTyperParamDescriptor

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by atg.beans.SerializableFeatureDescriptor
          extended by atg.droplet.ParamDescriptor
              extended by atg.droplet.DynamicParamDescriptor
                  extended by atg.droplet.ArrayOfBeanTyperParamDescriptor
All Implemented Interfaces:
java.io.Serializable

public class ArrayOfBeanTyperParamDescriptor
extends DynamicParamDescriptor

This is a dynamic ParamDescriptor which allows you to define an output parameter whose type is an element of an array based input parameter.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.beans.SerializableFeatureDescriptor
BUNDLE_ATTRIBUTE_NAME, LOCALE_ATTRIBUTE_NAME
 
Constructor Summary
ArrayOfBeanTyperParamDescriptor()
           
ArrayOfBeanTyperParamDescriptor(java.lang.String pName, java.lang.String pDescription, java.lang.Class pParamClass, boolean pOptional, boolean pLocal, java.lang.String pBeanTyperParamName)
          Construct an ArrayOfBeanTyperParamDescriptor.
 
Method Summary
 java.lang.String getBeanTyperParamName()
           
 ObjectTypeInfo getParamInfo(ParamDescriptorResolver pResolver)
          Returns the type of the parameter by first getting the type of the input parameter.
 void setBeanTyperParamName(java.lang.String pBeanTyperParamName)
          Sets the property BeanTyper.
 
Methods inherited from class atg.droplet.ParamDescriptor
getParamClass, getRenderParamDescriptors, isLocal, isOptional, isRenderable, setLocal, setOptional, setParamClass, setRenderParamDescriptors, toString
 
Methods inherited from class atg.beans.SerializableFeatureDescriptor
copyFeatureDescriptor, getDisplayName, getDisplayNameResource, getDisplaySortString, getLocalizedResourceBundle, getResourceBundle, getShortDescription, getShortDescriptionResource, getSortString, setDisplayNameResource, setShortDescriptionResource
 
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
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ArrayOfBeanTyperParamDescriptor

public ArrayOfBeanTyperParamDescriptor()

ArrayOfBeanTyperParamDescriptor

public ArrayOfBeanTyperParamDescriptor(java.lang.String pName,
                                       java.lang.String pDescription,
                                       java.lang.Class pParamClass,
                                       boolean pOptional,
                                       boolean pLocal,
                                       java.lang.String pBeanTyperParamName)
Construct an ArrayOfBeanTyperParamDescriptor. 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 an BeanTyper (a bean that describes the type of a class of related beans). Our output type is an array of these types.

Method Detail

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