public class OpenAPITypeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
ARRAY_MATCHER |
static String |
BOOLEAN |
static String |
BOOLEAN_PRIMITIVE |
static String |
DATE |
static String |
DEFAULT_RUNTIME_CONTEXT |
static String |
DOUBLE |
static String |
DOUBLE_PRIMITIVE |
static String |
FLOAT |
static String |
FLOAT_PRIMITIVE |
static String |
INTEGER |
static String |
INTEGER_PRIMITIVE |
static String |
LINK_TO_DEFAULT_RUNTIME_CONTEXT |
static String |
LONG |
static String |
LONG_PRIMITIVE |
static String |
OBJECT |
protected static Map<String,TypeInfo> |
PRIMITIVE_CLASSES |
static TypeInfo |
RUNTIME_CONTEXT_TYPE |
static String |
SCHEMAS_LINK |
static TypeInfo |
SPREADSHEET_RESULT_TYPE |
static String |
STRING |
protected static Map<String,TypeInfo> |
WRAPPER_CLASSES |
| Modifier and Type | Method and Description |
|---|---|
static TypeInfo |
extractType(org.apache.commons.jxpath.JXPathContext pathContext,
io.swagger.v3.oas.models.media.Schema<?> schema,
boolean allowPrimitiveTypes) |
static Map<String,io.swagger.v3.oas.models.media.Schema> |
getAllProperties(io.swagger.v3.oas.models.media.ComposedSchema cs,
io.swagger.v3.oas.models.OpenAPI openAPI) |
static String |
getArrayClassName(String javaName,
int dim) |
static Map<String,List<String>> |
getChildrenMap(io.swagger.v3.oas.models.OpenAPI openAPI) |
static Map<String,io.swagger.v3.oas.models.media.Schema> |
getFieldsOfChild(io.swagger.v3.oas.models.media.ComposedSchema cs) |
static String |
getJavaDefaultValue(TypeInfo type) |
static String |
getParentName(io.swagger.v3.oas.models.media.ComposedSchema composedSchema,
io.swagger.v3.oas.models.OpenAPI openAPI) |
static String |
getSimpleName(String ref) |
static String |
getSimpleValue(String type) |
static String |
getSpreadsheetArrayClassName(int dim) |
static boolean |
isComplexSchema(org.apache.commons.jxpath.JXPathContext pathContext,
io.swagger.v3.oas.models.media.Schema<?> foundSchema) |
static boolean |
isPrimitiveType(String type) |
static boolean |
isSimpleType(String type) |
static String |
removeArrayBrackets(String type) |
public static final String SCHEMAS_LINK
public static final String DEFAULT_RUNTIME_CONTEXT
public static final String LINK_TO_DEFAULT_RUNTIME_CONTEXT
public static final TypeInfo RUNTIME_CONTEXT_TYPE
public static final TypeInfo SPREADSHEET_RESULT_TYPE
public static final String OBJECT
public static final String DATE
public static final String BOOLEAN
public static final String STRING
public static final String INTEGER
public static final String LONG
public static final String FLOAT
public static final String DOUBLE
public static final String DOUBLE_PRIMITIVE
public static final String FLOAT_PRIMITIVE
public static final String BOOLEAN_PRIMITIVE
public static final String INTEGER_PRIMITIVE
public static final String LONG_PRIMITIVE
public static final Pattern ARRAY_MATCHER
public static TypeInfo extractType(org.apache.commons.jxpath.JXPathContext pathContext, io.swagger.v3.oas.models.media.Schema<?> schema, boolean allowPrimitiveTypes)
public static boolean isComplexSchema(org.apache.commons.jxpath.JXPathContext pathContext,
io.swagger.v3.oas.models.media.Schema<?> foundSchema)
public static String getSpreadsheetArrayClassName(int dim)
public static boolean isSimpleType(String type)
public static boolean isPrimitiveType(String type)
public static String getParentName(io.swagger.v3.oas.models.media.ComposedSchema composedSchema, io.swagger.v3.oas.models.OpenAPI openAPI)
public static Map<String,List<String>> getChildrenMap(io.swagger.v3.oas.models.OpenAPI openAPI)
public static Map<String,io.swagger.v3.oas.models.media.Schema> getFieldsOfChild(io.swagger.v3.oas.models.media.ComposedSchema cs)
public static Map<String,io.swagger.v3.oas.models.media.Schema> getAllProperties(io.swagger.v3.oas.models.media.ComposedSchema cs, io.swagger.v3.oas.models.OpenAPI openAPI)
Copyright © 2004–2021 OpenL Tablets. All rights reserved.