atg.droplet
Class IdentityParamDescriptor

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.IdentityParamDescriptor
All Implemented Interfaces:
java.io.Serializable

public class IdentityParamDescriptor
extends DynamicParamDescriptor

A DynamicParamDescriptor that assumes the same type as the named 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
IdentityParamDescriptor()
           
IdentityParamDescriptor(java.lang.String pName, java.lang.String pDescription, java.lang.Class pParamClass, boolean pOptional, boolean pLocal, java.lang.String pParamName)
          Construct an ArrayElementParamDescriptor.
 
Method Summary
 ObjectTypeInfo getParamInfo(ParamDescriptorResolver pResolver)
          Returns the type of the parameter as the type of some input parameter.
 java.lang.String getParamName()
           
 void setParamName(java.lang.String pParamName)
          Sets the property ParamName.
 
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, 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

IdentityParamDescriptor

public IdentityParamDescriptor()

IdentityParamDescriptor

public IdentityParamDescriptor(java.lang.String pName,
                               java.lang.String pDescription,
                               java.lang.Class pParamClass,
                               boolean pOptional,
                               boolean pLocal,
                               java.lang.String pParamName)
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

setParamName

public void setParamName(java.lang.String pParamName)
Sets the property ParamName. This is the name of the input parameter that we should base our output parameter's type on.


getParamName

public java.lang.String getParamName()
Returns:
The value of the property ParamName.

getParamInfo

public ObjectTypeInfo getParamInfo(ParamDescriptorResolver pResolver)
Returns the type of the parameter as the type of some input parameter.

Specified by:
getParamInfo in class DynamicParamDescriptor