public enum PrimitiveType extends Enum<PrimitiveType>
PrimitiveType
enumeration defines a mapping of limited set
of classes into Swagger primitive types.Type | Property and Description |
---|---|
abstract Property |
create |
Enum Constant and Description |
---|
BINARY
Binary
|
BOOLEAN
Boolean.
|
BYTE
Byte.
|
DATE
Date.
|
DATE_TIME
Date and time.
|
DECIMAL
Generic decimal number without specific format.
|
DOUBLE
64-bit decimal.
|
FLOAT
32-bit decimal.
|
INT
32-bit integer.
|
INTEGER
Generic integer number without specific format.
|
LONG
64-bit integer.
|
OBJECT
Generic object.
|
STRING
String.
|
URI
URI string.
|
URL
URL string.
|
UUID
UUID string.
|
Modifier and Type | Method and Description |
---|---|
abstract Property |
createProperty() |
static Property |
createProperty(String name) |
static Property |
createProperty(Type type) |
static PrimitiveType |
fromName(String name) |
static PrimitiveType |
fromType(Type type) |
String |
getCommonName() |
static String |
getCommonName(Type type) |
Class<?> |
getKeyClass() |
static PrimitiveType |
valueOf(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 BOOLEAN
public static final PrimitiveType STRING
public static final PrimitiveType BYTE
public static final PrimitiveType BINARY
public static final PrimitiveType URI
public static final PrimitiveType URL
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 DATE
public static final PrimitiveType DATE_TIME
public static final PrimitiveType OBJECT
public abstract Property createProperty
public static PrimitiveType[] values()
for (PrimitiveType c : PrimitiveType.values()) System.out.println(c);
public static PrimitiveType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PrimitiveType fromType(Type type)
public static PrimitiveType fromName(String name)
public Class<?> getKeyClass()
public String getCommonName()
public abstract Property createProperty()
Copyright © 2017. All rights reserved.