Record Class JsonSchemaRecordsManifest.Parameters
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.records.JsonSchemaRecordsManifest.Parameters
- Record Components:
targetPackage- Target packagelanguage- Generated source languagelanguageLevel- Java language level used for generationschemaCacheDir- Schema cache directoryoutputDir- Output directorysources- Configured sourcesskipOnError- Skip togglefailOnMissingSource- Missing source togglegeneratedAnnotation- Generated annotation toggle
- Enclosing class:
JsonSchemaRecordsManifest
public static record JsonSchemaRecordsManifest.Parameters(String targetPackage, String language, int languageLevel, String schemaCacheDir, String outputDir, List<JsonSchemaRecordsManifest.ConfiguredSource> sources, boolean skipOnError, boolean failOnMissingSource, boolean generatedAnnotation)
extends Record
Effective pipeline parameters.
- Since:
- 2.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionParameters(String targetPackage, String language, int languageLevel, String schemaCacheDir, String outputDir, List<JsonSchemaRecordsManifest.ConfiguredSource> sources, boolean skipOnError, boolean failOnMissingSource) Effective pipeline parameters without the generated annotation.Parameters(String targetPackage, String language, int languageLevel, String schemaCacheDir, String outputDir, List<JsonSchemaRecordsManifest.ConfiguredSource> sources, boolean skipOnError, boolean failOnMissingSource, boolean generatedAnnotation) Creates an instance of aParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefailOnMissingSourcerecord component.booleanReturns the value of thegeneratedAnnotationrecord component.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.intReturns the value of thelanguageLevelrecord component.Returns the value of theoutputDirrecord component.Returns the value of theschemaCacheDirrecord component.booleanReturns the value of theskipOnErrorrecord component.sources()Returns the value of thesourcesrecord component.Returns the value of thetargetPackagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Parameters
public Parameters(String targetPackage, String language, int languageLevel, String schemaCacheDir, String outputDir, List<JsonSchemaRecordsManifest.ConfiguredSource> sources, boolean skipOnError, boolean failOnMissingSource) Effective pipeline parameters without the generated annotation.- Parameters:
targetPackage- Target packagelanguage- Generated source languagelanguageLevel- Java language level used for generationschemaCacheDir- Schema cache directoryoutputDir- Output directorysources- Configured sourcesskipOnError- Skip togglefailOnMissingSource- Missing source toggle
-
Parameters
public Parameters(String targetPackage, String language, int languageLevel, String schemaCacheDir, String outputDir, List<JsonSchemaRecordsManifest.ConfiguredSource> sources, boolean skipOnError, boolean failOnMissingSource, boolean generatedAnnotation) Creates an instance of aParametersrecord class.- Parameters:
targetPackage- the value for thetargetPackagerecord componentlanguage- the value for thelanguagerecord componentlanguageLevel- the value for thelanguageLevelrecord componentschemaCacheDir- the value for theschemaCacheDirrecord componentoutputDir- the value for theoutputDirrecord componentsources- the value for thesourcesrecord componentskipOnError- the value for theskipOnErrorrecord componentfailOnMissingSource- the value for thefailOnMissingSourcerecord componentgeneratedAnnotation- the value for thegeneratedAnnotationrecord 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. -
targetPackage
Returns the value of thetargetPackagerecord component.- Returns:
- the value of the
targetPackagerecord component
-
language
-
languageLevel
public int languageLevel()Returns the value of thelanguageLevelrecord component.- Returns:
- the value of the
languageLevelrecord component
-
schemaCacheDir
Returns the value of theschemaCacheDirrecord component.- Returns:
- the value of the
schemaCacheDirrecord component
-
outputDir
-
sources
-
skipOnError
public boolean skipOnError()Returns the value of theskipOnErrorrecord component.- Returns:
- the value of the
skipOnErrorrecord component
-
failOnMissingSource
public boolean failOnMissingSource()Returns the value of thefailOnMissingSourcerecord component.- Returns:
- the value of the
failOnMissingSourcerecord component
-
generatedAnnotation
public boolean generatedAnnotation()Returns the value of thegeneratedAnnotationrecord component.- Returns:
- the value of the
generatedAnnotationrecord component
-