Class CaseStyleBuilderImpl

    • Constructor Detail

      • CaseStyleBuilderImpl

        public CaseStyleBuilderImpl​()
    • Method Detail

      • getText

        public String getText​()
        Specified by:
        getText in interface org.refcodes.mixin.TextAccessor
      • setText

        public void setText​(String aText)
        Specified by:
        setText in interface org.refcodes.mixin.TextAccessor.TextMutator
      • getCase

        public Case getCase​()
        Gets the currently set Case being used.
        Specified by:
        getCase in interface CaseAccessor
        Returns:
        The currently configured Cases.
      • toCamelCase

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

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

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

        public String toPascalCase​(String aText)
        Converts the provided text as of TextAccessor.getText() to pascal-case ("PascalCase").
        Specified by:
        toPascalCase in interface CaseStyleBuilder
        Parameters:
        aText - The text to be converted.
        Returns:
        The pascal-case representation of the according text.