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
ConstructorsConstructorDescriptionClientContext(boolean overwrite, GeneratorLogLevel logLevel, boolean skipApi, boolean skipDto, boolean showParserInfo) Creates an instance of aClientContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.logLevel()Returns the value of thelogLevelrecord component.booleanReturns the value of theoverwriterecord component.booleanReturns the value of theshowParserInforecord component.booleanskipApi()Returns the value of theskipApirecord component.booleanskipDto()Returns the value of theskipDtorecord component.final StringtoString()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 aClientContextrecord class.- Parameters:
overwrite- the value for theoverwriterecord componentlogLevel- the value for thelogLevelrecord componentskipApi- the value for theskipApirecord componentskipDto- the value for theskipDtorecord componentshowParserInfo- the value for theshowParserInforecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
overwrite
-
logLevel
-
skipApi
-
skipDto
-
showParserInfo
public boolean showParserInfo()Returns the value of theshowParserInforecord component.- Returns:
- the value of the
showParserInforecord component
-