public class RamlParserUtils extends ParserUtils
DEFAULT_ANNOTATION, IGNORE_ANNOTATION, OPERATION_NAME_ANNOTATION, PARAMETER_NAME_ANNOTATION, PART_CONTENT_TYPE_ANNOTATION, PART_FILENAME_ANNOTATION, PART_FILENAME_PARAMETER_ANNOTATION, PART_NAME_ANNOTATION, PART_NAME_PARAMETER_ANNOTATION, RENEW_TOKEN_EXPRESSION_ANNOTATION, USER_SELECTED_SECURITY_SCHEMES_ANNOTATION| Modifier | Constructor and Description |
|---|---|
protected |
RamlParserUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAnnotatedOperationName(org.raml.v2.api.model.v10.methods.Method method) |
static String |
getAnnotatedParameterName(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration) |
static String |
getAnnotatedPartContentType(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration) |
static String |
getAnnotatedPartFilename(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration) |
static String |
getAnnotatedPartFilenameParameter(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration) |
static String |
getAnnotatedPartName(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration) |
static String |
getAnnotatedPartNameParameter(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration) |
static String |
getAnnotatedRenewTokenExpression(org.raml.v2.api.model.v10.security.SecurityScheme securityScheme) |
static String |
getAnnotationStringValue(org.raml.v2.api.model.v10.common.Annotable target,
String annotationName) |
static String |
getCanonicalOperationName(org.raml.v2.api.model.v10.methods.Method method,
String friendlyName) |
static String |
getMethodDescription(org.raml.v2.api.model.v10.methods.Method method) |
static String |
getMethodDisplayName(org.raml.v2.api.model.v10.methods.Method method) |
static List<Parameter> |
getParameterList(List<org.raml.v2.api.model.v10.datamodel.TypeDeclaration> typeDeclarationParameters,
boolean setDefaultMediaTypes,
ParameterType parameterType,
JsonSchemaPool jsonSchemaPool) |
static List<Parameter> |
getParameterList(List<org.raml.v2.api.model.v10.datamodel.TypeDeclaration> typeDeclarationParameters,
ParameterType parameterType,
JsonSchemaPool jsonSchemaPool) |
static List<PartParameter> |
getPartParameterList(List<org.raml.v2.api.model.v10.datamodel.TypeDeclaration> typeDeclarationParameters,
JsonSchemaPool jsonSchemaPool) |
static String |
getValueFromAnnotableString(org.raml.v2.api.model.v10.system.types.AnnotableStringType annotableString) |
static boolean |
isDefault(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration) |
static boolean |
isGenerateUserSelectedSecuritySchemes(org.raml.v2.api.model.v10.methods.Method method,
org.raml.v2.api.model.v10.api.Api api) |
static boolean |
isIgnored(org.raml.v2.api.model.v10.methods.Method method) |
getCanonicalNameFromFriendlyName, getCanonicalOperationName, getCapUnderscoreName, getJavaName, getParameterName, getSanitizedOperationName, getXmlName, getXmlSanitizedName, hasUriParameter, isReservedJavaWord, isReservedMuleKeyword, isValidMuleParameterName, removeDots, removeHyphens, removeJavaNameUnwantedCharacters, removeJavaNameUnwantedCharacters, removeJavaPackageUnwantedCharacters, removeMavenArtifactUnwantedCharacters, removeMavenGroupUnwantedCharacters, removeMavenVersionUnwantedCharacters, removeSpaces, removeSpacesAndHyphens, removeTrailingSlashFromPathIfNeeded, removeXmlUnwantedCharacters, splitCaps, splitCapsWithHypens, splitCapsWithUnderscores, splitNumbersAndLetterspublic static String getMethodDescription(org.raml.v2.api.model.v10.methods.Method method)
public static String getMethodDisplayName(org.raml.v2.api.model.v10.methods.Method method)
public static String getCanonicalOperationName(org.raml.v2.api.model.v10.methods.Method method, String friendlyName)
public static String getAnnotatedOperationName(org.raml.v2.api.model.v10.methods.Method method)
public static String getAnnotatedParameterName(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration)
public static String getAnnotatedPartName(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration)
public static String getAnnotatedPartFilename(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration)
public static String getAnnotatedPartContentType(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration)
public static String getAnnotatedPartNameParameter(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration)
public static String getAnnotatedPartFilenameParameter(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration)
public static String getAnnotatedRenewTokenExpression(org.raml.v2.api.model.v10.security.SecurityScheme securityScheme)
public static String getAnnotationStringValue(org.raml.v2.api.model.v10.common.Annotable target, String annotationName)
public static List<Parameter> getParameterList(List<org.raml.v2.api.model.v10.datamodel.TypeDeclaration> typeDeclarationParameters, ParameterType parameterType, JsonSchemaPool jsonSchemaPool) throws Exception
Exceptionpublic static List<Parameter> getParameterList(List<org.raml.v2.api.model.v10.datamodel.TypeDeclaration> typeDeclarationParameters, boolean setDefaultMediaTypes, ParameterType parameterType, JsonSchemaPool jsonSchemaPool) throws Exception
Exceptionpublic static List<PartParameter> getPartParameterList(List<org.raml.v2.api.model.v10.datamodel.TypeDeclaration> typeDeclarationParameters, JsonSchemaPool jsonSchemaPool) throws Exception
Exceptionpublic static String getValueFromAnnotableString(org.raml.v2.api.model.v10.system.types.AnnotableStringType annotableString)
public static boolean isIgnored(org.raml.v2.api.model.v10.methods.Method method)
public static boolean isDefault(org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration)
public static boolean isGenerateUserSelectedSecuritySchemes(org.raml.v2.api.model.v10.methods.Method method,
org.raml.v2.api.model.v10.api.Api api)
Copyright © 2023. All rights reserved.