gov.nih.nci.caarray.services.fileparse2.parsers
Class ParserUtils

java.lang.Object
  extended by gov.nih.nci.caarray.services.fileparse2.parsers.ParserUtils

public final class ParserUtils
extends java.lang.Object

Author:
TranP

Field Summary
static java.lang.String NEW_LINE
          Indicator for the new line delimiter.
static QuantitationTypeName2JavaPropertyNameMap quantitationTypeName2JavaPropertyNameMap_
           
static java.lang.String TAB
           
 
Method Summary
static org.apache.commons.beanutils.BasicDynaClass createBasicDynaBeanClass(java.lang.String className, java.lang.String[] propNames)
           
static java.lang.String getJavaPropertyName(java.lang.String quantTypeName)
          Translates a given quantTypeName to its DynaBean's attribute name as defined in quantitationNames.properties.
static java.lang.String[] getOtherPropertyNames(org.apache.commons.beanutils.DynaBean bean, java.lang.String[] propertyNames)
          Returns other property names in the specified bean that are not in the specified array of property names.
static java.lang.String getQuantitationTypeName(java.lang.String javaPropertyName)
          Translates a given javaPropertyName to its original quantification name as defined in quantitationNames.properties.
static void main(java.lang.String[] args)
           
static java.lang.String[] prependItemToArray(java.lang.String item, java.lang.String[] array)
          Inserts the specified item at the head of the array.
static java.lang.String removeQuotes(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAB

public static final java.lang.String TAB
See Also:
Constant Field Values

quantitationTypeName2JavaPropertyNameMap_

public static QuantitationTypeName2JavaPropertyNameMap quantitationTypeName2JavaPropertyNameMap_

NEW_LINE

public static final java.lang.String NEW_LINE
Indicator for the new line delimiter. This is to serve as a marker but not the real new line. Because character(s) representing new line is system dependent, code using this constant must check for different new line characters for different systems to handle new line appropriately.

Method Detail

removeQuotes

public static final java.lang.String removeQuotes(java.lang.String value)

createBasicDynaBeanClass

public static final org.apache.commons.beanutils.BasicDynaClass createBasicDynaBeanClass(java.lang.String className,
                                                                                         java.lang.String[] propNames)

prependItemToArray

public static final java.lang.String[] prependItemToArray(java.lang.String item,
                                                          java.lang.String[] array)
Inserts the specified item at the head of the array.

Parameters:
item -
array -
Returns:

getOtherPropertyNames

public static java.lang.String[] getOtherPropertyNames(org.apache.commons.beanutils.DynaBean bean,
                                                       java.lang.String[] propertyNames)
Returns other property names in the specified bean that are not in the specified array of property names.

Parameters:
bean - - The DynaBean whose other properties are searched.
propertyNames - - The name of the properties that are excluded from the returned property names.
Returns:
An array of other property names than the specified property names.

getJavaPropertyName

public static final java.lang.String getJavaPropertyName(java.lang.String quantTypeName)
Translates a given quantTypeName to its DynaBean's attribute name as defined in quantitationNames.properties.

Parameters:
quantTypeName -
Returns:

getQuantitationTypeName

public static final java.lang.String getQuantitationTypeName(java.lang.String javaPropertyName)
Translates a given javaPropertyName to its original quantification name as defined in quantitationNames.properties.

Parameters:
javaPropertyName -
Returns:

main

public static void main(java.lang.String[] args)