public class CreateMetaDescriptor extends Object
| Constructor and Description |
|---|
CreateMetaDescriptor(Path descriptorFilePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGeneratedSchemaPath(Path shemaPath) |
@NotNull com.mulesoft.connectivity.rest.sdk.internal.webapi.model.APIOperationModel |
findRealOperation(@NotNull String operationId,
@NotNull com.mulesoft.connectivity.rest.sdk.internal.webapi.parser.amf.AMFAPIModel apiModel,
Location operationIdLocation)
Finds an operation by its id, retrieving the real one of the passed one is a derived operation created by an extension.
|
Path |
getDescriptorFilePath() |
List<Path> |
getGeneratedJsonSchemas() |
void |
load(com.mulesoft.connectivity.rest.sdk.internal.webapi.model.APIModel apiModel) |
com.mulesoft.connectivity.rest.sdk.internal.webapi.model.APIModel |
parseAPISpec(Path resolvedApiSpec) |
void |
writeTo(Writer writer,
boolean writeLocation) |
public CreateMetaDescriptor(Path descriptorFilePath)
public com.mulesoft.connectivity.rest.sdk.internal.webapi.model.APIModel parseAPISpec(Path resolvedApiSpec) throws com.mulesoft.connectivity.rest.sdk.internal.webapi.exception.ModelGenerationException
com.mulesoft.connectivity.rest.sdk.internal.webapi.exception.ModelGenerationExceptionpublic void load(com.mulesoft.connectivity.rest.sdk.internal.webapi.model.APIModel apiModel)
public void writeTo(Writer writer, boolean writeLocation) throws IOException
IOExceptionpublic Path getDescriptorFilePath()
public void addGeneratedSchemaPath(Path shemaPath)
@NotNull
public @NotNull com.mulesoft.connectivity.rest.sdk.internal.webapi.model.APIOperationModel findRealOperation(@NotNull
@NotNull String operationId,
@NotNull
@NotNull com.mulesoft.connectivity.rest.sdk.internal.webapi.parser.amf.AMFAPIModel apiModel,
Location operationIdLocation)
This method fails with an exception if the operation is not found.
operationId - the operation Id, possibly derivedapiModel - the spec modeloperationIdLocation - source location of the operationId, for traceabilityCopyright © 2023 Mulesoft. All rights reserved.