org.plasma.provisioning
Class NameUtils

java.lang.Object
  extended by org.plasma.provisioning.NameUtils

public class NameUtils
extends java.lang.Object


Constructor Summary
NameUtils()
           
 
Method Summary
static java.lang.String firstToLowerCase(java.lang.String name)
           
static java.lang.String firstToUpperCase(java.lang.String name)
           
static java.lang.String toAbbreviatedName(java.lang.String name)
          Creates a capitalized, underscore delimited name from the given camel case name and removes consonant characters where the name exceeds the given max.
static java.lang.String toAbbreviatedName(java.lang.String name, int max)
          Creates a capitalized, underscore delimited name from the given camel case name and removes consonant characters where the name exceeds the given max.
static java.lang.String toCamelCase(java.lang.String name)
          Creates a capitalized, underscore delimited name from the given camel case name.
static java.lang.String toConstantName(java.lang.String name)
          Creates a capitalized, underscore delimited name from the given camel case name.
static java.lang.String[] toPackageTokens(java.lang.String uri)
          Tokenizes the given URI as an array of names suitable to be used as a UML package hierarchy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameUtils

public NameUtils()
Method Detail

toPackageTokens

public static java.lang.String[] toPackageTokens(java.lang.String uri)
Tokenizes the given URI as an array of names suitable to be used as a UML package hierarchy.

Parameters:
uri -
Returns:
the name array

toCamelCase

public static java.lang.String toCamelCase(java.lang.String name)
Creates a capitalized, underscore delimited name from the given camel case name.

Parameters:
name - the name
Returns:
the result name

toConstantName

public static java.lang.String toConstantName(java.lang.String name)
Creates a capitalized, underscore delimited name from the given camel case name.

Parameters:
name - the name
Returns:
the result name

toAbbreviatedName

public static java.lang.String toAbbreviatedName(java.lang.String name)
Creates a capitalized, underscore delimited name from the given camel case name and removes consonant characters where the name exceeds the given max.

Parameters:
name - the name
Returns:

toAbbreviatedName

public static java.lang.String toAbbreviatedName(java.lang.String name,
                                                 int max)
Creates a capitalized, underscore delimited name from the given camel case name and removes consonant characters where the name exceeds the given max.

Parameters:
name - the name
max - the max size to allow before abbreviation begins.
Returns:

firstToUpperCase

public static java.lang.String firstToUpperCase(java.lang.String name)

firstToLowerCase

public static java.lang.String firstToLowerCase(java.lang.String name)


Copyright © 2013. All Rights Reserved.