| Modifier and Type | Field and Description |
|---|---|
protected Config |
config |
protected com.fasterxml.jackson.databind.JsonNode |
defaultValue |
protected String |
description |
protected boolean |
isNullable |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJSONSchema2Pojo(Config config,
String description,
boolean isNullable,
com.fasterxml.jackson.databind.JsonNode defaultValue) |
| 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() |
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
|
protected final String description
protected final Config config
protected final boolean isNullable
protected final com.fasterxml.jackson.databind.JsonNode defaultValue
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–2022 Red Hat. All rights reserved.