public class Jsonschema2Pojo extends Object
Constructor and Description |
---|
Jsonschema2Pojo() |
Modifier and Type | Method and Description |
---|---|
static void |
generate(GenerationConfig config,
RuleLogger logger)
Reads the contents of the given source and initiates schema generation.
|
static String |
getNodeName(String filePath,
GenerationConfig config) |
static String |
getNodeName(URL file,
GenerationConfig config) |
public static void generate(GenerationConfig config, RuleLogger logger) throws IOException
config
- the configuration options (including source and target paths,
and other behavioural options) that will control code
generationFileNotFoundException
- if the source path is not foundIOException
- if the application is unable to read data from the sourcepublic static String getNodeName(URL file, GenerationConfig config)
public static String getNodeName(String filePath, GenerationConfig config)
Copyright © 2022. All rights reserved.