org.sadun.util
Class EnvironmentVariables.SimpleNameTransformer

java.lang.Object
  extended byorg.sadun.util.EnvironmentVariables.SimpleNameTransformer
All Implemented Interfaces:
EnvironmentVariables.NameTransformer
Enclosing class:
EnvironmentVariables

public class EnvironmentVariables.SimpleNameTransformer
extends java.lang.Object
implements EnvironmentVariables.NameTransformer

A NameTransformerwhich produces names in the style of typical java property names. In detail:

For example, JAVA_HOME will become env.java.home, CommSpec will become comm.spec and My_StrangeVariableName will become my.strange.variable.name

Version:
1.1
Author:
cris

Constructor Summary
EnvironmentVariables.SimpleNameTransformer()
           
EnvironmentVariables.SimpleNameTransformer(java.lang.String prefix)
           
 
Method Summary
 java.lang.String transform(java.lang.String name)
           
 java.lang.String transformAllUpperCase(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentVariables.SimpleNameTransformer

public EnvironmentVariables.SimpleNameTransformer(java.lang.String prefix)

EnvironmentVariables.SimpleNameTransformer

public EnvironmentVariables.SimpleNameTransformer()
Method Detail

transform

public java.lang.String transform(java.lang.String name)
Specified by:
transform in interface EnvironmentVariables.NameTransformer

transformAllUpperCase

public java.lang.String transformAllUpperCase(java.lang.String name)
See Also:
EnvironmentVariables.NameTransformer.transform(java.lang.String)