Class JvmGenerationOptions
- Namespace
- TypedRest.CodeGeneration.Jvm
- Assembly
- TypedRest.CodeGeneration.Jvm.dll
Options controlling the generation of a JVM TypedRest client, shared by the Java and Kotlin generators.
public abstract class JvmGenerationOptions : ClientGenerationOptions
- Inheritance
-
objectJvmGenerationOptions
- Derived
- Inherited Members
Constructors
JvmGenerationOptions(string)
Creates new generation options.
protected JvmGenerationOptions(string serviceName)
Parameters
serviceNamestringThe service name to use for the entry endpoint.
JvmGenerationOptions(ClientGenerationOptions)
Creates new generation options, copying the common options from other.
protected JvmGenerationOptions(ClientGenerationOptions other)
Parameters
otherClientGenerationOptions
Fields
DefaultDtoSubPackage
The package name DTOs go into when DtoNamespace is not set, relative to the endpoint package.
public const string DefaultDtoSubPackage = "dtos"
Field Value
Properties
DefaultSerializerName
The name of the serializer this target language uses when none is chosen.
protected abstract string DefaultSerializerName { get; }
Property Value
DtoPackage
The package the DTOs are generated into.
public string DtoPackage { get; }
Property Value
Remarks
Defaults to a DefaultDtoSubPackage subpackage of the endpoints.
EndpointPackage
The package the endpoints are generated into.
public string EndpointPackage { get; }
Property Value
UntypedFallback
The type to use for schemas that carry no usable type information.
public JvmIdentifier UntypedFallback { get; set; }
Property Value
Methods
NamingStrategy()
Builds a NamingStrategy applying the package fallbacks.
public NamingStrategy NamingStrategy()
Returns
ResolveSerializer()
Resolves Serializer to the serializer to generate for.
public JvmSerializer ResolveSerializer()
Returns
Exceptions
- ArgumentException
The serializer is not one of SupportedSerializers.