Class ClassConverter

java.lang.Object
com.beust.jcommander.converters.BaseConverter<Class>
org.jsonschema2pojo.cli.ClassConverter
All Implemented Interfaces:
com.beust.jcommander.IStringConverter<Class>

public class ClassConverter extends com.beust.jcommander.converters.BaseConverter<Class>
A converter that can create a class given a fully qualified class name. Type parameters for the class are omitted, since they are no use to JCommander at runtime (and the wild-cards prove problematic when attaching this converter to an option).
  • Constructor Details

    • ClassConverter

      public ClassConverter(String optionName)
      Create a new class converter.
      Parameters:
      optionName - The name of the option that will be using this converter.
  • Method Details