org.objectweb.telosys.common
Class SymbolicConfigVar

java.lang.Object
  extended byorg.objectweb.telosys.common.SymbolicConfigVar

public class SymbolicConfigVar
extends java.lang.Object

Utility class for "symbolic variables" operations ( set of static methods )
Designed to apply the values of the Telosys "symbolic variables" :
${SCREENNAME}, ${SCREENNAME_LC} or ${SCREENNAME_UC}

Since:
1.1.0

Constructor Summary
SymbolicConfigVar()
           
 
Method Summary
static java.lang.String applyBeanName(java.lang.String pattern, java.lang.String beanNameValue)
          Applies the given "bean name value" to the given pattern
The string "${BEANNAME}" in the pattern will be replaced by the bean name
NB : The "pattern" is supposed to contain only one occurrence of "${BEANNAME}"
static java.lang.String applyScreenName(java.lang.String pattern, java.lang.String screenNameValue)
          Applies the given "screen name value" to the given pattern
Replaces all the occurrences of the symbolic variables
"${SCREENNAME}", "${SCREENNAME_UC}" and "${SCREENNAME_LC}" in the given pattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SymbolicConfigVar

public SymbolicConfigVar()
Method Detail

applyScreenName

public static java.lang.String applyScreenName(java.lang.String pattern,
                                               java.lang.String screenNameValue)
Applies the given "screen name value" to the given pattern
Replaces all the occurrences of the symbolic variables
"${SCREENNAME}", "${SCREENNAME_UC}" and "${SCREENNAME_LC}" in the given pattern

Parameters:
pattern - the pattern containing 0 to N symbolic variables
screenNameValue - the value to apply
Returns:

applyBeanName

public static java.lang.String applyBeanName(java.lang.String pattern,
                                             java.lang.String beanNameValue)
Applies the given "bean name value" to the given pattern
The string "${BEANNAME}" in the pattern will be replaced by the bean name
NB : The "pattern" is supposed to contain only one occurrence of "${BEANNAME}"

Parameters:
pattern - the pattern ( e.g. "my.package.${BEANNAME}DAO" )
beanNameValue - the value to apply ( e.g. "Book" )
Returns:
the resulting string ( e.g. "my.package.BookDAO" )
Since:
1.0.0