Class Naming
java.lang.Object
dk.mada.jaxrs.model.naming.Naming
Executes naming rules.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertApiName(String groupName) Converts an API group name into a java API class name.convertEntityName(String entityTypeName) Converts entity type name to entity variable name.convertEnumName(String enumerationEntryName) Converts enumeration entry value into enumeration constant name.convertEnumNumberName(String enumerationEntryName) Converts enumeration number entry value into enumeration constant name.convertMpSchemaName(String schemaName) Converts a type OpenApi schema name into its MP @Schema name.convertMultipartTypeName(String groupOpId) Converts a synthetic multipart dto name into a java type name.convertOperationIdName(@Nullable String operationIdName) Converts an operationId name to a java method name.convertOperationName(String syntheticOperationName) Converts an operation name to a java method name.convertParameterName(String schemaParamName) Converts an operation parameter name to a java method argument name.convertPropertyEnumTypeName(String schemaPropertyName) Converts a DTO enumeration parameter name to an enumeration type name.convertPropertyName(String schemaFieldName) Converts a schema field name to a java property name.convertTypeName(String schemaName) Converts a type OpenApi schema name into a java type name.Returns the schema order used when resolving naming conflicts.booleanReturns true if types should be renamed to avoid conflicts on Windows.renameConflictingName(String name) Converts a conflicting name to a new name.
-
Field Details
-
PARSER_INTERNAL_PROPERTIES_NAME_MARKER
Prefix DTO names for composite properties. This is only used internally in the parser.- See Also:
-
-
Constructor Details
-
Naming
Creates a new instance. The properties allow the user to customize naming rules.- Parameters:
or- the option reader- See Also:
-
-
Method Details
-
isRenameCaseConflicts
public boolean isRenameCaseConflicts()Returns true if types should be renamed to avoid conflicts on Windows.- Returns:
- true if types should be renamed to avoid conflicts on Windows
-
getRenameCaseConflictSchemaOrder
Returns the schema order used when resolving naming conflicts.- Returns:
- the schema order used when resolving naming conflicts
-
convertEntityName
-
convertEnumName
-
convertEnumNumberName
-
convertApiName
-
convertTypeName
-
convertMultipartTypeName
-
convertMpSchemaName
-
renameConflictingName
-
convertOperationName
-
convertOperationIdName
-
convertPropertyName
-
convertParameterName
-
convertPropertyEnumTypeName
-