com.adventnet.utils.jmx
Class Utilities

java.lang.Object
  |
  +--com.adventnet.utils.jmx.Utilities

public class Utilities
extends java.lang.Object

This class acts as the Utility class for the intrumentation level of the JMX Agent.


Field Summary
(package private) static java.lang.Class cl
           
static java.lang.ClassLoader classLoader
           
(package private) static java.lang.String temp
           
 
Constructor Summary
Utilities()
          NoArg constructor, currently does nothing.
 
Method Summary
static void changeTheRootOID(MBeanInfo mbeaninfo, java.lang.String oldRoot, java.lang.String newRoot)
          This method will be useful for changing the rootOID for SNMP protocol for all the attributes defined in the incoming mbeaninfo object.
static boolean checkExternalIndex(java.lang.Object externalIndexHandler, CompositeData comp, java.lang.String[] indexNames, boolean[] externalIndexFlags)
           
static java.lang.Object checkForDateAndTime(java.lang.Object obj)
           
static boolean checkPattern(java.lang.String info, java.lang.String pat, boolean wc)
           
static int compare(java.lang.Object[] str1, java.lang.Object[] str2)
          This method compares two Object[].
static int compareTo(java.lang.Object[] obj1, java.lang.Object[] obj2)
          Compares the Object array obj1 with Object array obj2
static java.lang.Object convertStringToObject(java.lang.String type, java.lang.String value)
          Converts the String value to Object of type specified in this methods parameter.
static java.lang.String convertTimeTicks(long value)
          Utility method to convert a long value into the Standard Snmp TimeTicks format.
static java.math.BigInteger convertTimeTicksToBigInteger(java.lang.String value)
          Utility method to convert TimeTicks in the Standard String format to long value.
static java.lang.Long convertTimeTicksToLongValue(java.lang.String value)
          Utility method to convert TimeTicks in the Standard String format to long value.
static ModelMBeanInfo convertXmlToModelMBeanInfo(java.io.InputStream is)
          This utility method is used to convert the AdventNet modelmbean XML descriptor inputstream to javax.management.modelmbean.ModelMBeanInfo object.
static ModelMBeanInfo convertXmlToModelMBeanInfo(java.lang.String fileName)
          This utility method is used to convert the AdventNet modelmbean XML descriptor file to javax.management.modelmbean.ModelMBeanInfo object.
static java.lang.String createXMLFilePath(java.lang.String xmlFile)
          Creates the file path name for the input file content.
static java.lang.String dateString(byte[] datearray)
          Converts the byte[] values to String representing the DateandTime.
static byte[] dateStringToByteArray(java.lang.String dateStr)
          Converts the String representing the dateandtime value to byte[] .
static boolean followsObjectNamePattern(java.lang.String string, java.lang.String pattern)
           
static java.lang.Object getAttribute(java.lang.Object mbean, java.lang.String attribute)
          Allows the value of a specified attribute of the specified Dynamic MBean object to be obtained.
static AttributeList getAttributes(java.lang.Object mbean, java.lang.String[] attributes)
          Enables the values of specified several attributes of the specified Dynamic MBean object.
static java.lang.Class getClassForPrimitive(java.lang.String type)
           
static java.lang.String getColumnarSnmpType(ObjectName objName, java.lang.String attrbName, MBeanServer server)
          This method is used to get the SnmpType of a Columnar node in a table.
static java.lang.String getCompositeDataString(CompositeData entry)
          This method is used to get the key-value pairs in the CompositeData as a String.
static java.lang.Object getEntryFromCompositeData(java.lang.Object tableOrVector, CompositeData comp, java.lang.String[] indexNames, java.lang.String entryName)
           
static java.lang.Object getField(java.lang.Object obj, java.lang.String className, java.lang.String fieldName)
          Invokes a "get" method for the given attribute called fieldName in the argument on the Object obj.
static java.lang.Object getField(java.lang.Object obj, java.lang.String className, java.lang.String fieldName, java.lang.ClassLoader loader)
          Invokes a "get" method for the given attribute called fieldName in the argument on the Object obj.
static java.lang.Object[] getIndexValues(java.lang.String[] indexNames, java.lang.Object entry)
          The static method which returns the indexValues from the given entry
static java.lang.Class getProperClass(java.lang.String type)
          This method returns the appropriate Wrapper Class if the string value of the primitive data type is given.
static java.lang.String getScalarSnmpType(ObjectName objName, java.lang.String attrbName, MBeanServer server)
          This method is used to get the SnmpType of a Scalar node.
static TabularData getTabularData(java.lang.Object source, java.lang.String[] indexNames, java.util.Hashtable table, java.lang.Class entryName, java.lang.String tabularParameterInfoDescr)
          The static method which returns TabularData from the table of entries
static TabularData getTabularData(java.lang.Object source, java.lang.String[] indexNames, java.util.Hashtable table, java.lang.String entryName, java.lang.String tabularParameterInfoDescr)
          The static method which returns TabularData from the table of entries
static TabularData getTabularData(java.lang.Object source, java.lang.String[] indexNames, java.lang.Object tableOrVector, java.lang.Class entryName, java.lang.String tabularParameterInfoDescr)
          The static method which returns TabularData from the vector of entries
static TabularData getTabularData(java.lang.Object source, java.lang.String[] indexNames, java.lang.Object tableOrVector, java.lang.String entryName, java.lang.String tabularParameterInfoDescr)
          The static method which returns TabularData from the vector of entries
static java.lang.String getTabularDataString(TabularData table)
          This method is used to get the TabularData contents as a String.
static java.util.Vector getVectorFromCompositeData(CompositeData cd, java.lang.String[] names)
          This class is a utility class to get the contents of rowObject (Composite Data ) It can be used also to fetch all the row contents of the table.
static java.util.Vector getVectorFromCompositeData(CompositeData cd, java.lang.String[] names, boolean dateAndTimeConvertion)
          This class is a utility class to get the contents of rowObject (Composite Data ) It can be used also to fetch all the row contents of the table.
static java.util.Vector getVectorFromTabularData(TabularData tda, java.lang.String[] names)
           
static java.util.Vector getVectorFromTabularData(TabularData tda, java.lang.String[] names, boolean dateAndTimeConvert)
           
static java.lang.Object invoke(java.lang.Object mbean, java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature)
          Allows an action to be invoked on the specified Dynamic MBean object.
static boolean isPrimitiveArrayDataType(java.lang.String type)
           
static boolean isValidIpAddress(java.lang.String ipString)
          This method is used to check whether the given IpAddress is a valid one.
static byte[] longToDateBytes(long time)
          The Utility method to convert the Time in milliseconds to DateAndTime Textual Convention byte Array
static java.lang.String longToDateString(long time)
          The Utility method to convert the Time in milliseconds to DateAndTime Textual Convention String NOTE: Supports only GMT string...
static boolean objectNameSpecificChecks(java.lang.String string, java.lang.String pattern)
           
static java.lang.Object[] primitiveDataArrayToObjectArray(java.lang.String type, java.lang.Object value)
           
static void printModelMBeanInfo(ModelMBeanInfo info)
          Prints the modelmbeaninfo object
static void quickSort(java.lang.Object[] a, int lo0, int hi0)
          This is a generic version of C.A.R Hoare's Quick Sort algorithm.
static void setAttribute(java.lang.Object mbean, Attribute attribute)
          Sets the value of the specified attribute of the specified Dynamic MBean object.
static AttributeList setAttributes(java.lang.Object mbean, AttributeList attributes)
          Sets the values of specified several attributes of the specified Dynamic MBean object.
static void setClassLoader(java.lang.ClassLoader cls)
           
static void setField(java.lang.Object obj, java.lang.String className, java.lang.String fieldName, java.lang.Object value)
          Invokes a "set" method for the given attribute called fieldName in the argument on the Object obj.
static void sortIndex(java.lang.Object[] indicesArray)
          This method is used to sort the indices in a table.
static java.lang.Object[] stringArrayToObjectArray(java.lang.String type, java.lang.String[] values)
          Converts the String[] values to Object[] of type specified in this methods parameter.
static java.lang.Object stringArrayToPrimitiveObject(java.lang.String type, java.lang.String[] values)
           
static boolean wildcardMatch(java.lang.String pattern, java.lang.String string)
           
static boolean wildCPattern(java.lang.String p_string, java.lang.String p_pattern)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classLoader

public static java.lang.ClassLoader classLoader

cl

static java.lang.Class cl

temp

static java.lang.String temp
Constructor Detail

Utilities

public Utilities()
NoArg constructor, currently does nothing.
Method Detail

setClassLoader

public static void setClassLoader(java.lang.ClassLoader cls)

getEntryFromCompositeData

public static java.lang.Object getEntryFromCompositeData(java.lang.Object tableOrVector,
                                                         CompositeData comp,
                                                         java.lang.String[] indexNames,
                                                         java.lang.String entryName)

getIndexValues

public static java.lang.Object[] getIndexValues(java.lang.String[] indexNames,
                                                java.lang.Object entry)
                                         throws java.lang.Exception
The static method which returns the indexValues from the given entry
Parameters:
indexNames - the String array denoting the index names.
entry - the entry object

getField

public static java.lang.Object getField(java.lang.Object obj,
                                        java.lang.String className,
                                        java.lang.String fieldName,
                                        java.lang.ClassLoader loader)
Invokes a "get" method for the given attribute called fieldName in the argument on the Object obj.
Parameters:
obj - the Object on which the introspection is done.
className - the className of the object.
fieldName - the attribute's name.
loader - the classloader of entry file
Returns:
the return object from the "get" method of the atribute.

getTabularData

public static TabularData getTabularData(java.lang.Object source,
                                         java.lang.String[] indexNames,
                                         java.util.Hashtable table,
                                         java.lang.String entryName,
                                         java.lang.String tabularParameterInfoDescr)
                                  throws java.lang.Exception
The static method which returns TabularData from the table of entries
Parameters:
source - the Source table object which makes call to this method.
indexNames - the String array denoting the index names.
table - the Hashtable which has all the entries as values.
entryName - the name of the entry file.
tabularParameterInfoDescr - the string which describes the TabularParameterInfo

getTabularData

public static TabularData getTabularData(java.lang.Object source,
                                         java.lang.String[] indexNames,
                                         java.util.Hashtable table,
                                         java.lang.Class entryName,
                                         java.lang.String tabularParameterInfoDescr)
                                  throws java.lang.Exception
The static method which returns TabularData from the table of entries
Parameters:
source - the Source table object which makes call to this method.
indexNames - the String array denoting the index names.
table - the Hashtable which has all the entries as values.
entryName - the Class Object of the table entry.
tabularParameterInfoDescr - the string which describes the TabularParameterInfo

getTabularData

public static TabularData getTabularData(java.lang.Object source,
                                         java.lang.String[] indexNames,
                                         java.lang.Object tableOrVector,
                                         java.lang.String entryName,
                                         java.lang.String tabularParameterInfoDescr)
                                  throws java.lang.Exception
The static method which returns TabularData from the vector of entries
Parameters:
source - the Source table object which makes call to this method.
indexNames - the String array denoting the index names.
tableOrVector - the Hashtable/Vector which has all the entries as values.
entryName - the name of the entry file.
tabularParameterInfoDescr - the string which describes the TabularParameterInfo

getTabularData

public static TabularData getTabularData(java.lang.Object source,
                                         java.lang.String[] indexNames,
                                         java.lang.Object tableOrVector,
                                         java.lang.Class entryName,
                                         java.lang.String tabularParameterInfoDescr)
                                  throws java.lang.Exception
The static method which returns TabularData from the vector of entries
Parameters:
source - the Source table object which makes call to this method.
indexNames - the String array denoting the index names.
tableOrVector - the Hashtable/Vector which has all the entries as values.
entryName - the Class object of the entry file.
tabularParameterInfoDescr - the string which describes the TabularParameterInfo

getField

public static java.lang.Object getField(java.lang.Object obj,
                                        java.lang.String className,
                                        java.lang.String fieldName)
Invokes a "get" method for the given attribute called fieldName in the argument on the Object obj.
Parameters:
obj - the Object on which the introspection is done.
className - the className of the object.
fieldName - the attribute's name.
Returns:
the return object from the "get" method of the atribute.

setField

public static void setField(java.lang.Object obj,
                            java.lang.String className,
                            java.lang.String fieldName,
                            java.lang.Object value)
                     throws AgentException
Invokes a "set" method for the given attribute called fieldName in the argument on the Object obj.
Parameters:
obj - the Object on which the introspection is done.
className - the className of the object.
fieldName - the attribute's name.

getAttribute

public static java.lang.Object getAttribute(java.lang.Object mbean,
                                            java.lang.String attribute)
                                     throws AttributeNotFoundException,
                                            MBeanException,
                                            ReflectionException
Allows the value of a specified attribute of the specified Dynamic MBean object to be obtained.
Parameters:
mbean - the DynamicMBean object
attribute - The name of the attribute to be retrieved
Returns:
The value of the attribute retrieved.
Throws:
AttributeNotFoundException - when attribute is not found.
MBeanException - Wraps an exception thrown by the MBean's getter.
ReflectionException - Wraps an java.lang.Exception thrown while trying to invoke the getter.

getAttributes

public static AttributeList getAttributes(java.lang.Object mbean,
                                          java.lang.String[] attributes)
Enables the values of specified several attributes of the specified Dynamic MBean object.
Parameters:
mbean - the DynamicMBean object
attributes - A list of the attributes to be retrieved.
Returns:
The list of the retrieved attributes.

invoke

public static java.lang.Object invoke(java.lang.Object mbean,
                                      java.lang.String actionName,
                                      java.lang.Object[] params,
                                      java.lang.String[] signature)
                               throws MBeanException,
                                      ReflectionException
Allows an action to be invoked on the specified Dynamic MBean object.
Parameters:
mbean - the DynamicMBean object
actionName - The name of the action to be invoked.
params - An array containing the parameters to be set when the action is invoked.
signature - An array containing the signature of the action. The class objects will be loaded through the same class loader as the one used for loading the MBean on which the action is invoked.
Returns:
The object returned by the action, which represents the result of invoking the action on the MBean specified.
Throws:
MBeanException - Wraps an exception thrown by the MBean's invoked method.
ReflectionException - Wraps an java.lang.Exception thrown while trying to invoke the method

getClassForPrimitive

public static java.lang.Class getClassForPrimitive(java.lang.String type)

getProperClass

public static java.lang.Class getProperClass(java.lang.String type)
This method returns the appropriate Wrapper Class if the string value of the primitive data type is given.
Parameters:
type - The String representation of the primitive data type
Returns:
The appropriate wrapper class.

setAttribute

public static void setAttribute(java.lang.Object mbean,
                                Attribute attribute)
                         throws AttributeNotFoundException,
                                InvalidAttributeValueException,
                                MBeanException,
                                ReflectionException
Sets the value of the specified attribute of the specified Dynamic MBean object.
Parameters:
mbean - the DynamicMBean object
attribute - The identification of the attribute to be set and the value it is to be set to.
Throws:
AttributeNotFoundException - when the attribute is not found.
InvalidAttributeValueException - when the attribute found to be a invalid one.
MBeanException - Wraps an exception thrown by the MBean's setter.
ReflectionException - Wraps an exception thrown while trying to invoke the MBean's setter.

setAttributes

public static AttributeList setAttributes(java.lang.Object mbean,
                                          AttributeList attributes)
Sets the values of specified several attributes of the specified Dynamic MBean object.
Parameters:
mbean - the DynamicMBean object
attributes - A list of attributes: The identification of the attributes to be set and the values they are to be set to.

checkExternalIndex

public static boolean checkExternalIndex(java.lang.Object externalIndexHandler,
                                         CompositeData comp,
                                         java.lang.String[] indexNames,
                                         boolean[] externalIndexFlags)

compareTo

public static int compareTo(java.lang.Object[] obj1,
                            java.lang.Object[] obj2)
Compares the Object array obj1 with Object array obj2
Returns:
-1 if obj1 lessthan obj2, 0 if obj1 equals obj2 1 if obj1 greaterthan obj2

convertStringToObject

public static java.lang.Object convertStringToObject(java.lang.String type,
                                                     java.lang.String value)
                                              throws java.lang.Exception
Converts the String value to Object of type specified in this methods parameter.
Parameters:
type - the type of the object to be returned.
value - the value from which the returned object is derived.
Throws:
java.lang.Exception - when forming the object with the given value fails.

stringArrayToObjectArray

public static java.lang.Object[] stringArrayToObjectArray(java.lang.String type,
                                                          java.lang.String[] values)
                                                   throws java.lang.Exception
Converts the String[] values to Object[] of type specified in this methods parameter.
Parameters:
type - the type of the objects to be returned in the array.
values - the values from which the returned object array is derived.
Throws:
java.lang.Exception - when forming the object array with the given values fails.

stringArrayToPrimitiveObject

public static java.lang.Object stringArrayToPrimitiveObject(java.lang.String type,
                                                            java.lang.String[] values)
                                                     throws java.lang.Exception

isPrimitiveArrayDataType

public static boolean isPrimitiveArrayDataType(java.lang.String type)

primitiveDataArrayToObjectArray

public static java.lang.Object[] primitiveDataArrayToObjectArray(java.lang.String type,
                                                                 java.lang.Object value)

dateString

public static java.lang.String dateString(byte[] datearray)
                                   throws java.lang.Exception
Converts the byte[] values to String representing the DateandTime.
Parameters:
datearray - the array of bytes to be returned as a String representing the DateandTime.
Throws:
java.lang.Exception - when forming the String with the given values fails.

dateStringToByteArray

public static byte[] dateStringToByteArray(java.lang.String dateStr)
                                    throws java.lang.Exception
Converts the String representing the dateandtime value to byte[] .
Parameters:
dateStr - the String representing the DateandTime that is to be converted to the byte[].
Throws:
java.lang.Exception - when forming the byte array with the given values fails.

longToDateBytes

public static byte[] longToDateBytes(long time)
                              throws java.lang.Exception
The Utility method to convert the Time in milliseconds to DateAndTime Textual Convention byte Array
Parameters:
time - The current Time in milliseconds.

longToDateString

public static java.lang.String longToDateString(long time)
                                         throws java.lang.Exception
The Utility method to convert the Time in milliseconds to DateAndTime Textual Convention String NOTE: Supports only GMT string...
Parameters:
time - The current Time in milliseconds.

getScalarSnmpType

public static java.lang.String getScalarSnmpType(ObjectName objName,
                                                 java.lang.String attrbName,
                                                 MBeanServer server)
This method is used to get the SnmpType of a Scalar node. Useful for special data types such as DateAndTime, TimeTicks, etc.
Parameters:
objName - The ObjectName of the MBean.
attrbName - The attribute name. eg) AgentDescr
server - The instance of the MBeanServer
Returns:
String specifying the SnmpType.

getColumnarSnmpType

public static java.lang.String getColumnarSnmpType(ObjectName objName,
                                                   java.lang.String attrbName,
                                                   MBeanServer server)
This method is used to get the SnmpType of a Columnar node in a table. Useful for special data types such as DateAndTime, TimeTicks, etc.
Parameters:
objName - The ObjectName of the MBean.
attrbName - The attribute name.
server - The instance of the MBeanServer
Returns:
String specifying the SnmpType.

convertXmlToModelMBeanInfo

public static ModelMBeanInfo convertXmlToModelMBeanInfo(java.lang.String fileName)
                                                 throws java.lang.Exception
This utility method is used to convert the AdventNet modelmbean XML descriptor file to javax.management.modelmbean.ModelMBeanInfo object.

convertXmlToModelMBeanInfo

public static ModelMBeanInfo convertXmlToModelMBeanInfo(java.io.InputStream is)
                                                 throws java.lang.Exception
This utility method is used to convert the AdventNet modelmbean XML descriptor inputstream to javax.management.modelmbean.ModelMBeanInfo object.

printModelMBeanInfo

public static void printModelMBeanInfo(ModelMBeanInfo info)
Prints the modelmbeaninfo object

changeTheRootOID

public static void changeTheRootOID(MBeanInfo mbeaninfo,
                                    java.lang.String oldRoot,
                                    java.lang.String newRoot)
This method will be useful for changing the rootOID for SNMP protocol for all the attributes defined in the incoming mbeaninfo object.
Parameters:
mbeaninfo - the MBeanInfo object
oldRoot - the rootOID present in the incoming mbeaninfo attribute's protocolMap
newRoot - the new root OID to be set.

createXMLFilePath

public static java.lang.String createXMLFilePath(java.lang.String xmlFile)
                                          throws java.lang.Exception
Creates the file path name for the input file content. This will treat the incoming xmlFile to be the file content in printable String format and writes in a temporary file structure "temp/temp.xml" and returns this String

sortIndex

public static void sortIndex(java.lang.Object[] indicesArray)
This method is used to sort the indices in a table. It also supports sorting of multiple indices. As of now, only String, Byte, Double, Long and Integer data types are supported. This uses bubble sort technique and hence for large tables, the quickSort() method will be useful.
Parameters:
index - The Object array of object arrays to be sorted. Each element in the Object array is an object array by itself which represents the indices of a row.
See Also:
quickSort()

quickSort

public static void quickSort(java.lang.Object[] a,
                             int lo0,
                             int hi0)
                      throws java.lang.Exception
This is a generic version of C.A.R Hoare's Quick Sort algorithm. This will handle arrays that are already sorted, and arrays with duplicate keys.
If you think of a one dimensional array as going from the lowest index on the left to the highest index on the right then the parameters to this function are lowest index or left and highest index or right. The first time you call this function it will be with the parameters 0, a.length - 1.
Parameters:
a - an integer array
lo0 - left boundary of array partition
hi0 - right boundary of array partition

compare

public static int compare(java.lang.Object[] str1,
                          java.lang.Object[] str2)
This method compares two Object[]. Each Object[] is the array of indices in a single row of a table. As of now, only String, Byte, Double, Long and Integer data types are supported. If any other data type is passed, it will return -1.
Returns:
1 if str1>str2, -1 if str1

isValidIpAddress

public static boolean isValidIpAddress(java.lang.String ipString)
This method is used to check whether the given IpAddress is a valid one.
Parameters:
ipString - The IpAddress as a String.
Returns:
true - If valid ipAddress.

convertTimeTicks

public static java.lang.String convertTimeTicks(long value)
Utility method to convert a long value into the Standard Snmp TimeTicks format. Used by the adaptors to handle timeticks data type.
Parameters:
long - value to be converted into timeticks format.
Returns:
String representing the long value in timeticks format.

convertTimeTicksToLongValue

public static java.lang.Long convertTimeTicksToLongValue(java.lang.String value)
Utility method to convert TimeTicks in the Standard String format to long value. Used by the adaptors to handle timeticks data type.
Parameters:
String - value to be converted into long. Eg) 3 days, 12 hours, 4 minutes, 24 seconds, 480 milliseconds.
Returns:
Long representing the timeticks value.

convertTimeTicksToBigInteger

public static java.math.BigInteger convertTimeTicksToBigInteger(java.lang.String value)
Utility method to convert TimeTicks in the Standard String format to long value. Used by the adaptors to handle timeticks data type.
Parameters:
String - value to be converted into long. Eg) 3 days, 12 hours, 4 minutes, 24 seconds, 480 milliseconds.
Returns:
BigInteger representing the timeticks value.

getCompositeDataString

public static java.lang.String getCompositeDataString(CompositeData entry)
This method is used to get the key-value pairs in the CompositeData as a String. The entries would be obtained by enumerating and hence no specific order can be expected.
Parameters:
entry - The CompositeData Object.
Returns:
A string containing the CompositeData information.
See Also:
getTabularDataString(TabularData)

getTabularDataString

public static java.lang.String getTabularDataString(TabularData table)
This method is used to get the TabularData contents as a String. The entries would be obtained by enumerating and hence no specific order can be expected.
Parameters:
table - The TabularData.
Returns:
A string containing the TabularData information.
See Also:
getCompositeDataString(CompositeData)

getVectorFromCompositeData

public static java.util.Vector getVectorFromCompositeData(CompositeData cd,
                                                          java.lang.String[] names)
This class is a utility class to get the contents of rowObject (Composite Data ) It can be used also to fetch all the row contents of the table. (TabularData )

getVectorFromCompositeData

public static java.util.Vector getVectorFromCompositeData(CompositeData cd,
                                                          java.lang.String[] names,
                                                          boolean dateAndTimeConvertion)
This class is a utility class to get the contents of rowObject (Composite Data ) It can be used also to fetch all the row contents of the table. (TabularData )

getVectorFromTabularData

public static java.util.Vector getVectorFromTabularData(TabularData tda,
                                                        java.lang.String[] names)

getVectorFromTabularData

public static java.util.Vector getVectorFromTabularData(TabularData tda,
                                                        java.lang.String[] names,
                                                        boolean dateAndTimeConvert)

checkForDateAndTime

public static java.lang.Object checkForDateAndTime(java.lang.Object obj)

followsObjectNamePattern

public static boolean followsObjectNamePattern(java.lang.String string,
                                               java.lang.String pattern)
                                        throws java.lang.Exception

objectNameSpecificChecks

public static boolean objectNameSpecificChecks(java.lang.String string,
                                               java.lang.String pattern)
                                        throws java.lang.Exception

checkPattern

public static boolean checkPattern(java.lang.String info,
                                   java.lang.String pat,
                                   boolean wc)

wildCPattern

public static boolean wildCPattern(java.lang.String p_string,
                                   java.lang.String p_pattern)

wildcardMatch

public static boolean wildcardMatch(java.lang.String pattern,
                                    java.lang.String string)