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
-
objectJavaGenerationOptions
- Inherited Members
Constructors
JavaGenerationOptions(string)
Creates new generation options.
public JavaGenerationOptions(string serviceName)
Parameters
serviceNamestringThe 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
otherClientGenerationOptions
Properties
DefaultSerializerName
The name of the serializer this target language uses when none is chosen.
protected override string DefaultSerializerName { get; }
Property Value
NullableAnnotations
Controls whether nullable properties are annotated with JSpecify's @Nullable.
public bool NullableAnnotations { get; set; }
Property Value
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
Remarks
Target languages override this to declare what they can generate for.