Top Constructors Methods
io.vertx.codegen.format

public abstract Class Case

extends Object
Class Inheritance
Known Direct Subclasses
io.vertx.codegen.format.KebabCase, io.vertx.codegen.format.LowerCamelCase, io.vertx.codegen.format.QualifiedCase, io.vertx.codegen.format.SnakeCase, io.vertx.codegen.format.CamelCase
Imports
java.util.Arrays, .Collections, .HashMap, .List, .Map

Author
Julien Viet

Constructor Summary

AccessConstructor and Description
public
Case()

Method Summary

Modifier and TypeMethod and Description
public String
public String
name()

public List<String>

Returns:

the name atoms
parse
(String
the name to parse
name
)

Parse the name argument and returns a list of the name atoms.

protected static List<String>
split(String s, String regex)

public String

Returns:

the converted name
to
(Case
the destination case
dest
,
String
the name to convert
name
)

Convert a name from this case to the dest case

public static Map<String, Case>
vars()

Useful for formatting or parsing string, eg:CASE_CAMEL.format(CASE_SNAKE.parse("foo_bar")),it will return fooBar

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Caseback to summary
public Case()

Method Detail

formatback to summary
public String format(Iterable<String> atoms)
nameback to summary
public String name()
parseback to summary
public List<String> parse(String name)

Parse the name argument and returns a list of the name atoms.

Parameters
name:String

the name to parse

Returns:List<String>

the name atoms

Exceptions
IllegalArgumentException:
if the name has a syntax error
splitback to summary
protected static List<String> split(String s, String regex)
toback to summary
public String to(Case dest, String name)

Convert a name from this case to the dest case

Parameters
dest:Case

the destination case

name:String

the name to convert

Returns:String

the converted name

varsback to summary
public static Map<String, Case> vars()

Useful for formatting or parsing string, eg:CASE_CAMEL.format(CASE_SNAKE.parse("foo_bar")),it will return fooBar