org.andromda.metafacades.uml
Class NameMasker

java.lang.Object
  extended by org.andromda.metafacades.uml.NameMasker

public class NameMasker
extends java.lang.Object

Provides the ability to mask names in a standard manner.

Author:
Chad Brandon

Field Summary
static java.lang.String LOWERCAMELCASE
          The lowercamelcase mask.
static java.lang.String LOWERCASE
          The lowercase mask.
static java.lang.String LOWERUNDERSCORE
          The lowerunderscore mask.
static java.lang.String NONE
          The none mask.
static java.lang.String NOSPACE
          The nospace mask.
static java.lang.String UNDERSCORE
          The underscore mask.
static java.lang.String UPPERCAMELCASE
          The uppercamelcase mask.
static java.lang.String UPPERCASE
          The uppercase mask.
static java.lang.String UPPERUNDERSCORE
          The upperunderscore mask.
 
Constructor Summary
NameMasker()
           
 
Method Summary
static java.lang.String mask(java.lang.String name, java.lang.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 java.lang.String UPPERCASE
The uppercase mask.

See Also:
Constant Field Values

UNDERSCORE

public static final java.lang.String UNDERSCORE
The underscore mask.

See Also:
Constant Field Values

UPPERUNDERSCORE

public static final java.lang.String UPPERUNDERSCORE
The upperunderscore mask.

See Also:
Constant Field Values

LOWERCASE

public static final java.lang.String LOWERCASE
The lowercase mask.

See Also:
Constant Field Values

LOWERUNDERSCORE

public static final java.lang.String LOWERUNDERSCORE
The lowerunderscore mask.

See Also:
Constant Field Values

UPPERCAMELCASE

public static final java.lang.String UPPERCAMELCASE
The uppercamelcase mask.

See Also:
Constant Field Values

LOWERCAMELCASE

public static final java.lang.String LOWERCAMELCASE
The lowercamelcase mask.

See Also:
Constant Field Values

NOSPACE

public static final java.lang.String NOSPACE
The nospace mask.

See Also:
Constant Field Values

NONE

public static final java.lang.String NONE
The none mask.

See Also:
Constant Field Values
Constructor Detail

NameMasker

public NameMasker()
Method Detail

mask

public static java.lang.String mask(java.lang.String name,
                                    java.lang.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-2009 AndroMDA.org. All Rights Reserved.