| Modifier and Type | Field and Description |
|---|---|
protected Config |
config |
protected com.fasterxml.jackson.databind.JsonNode |
defaultValue |
protected String |
description |
static com.github.javaparser.ast.expr.AnnotationExpr |
GENERATED_ANNOTATION |
protected boolean |
isNullable |
protected Double |
maximum |
protected Double |
minimum |
protected String |
pattern |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJSONSchema2Pojo(Config config,
String description,
boolean isNullable,
com.fasterxml.jackson.databind.JsonNode defaultValue,
ValidationProperties validationProperties) |
| Modifier and Type | Method and Description |
|---|---|
static AbstractJSONSchema2Pojo |
fromJsonSchema(String key,
io.fabric8.kubernetes.api.model.apiextensions.v1.JSONSchemaProps prop,
String parentPkg,
String classPrefix,
String classSuffix,
Config config) |
abstract GeneratorResult |
generateJava() |
protected String |
getClassType() |
protected com.fasterxml.jackson.databind.JsonNode |
getDefaultValue() |
String |
getDescription() |
Double |
getMaximum() |
Double |
getMinimum() |
String |
getPattern() |
abstract String |
getType() |
static String |
packageName(String str)
Takes a string and return the corresponding package name
|
static String |
sanitizeString(String str)
Takes a random string and manipulate it to be a valid Java identifier
|
public static final com.github.javaparser.ast.expr.AnnotationExpr GENERATED_ANNOTATION
protected final String description
protected final Config config
protected final boolean isNullable
protected final com.fasterxml.jackson.databind.JsonNode defaultValue
protected Double maximum
protected Double minimum
protected String pattern
protected AbstractJSONSchema2Pojo(Config config, String description, boolean isNullable, com.fasterxml.jackson.databind.JsonNode defaultValue, ValidationProperties validationProperties)
public Double getMaximum()
public Double getMinimum()
public String getPattern()
public abstract String getType()
public abstract GeneratorResult generateJava()
public static String packageName(String str)
public String getDescription()
protected com.fasterxml.jackson.databind.JsonNode getDefaultValue()
protected String getClassType()
public static String sanitizeString(String str)
Copyright © 2015–2023 Red Hat. All rights reserved.