001: package org.andromda.core.common;
002:
003: import org.apache.commons.lang.StringUtils;
004:
005: /**
006: * @deprecated use {@link org.andromda.utils.StringUtilsHelper} instead
007: */
008: public class StringUtilsHelper extends StringUtils {
009: /**
010: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#replaceSuffix(String, String, String)} instead
011: */
012: public static String replaceSuffix(final String src,
013: final String suffixOld, final String suffixNew) {
014: return org.andromda.utils.StringUtilsHelper.replaceSuffix(src,
015: suffixOld, suffixNew);
016: }
017:
018: /**
019: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#upperCamelCaseName(String)} instead
020: */
021: public static String upperCamelCaseName(final String string) {
022: return org.andromda.utils.StringUtilsHelper
023: .upperCamelCaseName(string);
024: }
025:
026: /**
027: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#removeLastOccurrence(String, String)} instead
028: */
029: public static String removeLastOccurrence(final String string,
030: final String value) {
031: return org.andromda.utils.StringUtilsHelper
032: .removeLastOccurrence(string, value);
033: }
034:
035: /**
036: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#lowerCamelCaseName(String)} instead
037: */
038: public static String lowerCamelCaseName(final String string) {
039: return org.andromda.utils.StringUtilsHelper
040: .lowerCamelCaseName(string);
041: }
042:
043: /**
044: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#toResourceMessageKey(String)} instead
045: */
046: public static String toResourceMessageKey(final String string) {
047: return org.andromda.utils.StringUtilsHelper
048: .toResourceMessageKey(string);
049: }
050:
051: /**
052: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#toPhrase(String)} instead
053: */
054: public static String toPhrase(final String string) {
055: return org.andromda.utils.StringUtilsHelper.toPhrase(string);
056: }
057:
058: /**
059: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#separate(String, String)} instead
060: */
061: public static String separate(final String string,
062: final String separator) {
063: return org.andromda.utils.StringUtilsHelper.separate(string,
064: separator);
065: }
066:
067: /**
068: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#suffixLines(String, String)} instead
069: */
070: public static String suffixLines(final String multiLines,
071: final String suffix) {
072: return org.andromda.utils.StringUtilsHelper.suffixLines(
073: multiLines, suffix);
074: }
075:
076: /**
077: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#toResourceMessage(String)} instead
078: */
079: public static String toResourceMessage(String multiLines) {
080: return org.andromda.utils.StringUtilsHelper
081: .toResourceMessage(multiLines);
082: }
083:
084: /**
085: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#prefixWithAPredicate(String)} instead
086: */
087: public static String prefixWithAPredicate(final String word) {
088: return org.andromda.utils.StringUtilsHelper
089: .prefixWithAPredicate(word);
090: }
091:
092: /**
093: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#toSingleLine(String)} instead
094: */
095: public static String toSingleLine(String string) {
096: return org.andromda.utils.StringUtilsHelper
097: .toSingleLine(string);
098: }
099:
100: /**
101: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#pluralize(String)} instead
102: */
103: public static String pluralize(final String singularNoun) {
104: return org.andromda.utils.StringUtilsHelper
105: .pluralize(singularNoun);
106: }
107:
108: /**
109: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#format(String)} instead
110: */
111: public static String format(final String plainText) {
112: return org.andromda.utils.StringUtilsHelper.format(plainText);
113: }
114:
115: /**
116: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#format(String, String)} instead
117: */
118: public static String format(final String plainText,
119: final String indentation) {
120: return org.andromda.utils.StringUtilsHelper.format(plainText,
121: indentation);
122: }
123:
124: /**
125: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#format(String, String, int)} instead
126: */
127: public static String format(final String plainText,
128: final String indentation, final int wrapAtColumn) {
129: return org.andromda.utils.StringUtilsHelper.format(plainText,
130: indentation, wrapAtColumn);
131: }
132:
133: /**
134: * @deprecated use {@link org.andromda.utils.StringUtilsHelper#format(String, String, int, boolean)} instead
135: */
136: public static String format(final String plainText,
137: String indentation, final int wrapAtColumn,
138: final boolean htmlStyle) {
139: return org.andromda.utils.StringUtilsHelper.format(plainText,
140: indentation, wrapAtColumn, htmlStyle);
141: }
142:
143: /**
144: * @deprecated use {@link org.andromda.utils.StringUtilsHelper} instead
145: */
146: public static String getLineSeparator() {
147: return org.andromda.utils.StringUtilsHelper.getLineSeparator();
148: }
149: }
|