Generators

org.topcased.properties.configurator.util
Class GeneratorUtils

java.lang.Object
  extended by org.topcased.properties.configurator.util.GeneratorUtils

public class GeneratorUtils
extends java.lang.Object


Constructor Summary
GeneratorUtils()
           
 
Method Summary
static java.lang.String capName(java.lang.String name)
           
static java.util.Collection collectAllContainmentFeatures(java.lang.Object object)
           
static java.util.Collection collectAllNonContainmentFeatures(java.lang.Object object)
           
static java.util.Collection collectContainedObjects(java.lang.Object object)
           
static java.lang.String formatId(java.lang.String idMalformed)
          Return a string ID weel formed
static java.lang.String getSectionClassName(java.lang.String name)
           
static java.lang.String removeSpaces(java.lang.String string)
          Remove the blanks in the given string
static java.lang.String removeSpecialCharacters(java.lang.String string)
          Remove special characters that would cause error in an XML file.
static java.lang.String replaceSpecialCharacters(java.lang.String string)
           
static java.lang.String uncapName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorUtils

public GeneratorUtils()
Method Detail

capName

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

uncapName

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

replaceSpecialCharacters

public static java.lang.String replaceSpecialCharacters(java.lang.String string)

getSectionClassName

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

removeSpecialCharacters

public static java.lang.String removeSpecialCharacters(java.lang.String string)
Remove special characters that would cause error in an XML file.

Parameters:
string -
Returns:
The string without special characters

removeSpaces

public static java.lang.String removeSpaces(java.lang.String string)
Remove the blanks in the given string

Parameters:
string -
Returns:
The string without blank

formatId

public static java.lang.String formatId(java.lang.String idMalformed)
Return a string ID weel formed

Parameters:
idMalformed - an ID not formated correctly
Returns:
The corresponding well formed string

collectContainedObjects

public static java.util.Collection collectContainedObjects(java.lang.Object object)

collectAllContainmentFeatures

public static java.util.Collection collectAllContainmentFeatures(java.lang.Object object)

collectAllNonContainmentFeatures

public static java.util.Collection collectAllNonContainmentFeatures(java.lang.Object object)

Generators

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.