// Copyright (c) 2013-2014, Webit Team. All Rights Reserved.
package webit.generator.core.typeconverter.impl;

import webit.generator.core.typeconverter.Converter;

/**
 *
 * @author zqq90
 */
public class BooleanConverter implements Converter<Boolean> {

    @Override
    public Boolean convert(String stringValue) {
        stringValue = stringValue.toLowerCase();
        return stringValue.equals("true")
                || stringValue.equals("1")
                || stringValue.equals("on");
    }
}

@@ -446,16 +446,95 @@
 ls(%221%22)%0A
+                %7C%7C stringValue.equals(%22b'1'%22) //bit(1) false: b'0', true: b'1'%0A
         

Update BooleanConverter