Naming

ldbc.codegen.formatter.Naming
See theNaming companion enum
object Naming

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Naming.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromString(str: String): Naming
def toCamel(name: String): String

Converts to camelCase e.g.: PascalCase => pascalCase

Converts to camelCase e.g.: PascalCase => pascalCase

Value parameters

name

name to be converted to camelCase

Attributes

Returns

camelCase version of the string passed

def toKebab(name: String): String

Converts to kebab-case e.g.: camelCase => camel-case

Converts to kebab-case e.g.: camelCase => camel-case

Value parameters

name

name to be converted to kebab-case

Attributes

Returns

kebab-case version of the string passed

def toPascal(name: String): String

Converts to PascalCase e.g.: camelCase => CamelCase

Converts to PascalCase e.g.: camelCase => CamelCase

Value parameters

name

name to be converted to PascalCase

Attributes

Returns

PascalCase version of the string passed

def toSnake(name: String): String

Converts to snake_case e.g.: camelCase => camel_case

Converts to snake_case e.g.: camelCase => camel_case

Value parameters

name

name to be converted to snake_case

Attributes

Returns

snake_case version of the string passed

Extensions

Extensions

extension (`case`: Naming)
def format(name: String): String