com.ibm.as400.webaccess.util
Class ServletParameterValue

java.lang.Object
  |
  +--com.ibm.as400.webaccess.util.ServletParameterValue

public final class ServletParameterValue
extends java.lang.Object

Represents one of a list of valid (allowed) values for a given WebAccess servlet parameter.


Constructor Summary
ServletParameterValue(java.lang.String uri, java.lang.String titleKey, java.lang.String descriptionKey)
          Constructs a ServletParameterValue.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines equality.
 java.lang.String getDescription(java.util.ResourceBundle bundle)
          Returns the translated description of this value.
 java.lang.String getTitle(java.util.ResourceBundle bundle)
          Returns the translated title name of this value.
 java.lang.String getURI()
          Returns the URI string for this value.
 java.lang.String toString()
          Returns the string representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletParameterValue

public ServletParameterValue(java.lang.String uri,
                             java.lang.String titleKey,
                             java.lang.String descriptionKey)
Constructs a ServletParameterValue.

Parameters:
uri - The URI of the value.
titleKey - The MRI key of the title.
descriptionKey - The MRI key of the description.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Determines equality.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The object to compare.
Returns:
true if obj is a ServletParameterValue instance whose uri and titleKey match this object's uri and titleKey; false otherwise.

getDescription

public java.lang.String getDescription(java.util.ResourceBundle bundle)
Returns the translated description of this value.

Parameters:
bundle - The ResourceBundle from which to load the translated description.
Returns:
The translated description.

getTitle

public java.lang.String getTitle(java.util.ResourceBundle bundle)
Returns the translated title name of this value.

Parameters:
bundle - The ResourceBundle from which to load the translated description.
Returns:
The translated title.

getURI

public java.lang.String getURI()
Returns the URI string for this value.

Returns:
The URI.

toString

public java.lang.String toString()
Returns the string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
The URI.