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
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
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 theoverwriterecord component.- Returns:
- the value of the
overwriterecord component
-
logLevel
Returns the value of thelogLevelrecord component.- Returns:
- the value of the
logLevelrecord component
-
skipApi
public boolean skipApi()Returns the value of theskipApirecord component.- Returns:
- the value of the
skipApirecord component
-
skipDto
public boolean skipDto()Returns the value of theskipDtorecord component.- Returns:
- the value of the
skipDtorecord component
-
showParserInfo
public boolean showParserInfo()Returns the value of theshowParserInforecord component.- Returns:
- the value of the
showParserInforecord component
-