Class EnumObjectType
java.lang.Object
com.github.muehmar.gradle.openapi.generator.model.type.EnumObjectType
- All Implemented Interfaces:
Type,ObjectType
-
Constructor Summary
ConstructorsConstructorDescriptionEnumObjectType(PojoName name, PList<String> members, Nullability nullability) -
Method Summary
Modifier and TypeMethodDescriptionapplyMapping(PojoNameMapping pojoNameMapping) <T> Tfold(Function<NumericType, T> onNumericType, Function<IntegerType, T> onIntegerType, Function<StringType, T> onStringType, Function<ArrayType, T> onArrayType, Function<BooleanType, T> onBooleanType, Function<ObjectType, T> onObjectType, Function<EnumType, T> onEnumType, Function<MapType, T> onMapType, Function<AnyType, T> onAnyType) getName()static EnumObjectTypeofEnumPojo(EnumPojo enumPojo) withNullability(Nullability nullability) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.muehmar.gradle.openapi.generator.model.type.ObjectType
replaceObjectTypeMethods inherited from interface com.github.muehmar.gradle.openapi.generator.model.Type
adjustNullablePojo, asArrayType, asEnumType, asMapType, asObjectType, asStringType, isAnyType, isArrayType, isEnumType, isMapType, isObjectType, isStringType, onObjectType
-
Constructor Details
-
EnumObjectType
-
-
Method Details
-
ofEnumPojo
-
getName
- Specified by:
getNamein interfaceObjectType
-
getMembers
-
withNullability
- Specified by:
withNullabilityin interfaceObjectType
-
asEnumObjectType
- Specified by:
asEnumObjectTypein interfaceObjectType
-
getConstraints
- Specified by:
getConstraintsin interfaceType
-
getNullability
- Specified by:
getNullabilityin interfaceType
-
applyMapping
- Specified by:
applyMappingin interfaceType
-
makeNullable
- Specified by:
makeNullablein interfaceType
-
fold
public <T> T fold(Function<NumericType, T> onNumericType, Function<IntegerType, T> onIntegerType, Function<StringType, T> onStringType, Function<ArrayType, T> onArrayType, Function<BooleanType, T> onBooleanType, Function<ObjectType, T> onObjectType, Function<EnumType, T> onEnumType, Function<MapType, T> onMapType, Function<AnyType, T> onAnyType)
-