infosapient.util
Class UtilityOperations

java.lang.Object
  |
  +--infosapient.util.UtilityOperations

public class UtilityOperations
extends java.lang.Object

Assorted methods for operations Creation date: (1/28/00 12:53:05 PM)

Version:
$Revision: 1.1.1.1 $

Constructor Summary
UtilityOperations()
           
 
Method Summary
static boolean checkName(java.lang.String inputString)
          Check the identifier to make sure that it is valid.
static java.lang.Object[] createArray(java.lang.Object[] source)
          Create a new java.lang.Array of length + 1 of source Creation date: (1/28/00 12:57:02 PM)
static java.lang.String getStackTrace(java.lang.Throwable throwable)
          Method to convert a Throwable's stack trace to a string for printing.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

UtilityOperations

public UtilityOperations()
Method Detail

checkName

public static boolean checkName(java.lang.String inputString)
Check the identifier to make sure that it is valid. (Return true if valid) Valid identifiers are: A-Za-z0-9$_@ Creation date: (01.03.28 5:59:34 PM)
Parameters:
inputString - java.lang.String
Returns:
boolean
Throws:
java.lang.IllegalArgumentException - The exception description.

createArray

public static java.lang.Object[] createArray(java.lang.Object[] source)
Create a new java.lang.Array of length + 1 of source Creation date: (1/28/00 12:57:02 PM)
Parameters:
source - java.lang.Object[] the array of objects to be copied
Returns:
java.lang.Object[] the new array filled with the source array's objects
Throws:
java.lang.IllegalArgumentException - - if source array is null

getStackTrace

public static java.lang.String getStackTrace(java.lang.Throwable throwable)
Method to convert a Throwable's stack trace to a string for printing.
Parameters:
Throwable - - the thrown Throwable of interest
Returns:
String - the stack trace as string to be printed out on a dialog,etc.

License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.

Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved