org.andromda.metafacades.uml
Class NameMasker

java.lang.Object
  extended byorg.andromda.metafacades.uml.NameMasker

public class NameMasker
extends Object

Provides the ability to mask names in a standard manner.

Author:
Chad Brandon

Field Summary
static String LOWERCAMELCASE
          The lowercamelcase mask.
static String LOWERCASE
          The lowercase mask.
static String LOWERUNDERSCORE
          The lowerunderscore mask.
static String NONE
          The none mask.
static String NOSPACE
          The nospace mask.
static String UNDERSCORE
          The underscore mask.
static String UPPERCAMELCASE
          The uppercamelcase mask.
static String UPPERCASE
          The uppercase mask.
static String UPPERUNDERSCORE
          The upperunderscore mask.
 
Constructor Summary
NameMasker()
           
 
Method Summary
static String mask(String name, String mask)
          Returns the name with the appropriate mask applied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPPERCASE

public static final String UPPERCASE
The uppercase mask.

See Also:
Constant Field Values

UNDERSCORE

public static final String UNDERSCORE
The underscore mask.

See Also:
Constant Field Values

UPPERUNDERSCORE

public static final String UPPERUNDERSCORE
The upperunderscore mask.

See Also:
Constant Field Values

LOWERCASE

public static final String LOWERCASE
The lowercase mask.

See Also:
Constant Field Values

LOWERUNDERSCORE

public static final String LOWERUNDERSCORE
The lowerunderscore mask.

See Also:
Constant Field Values

UPPERCAMELCASE

public static final String UPPERCAMELCASE
The uppercamelcase mask.

See Also:
Constant Field Values

LOWERCAMELCASE

public static final String LOWERCAMELCASE
The lowercamelcase mask.

See Also:
Constant Field Values

NOSPACE

public static final String NOSPACE
The nospace mask.

See Also:
Constant Field Values

NONE

public static final String NONE
The none mask.

See Also:
Constant Field Values
Constructor Detail

NameMasker

public NameMasker()
Method Detail

mask

public static String mask(String name,
                          String mask)
Returns the name with the appropriate mask applied. The mask, must match one of the valid mask properties or will be ignored.

Parameters:
name - the name to be masked
mask - the mask to apply
Returns:
the masked name.


Copyright © 2003-2006 The AndroMDA Team. All Rights Reserved.