Class AMFImpl

java.lang.Object
org.mule.amf.impl.model.AMFImpl
All Implemented Interfaces:
Serializable, org.mule.apikit.model.ApiSpecification

public class AMFImpl extends Object implements org.mule.apikit.model.ApiSpecification
See Also:
  • Constructor Details

    • AMFImpl

      public AMFImpl(amf.apicontract.client.platform.model.domain.api.WebApi webApi, List<String> references, org.mule.apikit.model.ApiVendor vendor, String location, AMFParserWrapper parser)
  • Method Details

    • getResource

      public org.mule.apikit.model.Resource getResource(String path)
      Specified by:
      getResource in interface org.mule.apikit.model.ApiSpecification
    • getConsolidatedSchemas

      public Map<String,String> getConsolidatedSchemas()
      Specified by:
      getConsolidatedSchemas in interface org.mule.apikit.model.ApiSpecification
    • getCompiledSchemas

      public Map<String,Object> getCompiledSchemas()
      Specified by:
      getCompiledSchemas in interface org.mule.apikit.model.ApiSpecification
    • getBaseUri

      public String getBaseUri()
      Specified by:
      getBaseUri in interface org.mule.apikit.model.ApiSpecification
    • getLocation

      public String getLocation()
      Specified by:
      getLocation in interface org.mule.apikit.model.ApiSpecification
    • getResources

      public Map<String,org.mule.apikit.model.Resource> getResources()
      Specified by:
      getResources in interface org.mule.apikit.model.ApiSpecification
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface org.mule.apikit.model.ApiSpecification
    • getBaseUriParameters

      public Map<String,org.mule.apikit.model.parameter.Parameter> getBaseUriParameters()
      Specified by:
      getBaseUriParameters in interface org.mule.apikit.model.ApiSpecification
    • getSecuritySchemes

      public List<Map<String,org.mule.apikit.model.SecurityScheme>> getSecuritySchemes()
      Specified by:
      getSecuritySchemes in interface org.mule.apikit.model.ApiSpecification
    • getTraits

      public List<Map<String,org.mule.apikit.model.Template>> getTraits()
      Specified by:
      getTraits in interface org.mule.apikit.model.ApiSpecification
    • getUri

      public String getUri()
      Specified by:
      getUri in interface org.mule.apikit.model.ApiSpecification
    • dump

      public String dump(String newBaseUri)
      Specified by:
      dump in interface org.mule.apikit.model.ApiSpecification
    • getApiVendor

      public org.mule.apikit.model.ApiVendor getApiVendor()
      Specified by:
      getApiVendor in interface org.mule.apikit.model.ApiSpecification
    • getType

      public org.mule.apikit.ApiType getType()
      Specified by:
      getType in interface org.mule.apikit.model.ApiSpecification
    • getSchemas

      public List<Map<String,String>> getSchemas()
      Specified by:
      getSchemas in interface org.mule.apikit.model.ApiSpecification
    • getAllReferences

      public List<String> getAllReferences()
      Specified by:
      getAllReferences in interface org.mule.apikit.model.ApiSpecification
    • dumpAmf

      public String dumpAmf()
    • writeAMFModel

      public void writeAMFModel(OutputStream outputStream)
    • updateBaseUri

      public void updateBaseUri(String baseUri)
      Updates webApi's base URI.
      Parameters:
      baseUri - new base URI value
    • includesCallbacks

      public boolean includesCallbacks()
    • renderApi

      public String renderApi(amf.core.client.platform.model.document.Document document)
    • getRenderClient

      public amf.apicontract.client.platform.AMFBaseUnitClient getRenderClient()
    • renderApi

      public <W> void renderApi(amf.core.client.platform.model.document.Document document, org.yaml.builder.JsonOutputBuilder<W> wJsonOutputBuilder)