com.taggercat.template
Class Text

java.lang.Object
  extended by com.taggercat.template.Text

public class Text
extends java.lang.Object

This class is a set of static functions to convert Strings, Names to Captions etc.

 

Constructor Summary
Text()
           
 
Method Summary
static java.lang.String anchorJSPInclude(java.lang.String jspIncludeLine, java.lang.String anchorPattern)
           
static java.lang.String convertNameToCaption(java.lang.String name)
          Converts the field's column name to an assumed ( nicer ) caption.
static java.lang.String getABSHashCode(java.lang.String str)
           
static java.lang.String getClassAttr(java.lang.String datatype, java.lang.String numericClass, java.lang.String otherClass)
           
 int getNumFields(java.lang.String fieldList)
           
static java.lang.String getTimeUUID()
           
static boolean isWildCardMatch(java.lang.String string, java.lang.String pattern)
           
static java.lang.String removeSpaces(java.lang.String str)
           
static java.lang.String toBeanAttributeName(java.lang.Object fldName)
          Converts a field name to a bean name
static java.lang.String toBeanAttributeName(java.lang.String fldName)
          Converts a field name to a bean name
static java.lang.String upperCaseFirstLetter(java.lang.String fldName)
          Title case the first char on a string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Text

public Text()
Method Detail

convertNameToCaption

public static java.lang.String convertNameToCaption(java.lang.String name)
Converts the field's column name to an assumed ( nicer ) caption.
For example:
 ISV_Partner -> ISV Partner
 is_parent -> IS Parent
 

Parameters:
name - the string to convert to a caption
Returns:
the caption

toBeanAttributeName

public static java.lang.String toBeanAttributeName(java.lang.Object fldName)
Converts a field name to a bean name

Parameters:
fldName - the field name
Returns:
the converted field name

upperCaseFirstLetter

public static java.lang.String upperCaseFirstLetter(java.lang.String fldName)
Title case the first char on a string

Parameters:
fldName - the field name
Returns:
the converted field name

toBeanAttributeName

public static java.lang.String toBeanAttributeName(java.lang.String fldName)
Converts a field name to a bean name

Parameters:
fldName - the field name
Returns:
the converted field name

getClassAttr

public static java.lang.String getClassAttr(java.lang.String datatype,
                                            java.lang.String numericClass,
                                            java.lang.String otherClass)

getABSHashCode

public static java.lang.String getABSHashCode(java.lang.String str)

removeSpaces

public static java.lang.String removeSpaces(java.lang.String str)

getNumFields

public int getNumFields(java.lang.String fieldList)

isWildCardMatch

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

anchorJSPInclude

public static java.lang.String anchorJSPInclude(java.lang.String jspIncludeLine,
                                                java.lang.String anchorPattern)

getTimeUUID

public static java.lang.String getTimeUUID()