com.filenet.bso.api.util
Class BsoParameter
java.lang.Object
|
+--com.filenet.bso.api.util.BsoParameter
- public class BsoParameter
- extends java.lang.Object
The BsoParameter
class provides a set of static helper
methods that perform parameter validation.
Method Summary |
static void |
verify(int value,
int lowerValue,
int higherValue)
Verifies that an int parameter falls within a given range. |
static void |
verify(java.lang.Object object)
Verifies object parameter. |
static void |
verify(java.lang.String string)
Verifies a string parameter. |
static void |
verifySpaces(java.lang.String string)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
verify
public static void verify(java.lang.Object object)
- Verifies object parameter.
- Parameters:
object
- A Java Object
that presents the parameter to verify.
- Throws:
java.lang.IllegalArgumentException
- Thrown if the object
parameter is null
.
verify
public static void verify(java.lang.String string)
- Verifies a string parameter.
- Parameters:
string
- A String
that represents the parameter to verify.
- Throws:
java.lang.IllegalArgumentException
- If string parameter is null.
java.lang.IllegalArgumentException
- Thrown if string parameter length is zero.
verifySpaces
public static void verifySpaces(java.lang.String string)
verify
public static void verify(int value,
int lowerValue,
int higherValue)
- Verifies that an
int
parameter falls within a given range.
- Parameters:
value
- The int
parameter to verify.
lowerValue
- Lower range value.
higherValue
- Upper range value.
- Throws:
java.lang.IllegalArgumentException
- Thrown if the parameter value is outside
the given range.
Copyright © 2002 - 2004 FileNet Corporation. All rights reserved.