Class ImmutableCtxPropertyExt
java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxPropertyExt
- All Implemented Interfaces:
CtxPropertyExt
@Generated(from="CtxPropertyExt",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableCtxPropertyExt
extends Object
implements CtxPropertyExt
Immutable implementation of
CtxPropertyExt.
Use the builder to create immutable instances:
ImmutableCtxPropertyExt.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableCtxPropertyExt. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableCtxPropertyExt.static ImmutableCtxPropertyExtcopyOf(CtxPropertyExt instance) Creates an immutable copy of aCtxPropertyExtvalue.@Nullable StringReturns the summary as a java string, or null.@Nullable StringReturns the (embedded) enumeration class name.Returns the optional schema options for an inline enumeration type.@Nullable StringReturns the enumeration type name.booleanThis instance is equal to all instances ofImmutableCtxPropertyExtthat have equal attribute values.getter()Returns the getter name.inthashCode()Computes a hash code from attributes:innerDatatypeWithEnum,enumClassName,enumTypeName,enumSchemaOptions,schemaOptions,isUseBigDecimalForDouble,isUseEmptyCollections,isByteArray,isEqualsPrimitive,getter,setter,jsonb,descriptionString,multipartType,jsonPropertyConstant,isNullable,isRequireNonNull.@Nullable StringReturns the java inner type, or null.booleanReturns true if this property is a byte array.booleanReturns true if this property is primitive and can use == for equals.booleanReturns true if this property is nullable.booleanReturns true if this property should guard against nulls with Objects.requireNonNull.booleanReturns true to use BigDecimal, false to use Double.booleanReturns true to initialize collections, false to leave as null.booleanjsonb()Returns true if rendering for jsonb, false otherwise.@Nullable StringReturns a json property constant value, or null.@Nullable StringReturns the multipart type associated with this property, or null.Returns the optional schema options (for use in @Schema).setter()Returns the setter name.toString()Prints the immutable valueCtxPropertyExtwith attribute values.final ImmutableCtxPropertyExtwithDescriptionString(@Nullable String value) Copy the current immutable object by setting a value for thedescriptionStringattribute.final ImmutableCtxPropertyExtwithEnumClassName(@Nullable String value) Copy the current immutable object by setting a value for theenumClassNameattribute.final ImmutableCtxPropertyExtwithEnumSchemaOptions(String value) Copy the current immutable object by setting a present value for the optionalenumSchemaOptionsattribute.final ImmutableCtxPropertyExtwithEnumSchemaOptions(Optional<String> optional) Copy the current immutable object by setting an optional value for theenumSchemaOptionsattribute.final ImmutableCtxPropertyExtwithEnumTypeName(@Nullable String value) Copy the current immutable object by setting a value for theenumTypeNameattribute.final ImmutableCtxPropertyExtwithGetter(String value) Copy the current immutable object by setting a value for thegetterattribute.final ImmutableCtxPropertyExtwithInnerDatatypeWithEnum(@Nullable String value) Copy the current immutable object by setting a value for theinnerDatatypeWithEnumattribute.final ImmutableCtxPropertyExtwithIsByteArray(boolean value) Copy the current immutable object by setting a value for theisByteArrayattribute.final ImmutableCtxPropertyExtwithIsEqualsPrimitive(boolean value) Copy the current immutable object by setting a value for theisEqualsPrimitiveattribute.final ImmutableCtxPropertyExtwithIsNullable(boolean value) Copy the current immutable object by setting a value for theisNullableattribute.final ImmutableCtxPropertyExtwithIsRequireNonNull(boolean value) Copy the current immutable object by setting a value for theisRequireNonNullattribute.final ImmutableCtxPropertyExtwithIsUseBigDecimalForDouble(boolean value) Copy the current immutable object by setting a value for theisUseBigDecimalForDoubleattribute.final ImmutableCtxPropertyExtwithIsUseEmptyCollections(boolean value) Copy the current immutable object by setting a value for theisUseEmptyCollectionsattribute.final ImmutableCtxPropertyExtwithJsonb(boolean value) Copy the current immutable object by setting a value for thejsonbattribute.final ImmutableCtxPropertyExtwithJsonPropertyConstant(@Nullable String value) Copy the current immutable object by setting a value for thejsonPropertyConstantattribute.final ImmutableCtxPropertyExtwithMultipartType(@Nullable String value) Copy the current immutable object by setting a value for themultipartTypeattribute.final ImmutableCtxPropertyExtwithSchemaOptions(String value) Copy the current immutable object by setting a present value for the optionalschemaOptionsattribute.final ImmutableCtxPropertyExtwithSchemaOptions(Optional<String> optional) Copy the current immutable object by setting an optional value for theschemaOptionsattribute.final ImmutableCtxPropertyExtwithSetter(String value) Copy the current immutable object by setting a value for thesetterattribute.
-
Method Details
-
innerDatatypeWithEnum
Returns the java inner type, or null.- Specified by:
innerDatatypeWithEnumin interfaceCtxPropertyExt- Returns:
- the java inner type, or null
-
enumClassName
Returns the (embedded) enumeration class name. Used in enumerations that are rendered next to the (only) property where they are referenced. See enumClass.mustache. This is handled separately from the standard dataType/datatypeWithEnum values because they are both used separately by both containers and enumerations. Which prevents handling of enumerations in containers (or rather, I broke the templates somehow to match behavior from openapi-generator - and this is easier to read for me).- Specified by:
enumClassNamein interfaceCtxPropertyExt- Returns:
- the enumeration class name
-
enumTypeName
Returns the enumeration type name.- Specified by:
enumTypeNamein interfaceCtxPropertyExt- Returns:
- the enumeration type name
-
enumSchemaOptions
Returns the optional schema options for an inline enumeration type.- Specified by:
enumSchemaOptionsin interfaceCtxPropertyExt- Returns:
- the optional schema options for an inline enumeration type
-
schemaOptions
Returns the optional schema options (for use in @Schema).- Specified by:
schemaOptionsin interfaceCtxPropertyExt- Returns:
- the optional schema options (for use in @Schema)
-
isUseBigDecimalForDouble
public boolean isUseBigDecimalForDouble()Returns true to use BigDecimal, false to use Double.- Specified by:
isUseBigDecimalForDoublein interfaceCtxPropertyExt- Returns:
- true to use BigDecimal, false to use Double
-
isUseEmptyCollections
public boolean isUseEmptyCollections()Returns true to initialize collections, false to leave as null.- Specified by:
isUseEmptyCollectionsin interfaceCtxPropertyExt- Returns:
- true to initialize collections, false to leave as null
-
isByteArray
public boolean isByteArray()Returns true if this property is a byte array.- Specified by:
isByteArrayin interfaceCtxPropertyExt- Returns:
- true if this property is a byte array
-
isEqualsPrimitive
public boolean isEqualsPrimitive()Returns true if this property is primitive and can use == for equals.- Specified by:
isEqualsPrimitivein interfaceCtxPropertyExt- Returns:
- true if this property is primitive and can use == for equals
-
getter
Returns the getter name.- Specified by:
getterin interfaceCtxPropertyExt- Returns:
- the getter name
-
setter
Returns the setter name.- Specified by:
setterin interfaceCtxPropertyExt- Returns:
- the setter name
-
jsonb
public boolean jsonb()Returns true if rendering for jsonb, false otherwise.- Specified by:
jsonbin interfaceCtxPropertyExt- Returns:
- true if rendering for jsonb, false otherwise
-
descriptionString
Returns the summary as a java string, or null.- Specified by:
descriptionStringin interfaceCtxPropertyExt- Returns:
- the summary as a java string, or null
-
multipartType
Returns the multipart type associated with this property, or null.- Specified by:
multipartTypein interfaceCtxPropertyExt- Returns:
- the multipart type associated with this property, or null
-
jsonPropertyConstant
Returns a json property constant value, or null.- Specified by:
jsonPropertyConstantin interfaceCtxPropertyExt- Returns:
- a json property constant value, or null
-
isNullable
public boolean isNullable()Returns true if this property is nullable.- Specified by:
isNullablein interfaceCtxPropertyExt- Returns:
- true if this property is nullable
-
isRequireNonNull
public boolean isRequireNonNull()Returns true if this property should guard against nulls with Objects.requireNonNull.- Specified by:
isRequireNonNullin interfaceCtxPropertyExt- Returns:
- true if this property should guard against nulls with Objects.requireNonNull
-
withInnerDatatypeWithEnum
Copy the current immutable object by setting a value for theinnerDatatypeWithEnumattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for innerDatatypeWithEnum (can benull)- Returns:
- A modified copy or the
thisobject
-
withEnumClassName
Copy the current immutable object by setting a value for theenumClassNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for enumClassName (can benull)- Returns:
- A modified copy or the
thisobject
-
withEnumTypeName
Copy the current immutable object by setting a value for theenumTypeNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for enumTypeName (can benull)- Returns:
- A modified copy or the
thisobject
-
withEnumSchemaOptions
Copy the current immutable object by setting a present value for the optionalenumSchemaOptionsattribute.- Parameters:
value- The value for enumSchemaOptions- Returns:
- A modified copy or
thisif not changed
-
withEnumSchemaOptions
Copy the current immutable object by setting an optional value for theenumSchemaOptionsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for enumSchemaOptions- Returns:
- A modified copy or
thisif not changed
-
withSchemaOptions
Copy the current immutable object by setting a present value for the optionalschemaOptionsattribute.- Parameters:
value- The value for schemaOptions- Returns:
- A modified copy or
thisif not changed
-
withSchemaOptions
Copy the current immutable object by setting an optional value for theschemaOptionsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for schemaOptions- Returns:
- A modified copy or
thisif not changed
-
withIsUseBigDecimalForDouble
Copy the current immutable object by setting a value for theisUseBigDecimalForDoubleattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isUseBigDecimalForDouble- Returns:
- A modified copy or the
thisobject
-
withIsUseEmptyCollections
Copy the current immutable object by setting a value for theisUseEmptyCollectionsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isUseEmptyCollections- Returns:
- A modified copy or the
thisobject
-
withIsByteArray
Copy the current immutable object by setting a value for theisByteArrayattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isByteArray- Returns:
- A modified copy or the
thisobject
-
withIsEqualsPrimitive
Copy the current immutable object by setting a value for theisEqualsPrimitiveattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isEqualsPrimitive- Returns:
- A modified copy or the
thisobject
-
withGetter
Copy the current immutable object by setting a value for thegetterattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for getter- Returns:
- A modified copy or the
thisobject
-
withSetter
Copy the current immutable object by setting a value for thesetterattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for setter- Returns:
- A modified copy or the
thisobject
-
withJsonb
Copy the current immutable object by setting a value for thejsonbattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for jsonb- Returns:
- A modified copy or the
thisobject
-
withDescriptionString
Copy the current immutable object by setting a value for thedescriptionStringattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for descriptionString (can benull)- Returns:
- A modified copy or the
thisobject
-
withMultipartType
Copy the current immutable object by setting a value for themultipartTypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for multipartType (can benull)- Returns:
- A modified copy or the
thisobject
-
withJsonPropertyConstant
Copy the current immutable object by setting a value for thejsonPropertyConstantattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for jsonPropertyConstant (can benull)- Returns:
- A modified copy or the
thisobject
-
withIsNullable
Copy the current immutable object by setting a value for theisNullableattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isNullable- Returns:
- A modified copy or the
thisobject
-
withIsRequireNonNull
Copy the current immutable object by setting a value for theisRequireNonNullattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isRequireNonNull- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableCtxPropertyExtthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:innerDatatypeWithEnum,enumClassName,enumTypeName,enumSchemaOptions,schemaOptions,isUseBigDecimalForDouble,isUseEmptyCollections,isByteArray,isEqualsPrimitive,getter,setter,jsonb,descriptionString,multipartType,jsonPropertyConstant,isNullable,isRequireNonNull. -
toString
Prints the immutable valueCtxPropertyExtwith attribute values. -
copyOf
Creates an immutable copy of aCtxPropertyExtvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable CtxPropertyExt instance
-
builder
Creates a builder forImmutableCtxPropertyExt.ImmutableCtxPropertyExt.builder() .innerDatatypeWithEnum(String | null) // nullableinnerDatatypeWithEnum.enumClassName(String | null) // nullableenumClassName.enumTypeName(String | null) // nullableenumTypeName.enumSchemaOptions(Optional<String>) // optionalenumSchemaOptions.schemaOptions(Optional<String>) // optionalschemaOptions.isUseBigDecimalForDouble(boolean) // requiredisUseBigDecimalForDouble.isUseEmptyCollections(boolean) // requiredisUseEmptyCollections.isByteArray(boolean) // requiredisByteArray.isEqualsPrimitive(boolean) // requiredisEqualsPrimitive.getter(String) // requiredgetter.setter(String) // requiredsetter.jsonb(boolean) // requiredjsonb.descriptionString(String | null) // nullabledescriptionString.multipartType(String | null) // nullablemultipartType.jsonPropertyConstant(String | null) // nullablejsonPropertyConstant.isNullable(boolean) // requiredisNullable.isRequireNonNull(boolean) // requiredisRequireNonNull.build();- Returns:
- A new ImmutableCtxPropertyExt builder
-