public class JavaInputReader extends Object implements com.devonfw.cobigen.api.extension.InputReader
InputReader Interface of the CobiGen, to be able to read Java classes into
FreeMarker models| Constructor and Description |
|---|
JavaInputReader() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
createModel(Object o) |
List<Object> |
getInputObjects(Object input,
Charset inputCharset) |
List<Object> |
getInputObjects(Object input,
Charset inputCharset,
boolean recursively)
Returns all input objects for the given container input.
|
List<Object> |
getInputObjectsRecursively(Object input,
Charset inputCharset) |
Map<String,Object> |
getTemplateMethods(Object input) |
boolean |
isValidInput(Object input) |
Object |
read(Path path,
Charset inputCharset,
Object... additionalArguments)
Reads the data at the specified path.
|
public boolean isValidInput(Object input)
isValidInput in interface com.devonfw.cobigen.api.extension.InputReaderpublic Map<String,Object> createModel(Object o)
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 List<Object> getInputObjectsRecursively(Object input, Charset inputCharset)
getInputObjectsRecursively in interface com.devonfw.cobigen.api.extension.InputReaderpublic List<Object> getInputObjects(Object input, Charset inputCharset, boolean recursively)
input - container input (only PackageFolder instances will be supported)inputCharset - Charset to be used to read the childrenrecursively - states, whether the children should be retrieved recursivelyFile objectspublic Map<String,Object> getTemplateMethods(Object input)
getTemplateMethods 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.InputReaderpath - the Path of the content to readadditionalArguments - com.devonfw.cobigen.api.exception.InputReaderExceptionCopyright © 2018 DevonFw. All rights reserved.