| Modifier and Type | Field and Description |
|---|---|
protected Config |
config |
protected com.fasterxml.jackson.databind.JsonNode |
defaultValue |
protected String |
description |
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 String |
escapeQuotes(String str) |
static AbstractJSONSchema2Pojo |
fromJsonSchema(String key,
io.fabric8.kubernetes.api.model.apiextensions.v1.JSONSchemaProps prop,
String parentPkg,
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 com.github.javaparser.ast.expr.AnnotationExpr |
newGeneratedAnnotation() |
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
|
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 static final com.github.javaparser.ast.expr.AnnotationExpr newGeneratedAnnotation()
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)
public static AbstractJSONSchema2Pojo fromJsonSchema(String key, io.fabric8.kubernetes.api.model.apiextensions.v1.JSONSchemaProps prop, String parentPkg, Config config)
Copyright © 2015–2023 Red Hat. All rights reserved.