atg.droplet
Class DynamicParamDescriptor

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by atg.beans.SerializableFeatureDescriptor
          extended by atg.droplet.ParamDescriptor
              extended by 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
 
Fields inherited from class atg.beans.SerializableFeatureDescriptor
BUNDLE_ATTRIBUTE_NAME, LOCALE_ATTRIBUTE_NAME
 
Constructor Summary
DynamicParamDescriptor()
           
DynamicParamDescriptor(java.lang.String pName, java.lang.String pDescription, java.lang.Class pParamClass, boolean pOptional, boolean pLocal)
          Construct an ArrayElementParamDescriptor.
 
Method Summary
abstract  ObjectTypeInfo getParamInfo(ParamDescriptorResolver pResolver)
          Returns an ObjectTypeInfo that describes the type of this parameter.
 
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

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.

Method Detail

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.