public class StringRefactoringUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StringRefactoringUtil.RefactoringMethod |
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
linkingWords |
Constructor and Description |
---|
StringRefactoringUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
conjugate(java.lang.String source)
Conjugates the given source string into all known forms and returns a map
having key = the name of the conjugated form and value = the
conjugated form itself
|
static java.util.Map<java.lang.String,java.lang.String> |
conjugate(java.lang.String source,
java.lang.String context)
Conjugates the given source string into all known forms and returns a map
having key = the name of the conjugated form and value = the
conjugated form itself.
|
static java.lang.String |
refactor(java.lang.String source,
StringRefactoringUtil.RefactoringMethod refactoringMethod) |
static java.lang.String |
toLowerCamelCase(java.lang.String source) |
static java.lang.String |
toPlural(java.lang.String source)
Returns the plural form of the given string (i.e.
|
static java.lang.String |
toShort(java.lang.String source,
java.lang.String context)
Reduces the length of the given source string by removing the given
context (if any).
|
static java.lang.String |
toSingular(java.lang.String source)
Returns the singular form of the given string (i.e.
|
static java.lang.String |
toUpperCamelCase(java.lang.String source) |
public static java.lang.String toUpperCamelCase(java.lang.String source)
public static java.lang.String toLowerCamelCase(java.lang.String source)
public static java.lang.String toSingular(java.lang.String source)
public static java.lang.String toPlural(java.lang.String source)
public static java.lang.String refactor(java.lang.String source, StringRefactoringUtil.RefactoringMethod refactoringMethod)
public static java.util.Map<java.lang.String,java.lang.String> conjugate(java.lang.String source)
public static java.util.Map<java.lang.String,java.lang.String> conjugate(java.lang.String source, java.lang.String context)
toShort(String, String)
public static java.lang.String toShort(java.lang.String source, java.lang.String context)