public class CurrentBuild extends Object
| Constructor and Description |
|---|
CurrentBuild(org.raml.v2.api.model.v10.api.Api api,
ExtensionManager extensionManager,
File ramlDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
constructClasses(GFinder finder) |
<T> Iterable<T> |
createExtensions(String className) |
org.raml.ramltopojo.RamlToPojo |
fetchRamlToPojoBuilder() |
V10GType |
fetchType(org.raml.v2.api.model.v10.resources.Resource resource,
org.raml.v2.api.model.v10.methods.Method method,
org.raml.v2.api.model.v10.bodies.Response response,
org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration) |
V10GType |
fetchType(org.raml.v2.api.model.v10.resources.Resource implementation,
org.raml.v2.api.model.v10.methods.Method method,
org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration) |
V10GType |
fetchType(org.raml.v2.api.model.v10.resources.Resource resource,
org.raml.v2.api.model.v10.datamodel.TypeDeclaration input) |
V10GType |
fetchType(String name,
org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration) |
void |
generate(File rootDirectory) |
org.raml.v2.api.model.v10.api.Api |
getApi() |
org.jsonschema2pojo.GenerationConfig |
getJsonMapperConfig() |
String |
getModelPackage() |
File |
getRamlDirectory() |
String |
getResourcePackage() |
File |
getSchemaRepository() |
String |
getSupportPackage() |
void |
newGenerator(String ramlTypeName,
TypeGenerator generator) |
void |
newResource(ResourceGenerator rg) |
void |
newSupportGenerator(JavaPoetTypeGenerator generator) |
ResourceClassExtension<GResource> |
pluginsForResourceClass(com.google.common.base.Function<Collection<ResourceClassExtension<GResource>>,ResourceClassExtension<GResource>> provider,
GResource resource) |
ResourceMethodExtension<GMethod> |
pluginsForResourceMethod(com.google.common.base.Function<Collection<ResourceMethodExtension<GMethod>>,ResourceMethodExtension<GMethod>> provider,
GMethod resource) |
ResponseClassExtension<GMethod> |
pluginsForResponseClass(com.google.common.base.Function<Collection<ResponseClassExtension<GMethod>>,ResponseClassExtension<GMethod>> provider,
GMethod method) |
ResponseMethodExtension<GResponse> |
pluginsForResponseMethod(com.google.common.base.Function<Collection<ResponseMethodExtension<GResponse>>,ResponseMethodExtension<GResponse>> provider,
GResponse resource) |
void |
setConfiguration(Configuration configuration) |
boolean |
shouldCopySchemas() |
List<String> |
typeConfiguration() |
GlobalResourceExtension |
withResourceListeners() |
public CurrentBuild(org.raml.v2.api.model.v10.api.Api api,
ExtensionManager extensionManager,
File ramlDirectory)
public File getRamlDirectory()
public org.raml.ramltopojo.RamlToPojo fetchRamlToPojoBuilder()
public File getSchemaRepository()
public org.raml.v2.api.model.v10.api.Api getApi()
public String getResourcePackage()
public String getModelPackage()
public String getSupportPackage()
public void generate(File rootDirectory) throws IOException
IOExceptionpublic void newGenerator(String ramlTypeName, TypeGenerator generator)
public void newSupportGenerator(JavaPoetTypeGenerator generator)
public void newResource(ResourceGenerator rg)
public void constructClasses(GFinder finder)
public void setConfiguration(Configuration configuration)
public org.jsonschema2pojo.GenerationConfig getJsonMapperConfig()
public ResourceClassExtension<GResource> pluginsForResourceClass(com.google.common.base.Function<Collection<ResourceClassExtension<GResource>>,ResourceClassExtension<GResource>> provider, GResource resource)
public ResponseClassExtension<GMethod> pluginsForResponseClass(com.google.common.base.Function<Collection<ResponseClassExtension<GMethod>>,ResponseClassExtension<GMethod>> provider, GMethod method)
public ResourceMethodExtension<GMethod> pluginsForResourceMethod(com.google.common.base.Function<Collection<ResourceMethodExtension<GMethod>>,ResourceMethodExtension<GMethod>> provider, GMethod resource)
public ResponseMethodExtension<GResponse> pluginsForResponseMethod(com.google.common.base.Function<Collection<ResponseMethodExtension<GResponse>>,ResponseMethodExtension<GResponse>> provider, GResponse resource)
public GlobalResourceExtension withResourceListeners()
public V10GType fetchType(org.raml.v2.api.model.v10.resources.Resource implementation, org.raml.v2.api.model.v10.methods.Method method, org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration)
public V10GType fetchType(org.raml.v2.api.model.v10.resources.Resource resource, org.raml.v2.api.model.v10.datamodel.TypeDeclaration input)
public V10GType fetchType(org.raml.v2.api.model.v10.resources.Resource resource, org.raml.v2.api.model.v10.methods.Method method, org.raml.v2.api.model.v10.bodies.Response response, org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration)
public V10GType fetchType(String name, org.raml.v2.api.model.v10.datamodel.TypeDeclaration typeDeclaration)
public boolean shouldCopySchemas()
Copyright © 2019 Mulesoft. All rights reserved.