Examples of BooleanConverter


Examples of org.jboss.forge.shell.command.convert.BooleanConverter

   @Inject
   private IgnoreEofKeyListener ignoreEOF;

   void init(@Observes final Startup event, final PluginCommandCompleter pluginCompleter) throws Exception
   {
      BooleanConverter booleanConverter = new BooleanConverter();

      addConversionHandler(boolean.class, booleanConverter);
      addConversionHandler(Boolean.class, booleanConverter);
      addConversionHandler(File.class, new FileConverter());
      addConversionHandler(Dependency.class, new DependencyIdConverter());
View Full Code Here

Examples of org.jboss.forge.shell.command.convert.BooleanConverter

   @Inject
   private IgnoreEofKeyListener ignoreEOF;

   void init(@Observes final Startup event, final PluginCommandCompleter pluginCompleter) throws Exception
   {
      BooleanConverter booleanConverter = new BooleanConverter();

      addConversionHandler(boolean.class, booleanConverter);
      addConversionHandler(Boolean.class, booleanConverter);
      addConversionHandler(File.class, new FileConverter());
      addConversionHandler(Dependency.class, new DependencyIdConverter());
View Full Code Here

Examples of org.jvnet.jaxb2_commons.javaforkmlapi.booleanconverter.BooleanConverter

    mCommand.add(new CleanCode(outline, opts, errorHandler, pool));
    mCommand.add(new CreateIconClass(outline, opts, errorHandler, pool));
    mCommand.add(new CreateCoordinateClass(outline, opts, errorHandler, pool));
    mCommand.add(new JaxbPluginXmlRootElement(outline, opts, errorHandler, pool));
    mCommand.add(new ConvertComplexTypesToSimpleTypes(outline, opts, errorHandler, pool));
    mCommand.add(new BooleanConverter(outline, opts, errorHandler, pool));
    // // mCommand.add(new JaxbPluginXmlRootElement(outline, opts, errorHandler));
    mCommand.add(new CreateEqualsAndHashCode(outline, opts, errorHandler, pool));
    mCommand.add(new CreateConstructors(outline, opts, errorHandler, pool));
    // // mCommand.add(new BuilderPattern(outline, opts, errorHandler));
    mCommand.add(new FluentPattern(outline, opts, errorHandler, pool));
View Full Code Here

Examples of org.modelmapper.internal.converter.BooleanConverter

public class BooleanConverterTest extends AbstractConverterTest {
  public static final String[] STANDARD_TRUES = new String[] { "yes", "y", "true", "on", "1" };
  public static final String[] STANDARD_FALSES = new String[] { "no", "n", "false", "off", "0" };

  public BooleanConverterTest() {
    super(new BooleanConverter(), Boolean.class);
  }
View Full Code Here

Examples of org.more.convert.convert.BooleanConverter

     * @param throwException <code>true</code> if the converters should
     * throw an exception when a conversion error occurs, otherwise <code>
     * <code>false</code> if a default value should be used.
     */
    private void registerPrimitives(final boolean throwException) {
        this.register(Boolean.TYPE, throwException ? new BooleanConverter() : new BooleanConverter(Boolean.FALSE));
        this.register(Byte.TYPE, throwException ? new ByteConverter() : new ByteConverter(ConverterBean.ZERO));
        this.register(Character.TYPE, throwException ? new CharacterConverter() : new CharacterConverter(ConverterBean.SPACE));
        this.register(Double.TYPE, throwException ? new DoubleConverter() : new DoubleConverter(ConverterBean.ZERO));
        this.register(Float.TYPE, throwException ? new FloatConverter() : new FloatConverter(ConverterBean.ZERO));
        this.register(Integer.TYPE, throwException ? new IntegerConverter() : new IntegerConverter(ConverterBean.ZERO));
View Full Code Here

Examples of org.projectforge.xml.stream.converter.BooleanConverter

    internalRegisterAlias(short.class, "short");
    internalRegisterAlias(TimeZone.class, "timeZone");
    internalRegisterAlias(Locale.class, "locale");
    internalRegisterAlias(Version.class, "version");

    IConverter< ? > conv = new BooleanConverter();
    internalRegisterConverter(Boolean.class, conv);
    internalRegisterConverter(boolean.class, conv);
    conv = new DoubleConverter();
    internalRegisterConverter(Double.class, conv);
    internalRegisterConverter(double.class, conv);
View Full Code Here

Examples of org.soybeanMilk.core.bean.converters.BooleanConverter

   * 添加可以将字符串转换到原子类型的辅助转换器
   */
  protected void addStringSourceConverters()
  {
    //基本类型及其包装类型
    addConverter(String.class, Boolean.class, new BooleanConverter());
    addConverter(String.class, Byte.class, new ByteConverter());
    addConverter(String.class, Character.class, new CharacterConverter());
    addConverter(String.class, Double.class, new DoubleConverter());
    addConverter(String.class, Float.class, new FloatConverter());
    addConverter(String.class, Integer.class, new IntegerConverter());
View Full Code Here

Examples of org.springframework.shell.converters.BooleanConverter

    return new BigIntegerConverter();
  }

  @Bean
  Converter booleanConverter() {
    return new BooleanConverter();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.