Table of Contents

Class NamingStrategy

Namespace
TypedRest.CodeGeneration.Jvm
Assembly
TypedRest.CodeGeneration.Jvm.dll

The default INamingStrategy for JVM clients.

public class NamingStrategy : INamingStrategy
Inheritance
object
NamingStrategy
Implements

Constructors

NamingStrategy(string, string, string, JvmIdentifier?)

The default INamingStrategy for JVM clients.

public NamingStrategy(string serviceName, string endpointPackage, string dtoPackage, JvmIdentifier? untypedFallback = null)

Parameters

serviceName string

The service name to use for the entry endpoint.

endpointPackage string

The package the endpoints are generated into.

dtoPackage string

The package the DTOs are generated into.

untypedFallback JvmIdentifier

The type to use for schemas that carry no usable type information.

Fields

DtoPackage

The package the DTOs are generated into.

protected readonly JvmPackage DtoPackage

Field Value

JvmPackage

EndpointPackage

The package the endpoints are generated into.

protected readonly JvmPackage EndpointPackage

Field Value

JvmPackage

ServiceName

The service name to use for the entry endpoint.

protected readonly string ServiceName

Field Value

string

UntypedFallback

The type to use for schemas that carry no usable type information.

protected readonly JvmIdentifier UntypedFallback

Field Value

JvmIdentifier

Methods

DtoType(string)

The name and package of a generated DTO type.

public virtual JvmIdentifier DtoType(string key)

Parameters

key string

Returns

JvmIdentifier

EndpointType(string, IEndpoint, string?)

The name and package of a generated endpoint class.

public virtual JvmIdentifier EndpointType(string key, IEndpoint endpoint, string? prefix = null)

Parameters

key string
endpoint IEndpoint
prefix string

Returns

JvmIdentifier

Property(string)

The name of the member exposing a child endpoint.

public virtual string Property(string key)

Parameters

key string

Returns

string

TypeFor(OpenApiSchema?)

The JVM type a schema maps to.

public virtual JvmIdentifier TypeFor(OpenApiSchema? schema)

Parameters

schema OpenApiSchema

Returns

JvmIdentifier