Class NamingStrategy
- Namespace
- TypedRest.CodeGeneration.Jvm
- Assembly
- TypedRest.CodeGeneration.Jvm.dll
The default INamingStrategy for JVM clients.
public class NamingStrategy : INamingStrategy
- Inheritance
-
objectNamingStrategy
- 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
serviceNamestringThe service name to use for the entry endpoint.
endpointPackagestringThe package the endpoints are generated into.
dtoPackagestringThe package the DTOs are generated into.
untypedFallbackJvmIdentifierThe 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
EndpointPackage
The package the endpoints are generated into.
protected readonly JvmPackage EndpointPackage
Field Value
ServiceName
The service name to use for the entry endpoint.
protected readonly string ServiceName
Field Value
UntypedFallback
The type to use for schemas that carry no usable type information.
protected readonly JvmIdentifier UntypedFallback
Field Value
Methods
DtoType(string)
The name and package of a generated DTO type.
public virtual JvmIdentifier DtoType(string key)
Parameters
keystring
Returns
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
Returns
Property(string)
The name of the member exposing a child endpoint.
public virtual string Property(string key)
Parameters
keystring
Returns
TypeFor(OpenApiSchema?)
The JVM type a schema maps to.
public virtual JvmIdentifier TypeFor(OpenApiSchema? schema)
Parameters
schemaOpenApiSchema