public class Utils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
static java.util.ResourceBundle |
rb |
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
configureParameters(java.lang.Object theSource,
java.util.Map<java.lang.String,java.lang.Object> params)
Please use setParameters instead
|
static void |
configureParameters(java.lang.Object theSource,
java.lang.String parsableString)
Please use setParameters instead
|
static java.util.Map<java.lang.String,java.lang.Object> |
convertString(java.lang.String theString,
java.lang.ClassLoader classLoader)
This will convert a String in the form (param1 = xxxx, param2 = "stringy", ...)
into a hashtable that has key param1 and value xxxx.
|
static java.util.ResourceBundle |
getResourceBundle(java.lang.ClassLoader ownersClassLoader,
java.lang.String resourceFileName)
Returns a resource bundle using the owners class loader.
|
static java.util.ResourceBundle |
getResourceBundle(java.lang.Class ownersClass,
java.lang.String resourceFileName)
Returns a resource bundle using the owners class loader.
|
static java.util.ResourceBundle |
getResourceBundle(java.lang.Object owner,
java.lang.String resourceFileName)
Returns a resource bundle using the owners class loader.
|
static java.lang.String |
getRuntimeResource(java.lang.Object owner,
java.lang.String key) |
static double |
logBase10(double value) |
static void |
n2sort(ComparableInterface comparer,
java.lang.Object[] values)
This is used for easy subclassing if we want to sort.
|
static void |
n2sort(ComparableInterface comparer,
java.util.Vector values)
This is used for easy subclassing if we want to sort.
|
static void |
setParameters(java.lang.Object theSource,
java.util.Map<java.lang.String,java.lang.Object> params)
Sets the parameters to an Object.
|
static void |
setParameters(java.lang.Object theSource,
java.lang.String parsableString)
This will take a parsable string, and convert it to a hashtable using the
Utils convertString method.
|
public static final java.lang.String cvsRev
public static java.util.ResourceBundle rb
public static void configureParameters(java.lang.Object theSource, java.util.Map<java.lang.String,java.lang.Object> params) throws VIBParameterException
VIBParameterException
public static void configureParameters(java.lang.Object theSource, java.lang.String parsableString) throws VIBParameterException
VIBParameterException
public static java.util.Map<java.lang.String,java.lang.Object> convertString(java.lang.String theString, java.lang.ClassLoader classLoader)
public static java.util.ResourceBundle getResourceBundle(java.lang.ClassLoader ownersClassLoader, java.lang.String resourceFileName) throws java.util.MissingResourceException
java.util.MissingResourceException
public static java.util.ResourceBundle getResourceBundle(java.lang.Class ownersClass, java.lang.String resourceFileName) throws java.util.MissingResourceException
java.util.MissingResourceException
public static java.util.ResourceBundle getResourceBundle(java.lang.Object owner, java.lang.String resourceFileName) throws java.util.MissingResourceException
java.util.MissingResourceException
public static java.lang.String getRuntimeResource(java.lang.Object owner, java.lang.String key)
public static double logBase10(double value)
public static void n2sort(ComparableInterface comparer, java.lang.Object[] values)
public static void n2sort(ComparableInterface comparer, java.util.Vector values)
public static void setParameters(java.lang.Object theSource, java.util.Map<java.lang.String,java.lang.Object> params) throws VIBParameterException
params
- the hashtable object keys MUST be strings that represent the value it's
trying to set. This string MUST NOT have the 'set' portion of the method. IE: if you
want to call the setAngle method, the key will be the string 'angle' (or any case
variation because of the case insensitivity).theSource
- This is the object that the set methods will be called on.params
- the data source parameters
These exceptions are raised when the server tries to instanciate additional servers that
may be part of the parameters of this server.VIBParameterException
- An error in the parameters. This wraps
all the "normal" exceptions associated with reflection.public static void setParameters(java.lang.Object theSource, java.lang.String parsableString) throws VIBParameterException
VIBParameterException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.