Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

com.ibm.wps.pb.property
Interface Parameter


public interface Parameter

For use by portlets written to the IBM portlet API.

An action (encapsulated in the Action interface) is associated with several parameters (encapsulated in the Parameter interface), and each parameter is associated with a property (encapsulated in the Property interface). This interface is used to provide additional information about how a property is to be passed to/from the specific action it is associated with. If actions are declared in a WSDL file, the runtime will construct and register the Action and associated Parameter objects. If a WSDL file is not used, parameters may be programmatically constructed using PropertyFactory, followed by invoking the setters.

Since:
5.0
See Also:
PropertyFactory, Action, Property

Field Summary
static java.lang.String BOUND_TO_ACTION
          Specifies that the parameter value is bound as an action parameter when the action is invoked.
static java.lang.String BOUND_TO_REQUEST_ATTRIBUTE
          Specifies that the parameter value is bound as a request attribute when the action is invoked.
static java.lang.String BOUND_TO_REQUEST_PARAMETER
          Specifies that the parameter value is bound as a request parameter when the action is invoked.
static java.lang.String BOUND_TO_SESSION
          Specifies that the parameter value is bound as a session attribute when the action is invoked.
 

Method Summary
 Action getAction()
          Returns the parent Action object.
 java.lang.String getBoundTo()
          Returns where the parameter is bound.
 java.lang.String getDescription()
          Deprecated.  
 java.lang.String java.util.Locale)">getDescription(java.util.Locale locale)
          Return a string containing a description of the parameter.
 Property getProperty()
          Returns the associated Property object.
 java.lang.String getTitle()
          Deprecated.  
 java.lang.String java.util.Locale)">getTitle(java.util.Locale locale)
          Returns a string containing a short description of the parameter.
 boolean isPresentIfNullValue()
          Returns a value that governs the wire-triggering behavior if a parameter is found, but its value is null.
 void setBoundTo(java.lang.String boundTo)
          Set where the parameter is bound.
 void setDescription(java.lang.String descriptionKey)
          Deprecated.  
 void setDescriptionKey(java.lang.String descriptionKey)
          Set the key for the description.
 void setPresentIfNullValue(boolean presentIfNullValue)
          Setter for presentIfNullValue.
 void setTitle(java.lang.String titleKey)
          Deprecated.  
 void setTitleKey(java.lang.String titleKey)
          Set the key for the title.
 

Field Detail

BOUND_TO_REQUEST_ATTRIBUTE

public static final java.lang.String BOUND_TO_REQUEST_ATTRIBUTE
Specifies that the parameter value is bound as a request attribute when the action is invoked.

See Also:
Constant Field Values

BOUND_TO_REQUEST_PARAMETER

public static final java.lang.String BOUND_TO_REQUEST_PARAMETER
Specifies that the parameter value is bound as a request parameter when the action is invoked.

See Also:
Constant Field Values

BOUND_TO_SESSION

public static final java.lang.String BOUND_TO_SESSION
Specifies that the parameter value is bound as a session attribute when the action is invoked.

See Also:
Constant Field Values

BOUND_TO_ACTION

public static final java.lang.String BOUND_TO_ACTION
Specifies that the parameter value is bound as an action parameter when the action is invoked. This value may only be specified when the action type is DEFAULT_PORTLET_ACTION.

See Also:
Action, Constant Field Values

Method Detail

getProperty

public Property getProperty()
Returns the associated Property object.

Returns:
the associated Property object
See Also:
Property

getAction

public Action getAction()
Returns the parent Action object.

Returns:
the parent Action object
See Also:
Action

getBoundTo

public java.lang.String getBoundTo()
Returns where the parameter is bound.

Returns:
A String that specifies where the parameter is bound. The allowed values are specified by the constants in this interface.

isPresentIfNullValue

public boolean isPresentIfNullValue()
Returns a value that governs the wire-triggering behavior if a parameter is found, but its value is null. If true, for output parameters, wires will be triggered when the parameter is present, even if the parameter value is null. For input parameters, a triggered wire will cause the parameter value to be set, even if the value is null. The default value is false, ie, null values are not used for triggering wires.

Returns:
the boolean value governing the above behavior
Since:
5.1

getTitle

public java.lang.String getTitle()
Deprecated.  

This method is deprecated. Use the locale-specific version.

Returns:
a String containing a short description of the parameter.
See Also:
java.util.Locale)">getTitle(Locale)

java.util.Locale)">

getTitle

public java.lang.String getTitle(java.util.Locale locale)
Returns a string containing a short description of the parameter. Displayed by tools as an aid to the user.

Parameters:
locale - the current locale
Returns:
a String containing a short description of the parameter.

getDescription

public java.lang.String getDescription()
Deprecated.  

This method is deprecated. Use the locale-specific version.

Returns:
a String containing a description of the parameter.
See Also:
java.util.Locale)">getDescription(Locale)

java.util.Locale)">

getDescription

public java.lang.String getDescription(java.util.Locale locale)
Return a string containing a description of the parameter. Displayed by tools or help text as an aid to the user.

Parameters:
locale - the current locale
Returns:
a String containing a description of the parameter.

setBoundTo

public void setBoundTo(java.lang.String boundTo)
                throws InvalidPropertyException
Set where the parameter is bound. Must specify one of the constants defined in this class. If not explicitly set, the default value is BOUND_TO_REQUEST_PARAMETER.

Parameters:
boundTo - specifies where the parameter is bound.
Throws:
InvalidPropertyException - if the value does not satisfy the required constraint.
See Also:
getBoundTo()

setPresentIfNullValue

public void setPresentIfNullValue(boolean presentIfNullValue)
                           throws InvalidPropertyException
Setter for presentIfNullValue. See isPresentIfNullValue for a description of how the value is used.

Parameters:
presentIfNullValue - this indicates if null values are significant for this parameter; ie if they will cause wires to be triggered
Throws:
InvalidPropertyException - if this Parameter or its associated Property violates any required constraints
Since:
5.1
See Also:
isPresentIfNullValue()

setTitle

public void setTitle(java.lang.String titleKey)
Deprecated.  

This method is deprecated. Use setTitleKey instead.

Parameters:
titleKey - is used as a key to retrieve the locale-specific title.
See Also:
setTitleKey(String )

setTitleKey

public void setTitleKey(java.lang.String titleKey)
Set the key for the title. The locale specific information is set by the setLocalizationInfo method of the associated Action.

Parameters:
titleKey - is used as a key to retrieve the locale-specific title.
See Also:
Action, java.util.Locale)">getTitle(Locale)

setDescription

public void setDescription(java.lang.String descriptionKey)
Deprecated.  

This method is deprecated. Use setDescriptionKey instead.

Parameters:
descriptionKey - is used as a key to retrieve the locale-specific description.
See Also:
setDescriptionKey(String )

setDescriptionKey

public void setDescriptionKey(java.lang.String descriptionKey)
Set the key for the description. The locale specific information is set by the setLocalizationInfo method of the associated Action.

Parameters:
descriptionKey - is used as a key to retrieve the locale-specific description.
See Also:
Action, java.util.Locale)">getDescription(Locale)

Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.