public enum TypeDeclarationType extends Enum<TypeDeclarationType> implements TypeHandlerFactory, TypeAnalyserFactory
| Enum Constant and Description |
|---|
ANY |
ARRAY |
BOOLEAN |
DATE |
DATETIME |
DATETIME_ONLY |
ENUMERATION |
FILE |
INTEGER |
NULL |
NUMBER |
OBJECT |
STRING |
TIME_ONLY |
UNION |
| Modifier and Type | Method and Description |
|---|---|
static TypeName |
calculateTypeName(String name,
org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration,
GenerationContext context,
EventType eventType) |
static com.google.common.base.Optional<CreationResult> |
createInlineType(ClassName containingClassName,
ClassName containingImplementation,
String name,
org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration,
GenerationContext context)
Create the actual type.
|
static com.google.common.base.Optional<CreationResult> |
createNamedType(String name,
org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration,
GenerationContext context)
Create the actual type.
|
static com.google.common.base.Optional<CreationResult> |
createType(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration,
GenerationContext context)
Create the actual type.
|
static boolean |
isNewInlineType(org.raml.v2.api.model.v10.datamodel.TypeDeclaration declaration) |
abstract boolean |
shouldCreateInlineType(org.raml.v2.api.model.v10.datamodel.TypeDeclaration declaration) |
static TypeDeclarationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeDeclarationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcreateHandlerpublic static final TypeDeclarationType NULL
public static final TypeDeclarationType OBJECT
public static final TypeDeclarationType ENUMERATION
public static final TypeDeclarationType ARRAY
public static final TypeDeclarationType UNION
public static final TypeDeclarationType INTEGER
public static final TypeDeclarationType BOOLEAN
public static final TypeDeclarationType DATE
public static final TypeDeclarationType DATETIME
public static final TypeDeclarationType TIME_ONLY
public static final TypeDeclarationType DATETIME_ONLY
public static final TypeDeclarationType NUMBER
public static final TypeDeclarationType STRING
public static final TypeDeclarationType ANY
public static final TypeDeclarationType FILE
public static TypeDeclarationType[] values()
for (TypeDeclarationType c : TypeDeclarationType.values()) System.out.println(c);
public static TypeDeclarationType 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 abstract boolean shouldCreateInlineType(org.raml.v2.api.model.v10.datamodel.TypeDeclaration declaration)
public static com.google.common.base.Optional<CreationResult> createType(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration, GenerationContext context)
typeDeclaration - context - public static com.google.common.base.Optional<CreationResult> createNamedType(String name, org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration, GenerationContext context)
typeDeclaration - context - public static com.google.common.base.Optional<CreationResult> createInlineType(ClassName containingClassName, ClassName containingImplementation, String name, org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration, GenerationContext context)
typeDeclaration - context - public static TypeName calculateTypeName(String name, org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration, GenerationContext context, EventType eventType)
public static boolean isNewInlineType(org.raml.v2.api.model.v10.datamodel.TypeDeclaration declaration)
Copyright © 2019 Mulesoft. All rights reserved.