@Internal public enum PrimitiveType extends java.lang.Enum<PrimitiveType>
PrimitiveType
enumeration defines a mapping of limited set
of classes into Swagger primitive types.
This class is copied from swagger-core library.
Enum Constant and Description |
---|
BINARY |
BOOLEAN |
BYTE |
DATE |
DATE_TIME |
DECIMAL |
DOUBLE |
EMAIL |
FILE |
FLOAT |
INT |
INTEGER |
LONG |
NUMBER |
OBJECT |
PARTIAL_TIME |
STRING |
URI |
URL |
UUID |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
datatypeMappings |
Modifier and Type | Method and Description |
---|---|
abstract io.swagger.v3.oas.models.media.Schema |
createProperty() |
static io.swagger.v3.oas.models.media.Schema |
createProperty(java.lang.String name) |
static io.swagger.v3.oas.models.media.Schema |
createProperty(java.lang.reflect.Type type) |
static java.util.Map<java.lang.String,PrimitiveType> |
customClasses()
Adds support for custom mapping of classes to primitive types
|
static java.util.Set<java.lang.String> |
customExcludedClasses()
Adds support for custom mapping of classes to primitive types
|
static java.util.Set<java.lang.String> |
customExcludedExternalClasses()
Adds support for custom mapping of classes to primitive types
|
static void |
enablePartialTime()
Convenience method to map LocalTime to string primitive with rfc3339 format partial-time.
|
static PrimitiveType |
fromName(java.lang.String name) |
static PrimitiveType |
fromType(java.lang.reflect.Type type) |
static PrimitiveType |
fromTypeAndFormat(java.lang.String type,
java.lang.String format) |
java.lang.String |
getCommonName() |
static java.lang.String |
getCommonName(java.lang.reflect.Type type) |
java.lang.Class<?> |
getKeyClass() |
static java.util.Set<java.lang.String> |
nonSystemTypePackages()
package names NOT to be considered as "system" types
|
static java.util.Set<java.lang.String> |
nonSystemTypes()
class qualified names NOT to be considered as "system" types
|
static java.util.Set<java.lang.String> |
systemPrefixes()
class qualified names prefixes to be considered as "system" types
|
static PrimitiveType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrimitiveType STRING
public static final PrimitiveType BOOLEAN
public static final PrimitiveType BYTE
public static final PrimitiveType BINARY
public static final PrimitiveType URI
public static final PrimitiveType URL
public static final PrimitiveType EMAIL
public static final PrimitiveType UUID
public static final PrimitiveType INT
public static final PrimitiveType LONG
public static final PrimitiveType FLOAT
public static final PrimitiveType DOUBLE
public static final PrimitiveType INTEGER
public static final PrimitiveType DECIMAL
public static final PrimitiveType NUMBER
public static final PrimitiveType DATE
public static final PrimitiveType DATE_TIME
public static final PrimitiveType PARTIAL_TIME
public static final PrimitiveType FILE
public static final PrimitiveType OBJECT
public static final java.util.Map<java.lang.String,java.lang.String> datatypeMappings
public static PrimitiveType[] values()
for (PrimitiveType c : PrimitiveType.values()) System.out.println(c);
public static PrimitiveType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.util.Set<java.lang.String> customExcludedClasses()
public static java.util.Set<java.lang.String> customExcludedExternalClasses()
public static java.util.Map<java.lang.String,PrimitiveType> customClasses()
public static java.util.Set<java.lang.String> systemPrefixes()
public static java.util.Set<java.lang.String> nonSystemTypes()
public static java.util.Set<java.lang.String> nonSystemTypePackages()
public static PrimitiveType fromType(java.lang.reflect.Type type)
public static PrimitiveType fromName(java.lang.String name)
public static PrimitiveType fromTypeAndFormat(java.lang.String type, java.lang.String format)
public static io.swagger.v3.oas.models.media.Schema createProperty(java.lang.reflect.Type type)
public static io.swagger.v3.oas.models.media.Schema createProperty(java.lang.String name)
public static java.lang.String getCommonName(java.lang.reflect.Type type)
public java.lang.Class<?> getKeyClass()
public java.lang.String getCommonName()
public abstract io.swagger.v3.oas.models.media.Schema createProperty()
public static void enablePartialTime()