|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dss.util.Utility
public class Utility
Nested Class Summary | |
---|---|
static class |
Utility.PropertyType
|
Field Summary | |
---|---|
static char |
SC_FALSE
|
static char |
SC_TRUE
|
static int |
SPACE_UNDERLINE
|
static int |
START_UNDERLINE
|
Constructor Summary | |
---|---|
Utility()
|
Method Summary | |
---|---|
static java.lang.Object[] |
arraycopy(java.lang.Object[] src)
Copy an array even with a null destination. |
static java.lang.Object[][] |
arraycopy(java.lang.Object[][] src)
Copy a two dimensional Object array. |
static java.lang.String |
arrayToString(java.lang.Object array)
Generate a string representation of an array of objects. |
static java.util.Hashtable |
cloneHashtable(java.util.Hashtable t)
Copy a hashtable of cloneable objects |
static java.util.Vector |
cloneVector(java.util.Vector v)
Copy a given vector by actually cloning each element. |
static java.lang.String[] |
combineArrays(java.lang.String[] one,
java.lang.String[] two)
Combine two string arrays into one |
static boolean |
compareArrays(java.lang.Object[] list1,
java.lang.Object[] list2)
Compare two arrays and return true if they are exactly equal |
static int |
compareAsNumbers(java.lang.Object obj1,
java.lang.Object obj2)
Compares the numeric values of the two Object Utility method to handle the fact that it is not possible to use the Comparable interface to compare different numeric types |
static boolean |
compareHashMap(java.util.HashMap table1,
java.util.HashMap table2)
Compare two hashtables |
static boolean |
compareHashtables(java.util.Hashtable table1,
java.util.Hashtable table2)
Compare two hashtables |
static boolean |
compareLists(java.util.List list1,
java.util.List list2)
|
static boolean |
compareLists(java.lang.String[] list1,
java.lang.String[] list2)
Compare two string arrays and return true if they are exactly equal except for order |
static boolean |
compareListsExact(java.lang.String[] list1,
java.lang.String[] list2)
Compare two string arrays and return true if they are exactly equal |
static boolean |
compareObj(java.lang.Object obj1,
java.lang.Object obj2)
Test two Objects for equality accounting for the possibility of nulls. |
static boolean |
compareVectors(java.util.Vector v1,
java.util.Vector v2)
Compare two Vectors for a deep match. |
static boolean |
compareVersionStrings(java.lang.String version1,
java.lang.String version2)
|
static int |
compareXMLVersions(java.lang.String ver1,
java.lang.String ver2)
|
static boolean |
contains(java.util.Vector vector1,
java.util.Vector vector2)
|
static java.util.Vector |
copyArrayToVector(java.lang.Object[] array)
Put the contents of an array into a vector and return it |
static java.lang.Object[] |
copyVectorToArray(java.util.Vector vector)
|
static java.lang.Object[] |
copyVectorToArray(java.util.Vector vObjects,
java.lang.Class classBase)
|
static java.lang.String |
escapeStateString(java.lang.String str,
char[] escapeChars,
char[] replaceChars,
char escapeChar)
|
static java.lang.String[] |
flattenArray(java.lang.String[][] twod)
Flatten a two dimensional string array into a linear array |
static char |
getBooleanAsChar(boolean value)
|
static java.util.Vector |
getDependentID(oracle.dss.util.persistence.XMLContext context,
java.util.Vector ids,
boolean onlyIfMeasureDim,
java.lang.String dim)
|
static oracle.dss.util.persistence.GUIDConverter |
getGUIDConverter(oracle.dss.util.persistence.XMLContext context)
|
static IDResolver |
getIDResolver(oracle.dss.util.persistence.XMLContext context)
|
static java.lang.String |
getMeasureDimName(oracle.dss.util.persistence.XMLContext context)
|
static java.lang.Object |
getMigrationFlag(oracle.dss.util.persistence.XMLContext context)
|
static boolean |
getValueAsBoolean(oracle.dss.util.xml.PropertyNode node)
|
static java.lang.Object |
instantiateClass(java.lang.String strClassName,
java.lang.Class[] classConstructorArgs,
java.lang.Object[] objectArgs,
ErrorHandler eh)
|
static java.lang.Class |
loadClass(java.lang.String a_classname)
|
static java.lang.String |
ObjectToString(java.lang.Object object)
Converts a object to a string. |
static void |
setDependentID(oracle.dss.util.persistence.XMLContext context,
java.util.Vector ids,
boolean onlyIfMeasureDim,
java.lang.String dim)
|
static java.lang.Object |
StringToObject(java.lang.String string)
Converts a string to a object. |
static java.lang.String |
unescapeStateString(java.lang.String str,
char[] escapeChars,
char[] replaceChars,
char escapeChar)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int START_UNDERLINE
public static final int SPACE_UNDERLINE
public static final char SC_TRUE
public static final char SC_FALSE
Constructor Detail |
---|
public Utility()
Method Detail |
---|
public static java.util.Vector cloneVector(java.util.Vector v) throws java.lang.CloneNotSupportedException
v
- vector to copyreturn
- copy of vector v
java.lang.CloneNotSupportedException
- thrown if there is a problem cloning the elementspublic static java.util.Hashtable cloneHashtable(java.util.Hashtable t) throws java.lang.CloneNotSupportedException
src
- source table
java.lang.CloneNotSupportedException
- thrown if there is a problem cloning the elementspublic static boolean compareLists(java.util.List list1, java.util.List list2)
public static boolean compareArrays(java.lang.Object[] list1, java.lang.Object[] list2)
list1
- first list to comparelist2
- second list to compare
public static boolean compareHashtables(java.util.Hashtable table1, java.util.Hashtable table2)
table1
- first tabletable2
- second table
true
if hash tables are equal (each object within them is equal and found
in the same order)public static boolean compareHashMap(java.util.HashMap table1, java.util.HashMap table2)
table1
- first tabletable2
- second table
true
if hash tables are equal (each object within them is equal and found
in the same order)public static java.lang.Object[][] arraycopy(java.lang.Object[][] src)
src
- source array
public static java.lang.Object[] arraycopy(java.lang.Object[] src)
src
- source array
public static java.lang.Object[] copyVectorToArray(java.util.Vector vector)
vObjects
- A Vector
of objects to put into an array.
Object array containing the vector's contents.
- Throws:
java.lang.ArrayStoreException
- if the objects in the
vector are not all of the same type.- For internal use only. Application developers should not use this
- Put the contents of a vector into an array and return it.
public static java.lang.Object[] copyVectorToArray(java.util.Vector vObjects, java.lang.Class classBase)
vObjects
- A Vector
of objects to put into an array.classBase
- The Class
of the returned
Object
array.
Object array of classBase objects containing the
vector's contents.
- Throws:
java.lang.ArrayStoreException
- if the objects in the
vector do not share the same classBase.- For internal use only. Application developers should not use this
- Put the contents of a vector into an array and return it.
public static java.util.Vector copyArrayToVector(java.lang.Object[] array)
array
- array contents to put into a vector
public static boolean compareVectors(java.util.Vector v1, java.util.Vector v2)
v1
- first Vector to comparev2
- second Vector to compare
true
if Vectors and all their elements are equalpublic static boolean compareLists(java.lang.String[] list1, java.lang.String[] list2)
list1
- first list to comparelist2
- second list to compare
public static boolean compareListsExact(java.lang.String[] list1, java.lang.String[] list2)
list1
- first list to comparelist2
- second list to compare
public static java.lang.String[] combineArrays(java.lang.String[] one, java.lang.String[] two)
one
- first array to combinetwo
- second array to combine
public static java.lang.String[] flattenArray(java.lang.String[][] twod)
twod
- input two dimensional array
public static java.lang.String arrayToString(java.lang.Object array)
array
- a Object
value that represents
an array of objects.
String
which represents the string representation
of our object array, or null.public static java.lang.String ObjectToString(java.lang.Object object)
object
- a Object
that represents the value we wish to
convert to a string.
Object
which represents the string representation
of the specified object, or null.public static java.lang.Object StringToObject(java.lang.String string)
string
- a String
that represents the value we wish to
convert to a object.
Object
which represents the object representation
of the specified string, or null.public static java.lang.Object instantiateClass(java.lang.String strClassName, java.lang.Class[] classConstructorArgs, java.lang.Object[] objectArgs, ErrorHandler eh)
strClassName
- a String
value that represents
the class name of the object we are trying to create.classConstructorArgs
- a Class
array that contains the
arguments that will be passed to the class's getConstructor
method.objectArgs
- an Object
array that contains the
arguments that will be passed to our output object's constructor.
Object
which represents our newly instantiated
object, or null.public static boolean contains(java.util.Vector vector1, java.util.Vector vector2)
vector1
- Vector
which might contain the elements
from the second Vectorvector2
- Vector
whose elements are supposedly
contained by the first Vector
true
if all the elements of the second Vector are contained by the first vectorpublic static boolean compareObj(java.lang.Object obj1, java.lang.Object obj2)
obj1
- Object to compare 1obj2
- Object to compare 2
true
if Objects are equalpublic static int compareAsNumbers(java.lang.Object obj1, java.lang.Object obj2)
public static int compareXMLVersions(java.lang.String ver1, java.lang.String ver2)
ver1
- a String representation of an XML version number, for
instance as it appears in the XML (e.g.- "1.7.0.6")ver2
- the second XML version number
public static java.lang.String escapeStateString(java.lang.String str, char[] escapeChars, char[] replaceChars, char escapeChar)
public static java.lang.String unescapeStateString(java.lang.String str, char[] escapeChars, char[] replaceChars, char escapeChar)
public static void setDependentID(oracle.dss.util.persistence.XMLContext context, java.util.Vector ids, boolean onlyIfMeasureDim, java.lang.String dim)
public static java.util.Vector getDependentID(oracle.dss.util.persistence.XMLContext context, java.util.Vector ids, boolean onlyIfMeasureDim, java.lang.String dim)
public static java.lang.String getMeasureDimName(oracle.dss.util.persistence.XMLContext context)
public static IDResolver getIDResolver(oracle.dss.util.persistence.XMLContext context)
public static java.lang.Object getMigrationFlag(oracle.dss.util.persistence.XMLContext context)
public static oracle.dss.util.persistence.GUIDConverter getGUIDConverter(oracle.dss.util.persistence.XMLContext context)
public static boolean compareVersionStrings(java.lang.String version1, java.lang.String version2)
public static java.lang.Class loadClass(java.lang.String a_classname) throws java.lang.ClassNotFoundException
String
- which represents the class to be loaded.
Class
which represents the requested class object
java.lang.ClassNotFoundException
public static char getBooleanAsChar(boolean value)
public static boolean getValueAsBoolean(oracle.dss.util.xml.PropertyNode node)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |