Class StringType
java.lang.Object
com.github.muehmar.gradle.openapi.generator.model.type.StringType
- All Implemented Interfaces:
Type
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionaddConstraints(Constraints constraints) applyMapping(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) static StringTypenoFormat()static StringTypeofFormat(StringType.Format format) static StringTypeofFormatAndValue(StringType.Format format, String formatString) replaceObjectType(PojoName objectTypeName, String newObjectTypeDescription, Type newObjectType) static StringTypeuuid()withConstraints(Constraints constraints) 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
adjustNullablePojo, asArrayType, asEnumType, asMapType, asObjectType, asStringType, isAnyType, isArrayType, isEnumType, isMapType, isObjectType, isStringType, onObjectType
-
Method Details
-
noFormat
-
uuid
-
ofFormat
-
ofFormatAndValue
-
getFormat
-
getFormatString
-
withNullability
-
withConstraints
-
addConstraints
-
getConstraints
- Specified by:
getConstraintsin interfaceType
-
applyMapping
- Specified by:
applyMappingin interfaceType
-
makeNullable
- Specified by:
makeNullablein interfaceType
-
replaceObjectType
public Type replaceObjectType(PojoName objectTypeName, String newObjectTypeDescription, Type newObjectType) - Specified by:
replaceObjectTypein interfaceType
-
getNullability
- Specified by:
getNullabilityin 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)
-