Class ImmutableCtxInterface
java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxInterface
- All Implemented Interfaces:
CtxInterface
@Generated(from="CtxInterface",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableCtxInterface
extends Object
implements CtxInterface
Immutable implementation of
CtxInterface.
Use the builder to create immutable instances:
ImmutableCtxInterface.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableCtxInterface. -
Method Summary
Modifier and TypeMethodDescriptionReturns the optional application description.appName()Returns the application name.builder()Creates a builder forImmutableCtxInterface.Returns the classname for the class.static ImmutableCtxInterfacecopyOf(CtxInterface instance) Creates an immutable copy of aCtxInterfacevalue.Returns an optional description of the class.booleanThis instance is equal to all instances ofImmutableCtxInterfacethat have equal attribute values.Returns the name of the Generated annotation class.Returns the optional date of the generation.Returns the name of the generator class.Returns the imports needed in the template.inthashCode()Computes a hash code from attributes:appName,version,appDescription,infoEmail,imports,description,packageName,classname,generatedAnnotationClass,generatorClass,generatedDate,implementations,renderSchema.Returns a string list of implementation DTOs.Returns the optional application contact email.Returns the package name for the class.booleanReturns true if OpenApi schema information should be rendered.toString()Prints the immutable valueCtxInterfacewith attribute values.version()Returns the application version.final ImmutableCtxInterfacewithAppDescription(String value) Copy the current immutable object by setting a present value for the optionalappDescriptionattribute.final ImmutableCtxInterfacewithAppDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for theappDescriptionattribute.final ImmutableCtxInterfacewithAppName(String value) Copy the current immutable object by setting a value for theappNameattribute.final ImmutableCtxInterfacewithClassname(String value) Copy the current immutable object by setting a value for theclassnameattribute.final ImmutableCtxInterfacewithDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.final ImmutableCtxInterfacewithDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.final ImmutableCtxInterfaceCopy the current immutable object by setting a value for thegeneratedAnnotationClassattribute.final ImmutableCtxInterfacewithGeneratedDate(String value) Copy the current immutable object by setting a present value for the optionalgeneratedDateattribute.final ImmutableCtxInterfacewithGeneratedDate(Optional<String> optional) Copy the current immutable object by setting an optional value for thegeneratedDateattribute.final ImmutableCtxInterfacewithGeneratorClass(String value) Copy the current immutable object by setting a value for thegeneratorClassattribute.final ImmutableCtxInterfacewithImplementations(String value) Copy the current immutable object by setting a value for theimplementationsattribute.final ImmutableCtxInterfacewithImports(SortedSet<String> value) Copy the current immutable object by setting a value for theimportsattribute.final ImmutableCtxInterfacewithInfoEmail(String value) Copy the current immutable object by setting a present value for the optionalinfoEmailattribute.final ImmutableCtxInterfacewithInfoEmail(Optional<String> optional) Copy the current immutable object by setting an optional value for theinfoEmailattribute.final ImmutableCtxInterfacewithPackageName(String value) Copy the current immutable object by setting a value for thepackageNameattribute.final ImmutableCtxInterfacewithRenderSchema(boolean value) Copy the current immutable object by setting a value for therenderSchemaattribute.final ImmutableCtxInterfacewithVersion(String value) Copy the current immutable object by setting a value for theversionattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dk.mada.jaxrs.generator.mpclient.dto.tmpl.CtxInterface
hasImports
-
Method Details
-
appName
Returns the application name.- Specified by:
appNamein interfaceCtxInterface- Returns:
- the application name
-
version
Returns the application version.- Specified by:
versionin interfaceCtxInterface- Returns:
- the application version
-
appDescription
Returns the optional application description.- Specified by:
appDescriptionin interfaceCtxInterface- Returns:
- the optional application description
-
infoEmail
Returns the optional application contact email.- Specified by:
infoEmailin interfaceCtxInterface- Returns:
- the optional application contact email
-
getImports
Returns the imports needed in the template.- Specified by:
getImportsin interfaceCtxInterface- Returns:
- the imports needed in the template
-
description
Returns an optional description of the class.- Specified by:
descriptionin interfaceCtxInterface- Returns:
- an optional description of the class
-
packageName
Returns the package name for the class.- Specified by:
packageNamein interfaceCtxInterface- Returns:
- the package name for the class
-
classname
Returns the classname for the class.- Specified by:
classnamein interfaceCtxInterface- Returns:
- the classname for the class
-
generatedAnnotationClass
Returns the name of the Generated annotation class.- Specified by:
generatedAnnotationClassin interfaceCtxInterface- Returns:
- the name of the Generated annotation class
-
generatorClass
Returns the name of the generator class.- Specified by:
generatorClassin interfaceCtxInterface- Returns:
- the name of the generator class
-
generatedDate
Returns the optional date of the generation.- Specified by:
generatedDatein interfaceCtxInterface- Returns:
- the optional date of the generation
-
implementations
Returns a string list of implementation DTOs.- Specified by:
implementationsin interfaceCtxInterface- Returns:
- a string list of implementation DTOs
-
renderSchema
public boolean renderSchema()Returns true if OpenApi schema information should be rendered.- Specified by:
renderSchemain interfaceCtxInterface- Returns:
- true if OpenApi schema information should be rendered
-
withAppName
Copy the current immutable object by setting a value for theappNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for appName- Returns:
- A modified copy or the
thisobject
-
withVersion
Copy the current immutable object by setting a value for theversionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version- Returns:
- A modified copy or the
thisobject
-
withAppDescription
Copy the current immutable object by setting a present value for the optionalappDescriptionattribute.- Parameters:
value- The value for appDescription- Returns:
- A modified copy or
thisif not changed
-
withAppDescription
Copy the current immutable object by setting an optional value for theappDescriptionattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for appDescription- Returns:
- A modified copy or
thisif not changed
-
withInfoEmail
Copy the current immutable object by setting a present value for the optionalinfoEmailattribute.- Parameters:
value- The value for infoEmail- Returns:
- A modified copy or
thisif not changed
-
withInfoEmail
Copy the current immutable object by setting an optional value for theinfoEmailattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for infoEmail- Returns:
- A modified copy or
thisif not changed
-
withImports
Copy the current immutable object by setting a value for theimportsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for imports- Returns:
- A modified copy or the
thisobject
-
withDescription
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description- Returns:
- A modified copy or
thisif not changed
-
withDescription
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for description- Returns:
- A modified copy or
thisif not changed
-
withPackageName
Copy the current immutable object by setting a value for thepackageNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for packageName- Returns:
- A modified copy or the
thisobject
-
withClassname
Copy the current immutable object by setting a value for theclassnameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for classname- Returns:
- A modified copy or the
thisobject
-
withGeneratedAnnotationClass
Copy the current immutable object by setting a value for thegeneratedAnnotationClassattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for generatedAnnotationClass- Returns:
- A modified copy or the
thisobject
-
withGeneratorClass
Copy the current immutable object by setting a value for thegeneratorClassattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for generatorClass- Returns:
- A modified copy or the
thisobject
-
withGeneratedDate
Copy the current immutable object by setting a present value for the optionalgeneratedDateattribute.- Parameters:
value- The value for generatedDate- Returns:
- A modified copy or
thisif not changed
-
withGeneratedDate
Copy the current immutable object by setting an optional value for thegeneratedDateattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for generatedDate- Returns:
- A modified copy or
thisif not changed
-
withImplementations
Copy the current immutable object by setting a value for theimplementationsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for implementations- Returns:
- A modified copy or the
thisobject
-
withRenderSchema
Copy the current immutable object by setting a value for therenderSchemaattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for renderSchema- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableCtxInterfacethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:appName,version,appDescription,infoEmail,imports,description,packageName,classname,generatedAnnotationClass,generatorClass,generatedDate,implementations,renderSchema. -
toString
Prints the immutable valueCtxInterfacewith attribute values. -
copyOf
Creates an immutable copy of aCtxInterfacevalue. 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 CtxInterface instance
-
builder
Creates a builder forImmutableCtxInterface.ImmutableCtxInterface.builder() .appName(String) // requiredappName.version(String) // requiredversion.appDescription(Optional<String>) // optionalappDescription.infoEmail(Optional<String>) // optionalinfoEmail.imports(SortedSet<String>) // requiredimports.description(Optional<String>) // optionaldescription.packageName(String) // requiredpackageName.classname(String) // requiredclassname.generatedAnnotationClass(String) // requiredgeneratedAnnotationClass.generatorClass(String) // requiredgeneratorClass.generatedDate(Optional<String>) // optionalgeneratedDate.implementations(String) // requiredimplementations.renderSchema(boolean) // requiredrenderSchema.build();- Returns:
- A new ImmutableCtxInterface builder
-