Table of Contents

Class JavaGenerationOptions

Namespace
TypedRest.CodeGeneration.Java
Assembly
TypedRest.CodeGeneration.Java.dll

Options controlling the generation of a Java TypedRest client.

public class JavaGenerationOptions : JvmGenerationOptions
Inheritance
object
JavaGenerationOptions
Inherited Members

Constructors

JavaGenerationOptions(string)

Creates new generation options.

public JavaGenerationOptions(string serviceName)

Parameters

serviceName string

The service name to use for the entry endpoint.

JavaGenerationOptions(ClientGenerationOptions)

Creates new generation options, copying the common options from other.

public JavaGenerationOptions(ClientGenerationOptions other)

Parameters

other ClientGenerationOptions

Properties

DefaultSerializerName

The name of the serializer this target language uses when none is chosen.

protected override string DefaultSerializerName { get; }

Property Value

string

NullableAnnotations

Controls whether nullable properties are annotated with JSpecify's @Nullable.

public bool NullableAnnotations { get; set; }

Property Value

bool

SupportedSerializers

The names accepted by Serializer, most preferred first. Empty if the target language has no serializer to choose, either because it does not annotate DTOs or because it only supports one.

public override IReadOnlyCollection<string> SupportedSerializers { get; }

Property Value

IReadOnlyCollection<string>

Remarks

Target languages override this to declare what they can generate for.