2004.04.29


com.jdc.http.jsp.util
Class IntegerParameter

java.lang.Object
  |
  +--com.jdc.http.jsp.util.IntegerParameter

public class IntegerParameter
extends Object

IntegerParameter represents an int parameter value.

Version:
1.0
Author:
Jay Damon

Field Summary
static String ALL
          A constant that represents all values.
static String NO
          A constant that represents none of the available values.
static String NONE
          A constant that represents none of the available values.
static String OTHER
          A constant that represents a value other than those available.
 
Constructor Summary
IntegerParameter(int value)
          Constructs a new IntegerParameter object for the specified int value.
IntegerParameter(String value)
          Constructs a new IntegerParameter object for the specified String object.
 
Method Summary
 int intValue()
          Returns true if "All" was selected.
 boolean isAll()
          Returns true if "All" was selected.
 boolean isNone()
          Returns true if "None" was selected.
 boolean isNoValue()
          Returns true if no value was selected.
 boolean isOther()
          Returns true if "Other" was selected.
 String toString()
          Returns a String representation of this IntegerParameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL

public static final String ALL
A constant that represents all values.

See Also:
Constant Field Values

NO

public static final String NO
A constant that represents none of the available values. NO and NONE are equivalent.

See Also:
Constant Field Values

NONE

public static final String NONE
A constant that represents none of the available values. NO and NONE are equivalent.

See Also:
Constant Field Values

OTHER

public static final String OTHER
A constant that represents a value other than those available.

See Also:
Constant Field Values
Constructor Detail

IntegerParameter

public IntegerParameter(int value)
Constructs a new IntegerParameter object for the specified int value.


IntegerParameter

public IntegerParameter(String value)
Constructs a new IntegerParameter object for the specified String object.

Method Detail

intValue

public int intValue()
Returns true if "All" was selected.

Returns:
True if "All" was selected. False if "All" was not selected.

isAll

public boolean isAll()
Returns true if "All" was selected.

Returns:
True if "All" was selected. False if "All" was not selected.

isNone

public boolean isNone()
Returns true if "None" was selected.

Returns:
True if "None" was selected. False if "None" was not selected.

isNoValue

public boolean isNoValue()
Returns true if no value was selected.

Returns:
True if no value was selected. False if a value was selected.

isOther

public boolean isOther()
Returns true if "Other" was selected.

Returns:
True if "Other" was selected. False if "Other" was not selected.

toString

public String toString()
Returns a String representation of this IntegerParameter.

Overrides:
toString in class Object
Returns:
The String representation of this IntegerParameter.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.