Interface CaseStyleBuilder

    • Method Detail

      • toCamelCase

        String toCamelCase​()
        Converts the text as of TextAccessor.getText() to camel-case ("camelCase").
        Returns:
        The camel-case representation of the according text.
      • toPascalCase

        String toPascalCase​()
        Converts the text as of TextAccessor.getText() to pascal-case ("PascalCase").
        Returns:
        The camel-case representation of the according text.
      • toCamelCase

        String toCamelCase​(String aText)
        Converts the provided text as of TextAccessor.getText() to camel-case ("camelCase").
        Parameters:
        aText - The text to be converted.
        Returns:
        The camel-case representation of the according text.
      • toPascalCase

        String toPascalCase​(String aText)
        Converts the provided text as of TextAccessor.getText() to pascal-case ("PascalCase").
        Parameters:
        aText - The text to be converted.
        Returns:
        The pascal-case representation of the according text.
      • toSnakeCase

        String toSnakeCase​(String aText)
        Converts the provided text as of TextAccessor.getText() to snake-case, either in upper case as of "SNAKE_CASE" or in lower-case as of "snake_case", depending on the Case property (as of CaseAccessor.CaseMutator.setCase(Case) and CaseAccessor.getCase()).
        Parameters:
        aText - The text to be converted.
        Returns:
        The snake-case representation of the according text.
      • toKebabCase

        String toKebabCase​(String aText)
        Converts the provided text as of TextAccessor.getText() to kebab-case, either in upper case as of "KEBAB-CASE" or in lower-case as of "kebab-case", depending on the Case property (as of CaseAccessor.CaseMutator.setCase(Case) and CaseAccessor.getCase()).
        Parameters:
        aText - The text to be converted.
        Returns:
        The kebab-case representation of the according text.
      • asCamelCase

        static String asCamelCase​(String aText)
        This method represents a shortcut for the instance method toCamelCase(String) though with default settings.
        Parameters:
        aText - The text to be converted.
        Returns:
        The camel-case representation of the according text.
      • asSnakeCase

        static String asSnakeCase​(String aText)
        This method represents a shortcut for the instance method toSnakeCase(String) though with default settings.
        Parameters:
        aText - The text to be converted.
        Returns:
        The snake-case representation of the according text.
      • asPascalCase

        static String asPascalCase​(String aText)
        This method represents a shortcut for the instance method toPascalCase(String) though with default settings.
        Parameters:
        aText - The text to be converted.
        Returns:
        The pascal-case representation of the according text.
      • asKebabCase

        static String asKebabCase​(String aText)
        This method represents a shortcut for the instance method toKebabCase(String) though with default settings.
        Parameters:
        aText - The text to be converted.
        Returns:
        The kebab-case representation of the according text.
      • build

        static CaseStyleBuilder build​()
        This is a convenience method for easily instantiating the according builder.
        Returns:
        an instance (using a default implementation) of this builder