org.topcased.properties.configurator.util
Class GeneratorUtils
java.lang.Object
org.topcased.properties.configurator.util.GeneratorUtils
public class GeneratorUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneratorUtils
public GeneratorUtils()
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)
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.