Package dk.mada.jaxrs.generator.api
Record Class ClientContext
java.lang.Object
java.lang.Record
dk.mada.jaxrs.generator.api.ClientContext
- Record Components:
overwrite
- a flag to allow overwriting existing data in destination directorylogLevel
- the log level to useskipApi
- a flag to allow disabling generation of API classesskipDto
- a flag to allow disabling generation of DTO classesshowParserInfo
- a flag to allow showing parser info
public record ClientContext(boolean overwrite, GeneratorLogLevel logLevel, boolean skipApi, boolean skipDto, boolean showParserInfo)
extends Record
Context for client generator.
-
Constructor Summary
ConstructorDescriptionClientContext
(boolean overwrite, GeneratorLogLevel logLevel, boolean skipApi, boolean skipDto, boolean showParserInfo) Creates an instance of aClientContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.logLevel()
Returns the value of thelogLevel
record component.boolean
Returns the value of theoverwrite
record component.boolean
Returns the value of theshowParserInfo
record component.boolean
skipApi()
Returns the value of theskipApi
record component.boolean
skipDto()
Returns the value of theskipDto
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ClientContext
public ClientContext(boolean overwrite, GeneratorLogLevel logLevel, boolean skipApi, boolean skipDto, boolean showParserInfo) Creates an instance of aClientContext
record class.- Parameters:
overwrite
- the value for theoverwrite
record componentlogLevel
- the value for thelogLevel
record componentskipApi
- the value for theskipApi
record componentskipDto
- the value for theskipDto
record componentshowParserInfo
- the value for theshowParserInfo
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
overwrite
public boolean overwrite()Returns the value of theoverwrite
record component.- Returns:
- the value of the
overwrite
record component
-
logLevel
Returns the value of thelogLevel
record component.- Returns:
- the value of the
logLevel
record component
-
skipApi
public boolean skipApi()Returns the value of theskipApi
record component.- Returns:
- the value of the
skipApi
record component
-
skipDto
public boolean skipDto()Returns the value of theskipDto
record component.- Returns:
- the value of the
skipDto
record component
-
showParserInfo
public boolean showParserInfo()Returns the value of theshowParserInfo
record component.- Returns:
- the value of the
showParserInfo
record component
-