public class OpenAPIInputReader extends Object implements com.devonfw.cobigen.api.extension.InputReader
InputReader Interface of the CobiGen, to be able to read OpenApi3 definition
files into FreeMarker models| Constructor and Description |
|---|
OpenAPIInputReader() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
createModel(Object input) |
List<Object> |
getInputObjects(Object input,
Charset inputCharset) |
List<Object> |
getInputObjectsRecursively(Object input,
Charset inputCharset) |
Map<String,Object> |
getTemplateMethods(Object input) |
boolean |
isMostLikelyReadable(Path path) |
boolean |
isValidInput(Object input) |
Object |
read(Path path,
Charset inputCharset,
Object... additionalArguments) |
public boolean isValidInput(Object input)
isValidInput in interface com.devonfw.cobigen.api.extension.InputReaderpublic Map<String,Object> createModel(Object input)
createModel in interface com.devonfw.cobigen.api.extension.InputReaderpublic List<Object> getInputObjects(Object input, Charset inputCharset)
getInputObjects in interface com.devonfw.cobigen.api.extension.InputReaderpublic Map<String,Object> getTemplateMethods(Object input)
getTemplateMethods in interface com.devonfw.cobigen.api.extension.InputReaderpublic List<Object> getInputObjectsRecursively(Object input, Charset inputCharset)
getInputObjectsRecursively in interface com.devonfw.cobigen.api.extension.InputReaderpublic Object read(Path path, Charset inputCharset, Object... additionalArguments) throws com.devonfw.cobigen.api.exception.InputReaderException
read in interface com.devonfw.cobigen.api.extension.InputReadercom.devonfw.cobigen.api.exception.InputReaderExceptionpublic boolean isMostLikelyReadable(Path path)
isMostLikelyReadable in interface com.devonfw.cobigen.api.extension.InputReaderCopyright © 2019 DevonFw. All rights reserved.