SmartFrog 3.10.000

org.smartfrog.services.os.java
Class RunJavaUtils

java.lang.Object
  extended by org.smartfrog.services.os.java.RunJavaUtils

public class RunJavaUtils
extends java.lang.Object

utility operations for this package created Sep 30, 2004 3:25:12 PM


Method Summary
static java.util.Vector crack(java.lang.String uriList)
          split a list of string values into separate elements of a vector.
static java.lang.String makeResource(java.lang.String classname)
          convert a classname to a resource
static java.lang.String makeSpaceSeparatedString(java.util.Vector source)
          turn a vector of strings into a space separated list
static java.util.Vector mergeDuplicates(java.util.Collection source)
          eliminate all duplicate entries from a vector.
static java.util.Vector recursivelyFlatten(java.util.Collection in)
          recursive flattening of the incoming collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

recursivelyFlatten

public static java.util.Vector recursivelyFlatten(java.util.Collection in)
recursive flattening of the incoming collection. self-referential objects will loop forever.

Parameters:
in - something to iterate over; null pointers return null results
Returns:
a vector containing everything in the collection, apart from collection objects, which are themselves flattened.

crack

public static java.util.Vector crack(java.lang.String uriList)
split a list of string values into separate elements of a vector. dumb simple parsing

Parameters:
uriList -
Returns:
the string cracked; may be empty for no interesting content

mergeDuplicates

public static java.util.Vector mergeDuplicates(java.util.Collection source)
eliminate all duplicate entries from a vector. uses a hash table, O(n*(O(hashtable add)+O(hashtable lookup))

Parameters:
source -
Returns:

makeSpaceSeparatedString

public static java.lang.String makeSpaceSeparatedString(java.util.Vector source)
turn a vector of strings into a space separated list

Parameters:
source -
Returns:

makeResource

public static java.lang.String makeResource(java.lang.String classname)
convert a classname to a resource

Parameters:
classname -
Returns:
resource

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP