public enum ScalarType extends Enum<ScalarType> implements RamlType
| Enum Constant and Description |
|---|
BOOLEAN |
DATE_ONLY |
DATETIME |
DATETIME_ONLY |
FILE |
INTEGER |
NIL |
NUMBER |
STRING |
TIME_ONLY |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Optional<RamlType> |
fromType(Type type) |
TypeBuilder |
getRamlSyntax() |
boolean |
isEnum() |
static boolean |
isRamalScalarType(String type) |
boolean |
isScalar() |
Class<?> |
type() |
static ScalarType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScalarType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScalarType NUMBER
public static final ScalarType FILE
public static final ScalarType BOOLEAN
public static final ScalarType STRING
public static final ScalarType DATE_ONLY
public static final ScalarType TIME_ONLY
public static final ScalarType DATETIME_ONLY
public static final ScalarType DATETIME
public static final ScalarType INTEGER
public static final ScalarType NIL
public static ScalarType[] values()
for (ScalarType c : ScalarType.values()) System.out.println(c);
public static ScalarType 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 TypeBuilder getRamlSyntax()
getRamlSyntax in interface RamlTypepublic static boolean isRamalScalarType(String type)
Copyright © 2019 Mulesoft. All rights reserved.