Examples of toBooleanValue()


Examples of com.asakusafw.dmdl.model.AstLiteral.toBooleanValue()

    private void consumeEnableDictionary(
            DmdlSemantics environment, AstAttribute attribute,
            Map<String, AstAttributeElement> elements, ParquetFileTrait result) {
        AstLiteral value = take(environment, attribute, elements, ELEMENT_ENABLE_DICTIONARY, LiteralKind.BOOLEAN);
        if (value != null) {
            result.configuration().withEnableDictionary(value.toBooleanValue());
        }
    }

    private void consumeEnableValidation(
            DmdlSemantics environment, AstAttribute attribute,
View Full Code Here

Examples of com.asakusafw.dmdl.model.AstLiteral.toBooleanValue()

    private void consumeEnableValidation(
            DmdlSemantics environment, AstAttribute attribute,
            Map<String, AstAttributeElement> elements, ParquetFileTrait result) {
        AstLiteral value = take(environment, attribute, elements, ELEMENT_ENABLE_VALIDATION, LiteralKind.BOOLEAN);
        if (value != null) {
            result.configuration().withEnableValidation(value.toBooleanValue());
        }
    }

    private AstLiteral take(
            DmdlSemantics environment,
View Full Code Here

Examples of org.encog.ml.prg.expvalue.ExpressionValue.toBooleanValue()

   */
  private boolean isTrue(ProgramNode node) {
    if (node.getTemplate() == StandardExtensions.EXTENSION_CONST_SUPPORT) {
      ExpressionValue v = node.evaluate();
      if (v.isBoolean()) {
        if (v.toBooleanValue()) {
          return true;
        }
      }
    }
    return false;
View Full Code Here

Examples of org.encog.ml.prg.expvalue.ExpressionValue.toBooleanValue()

   */
  private boolean isFalse(ProgramNode node) {
    if (node.getTemplate() == StandardExtensions.EXTENSION_CONST_SUPPORT) {
      ExpressionValue v = node.evaluate();
      if (v.isBoolean()) {
        if (!v.toBooleanValue()) {
          return true;
        }
      }
    }
    return false;
View Full Code Here

Examples of org.encog.ml.prg.expvalue.ExpressionValue.toBooleanValue()

      result.setData(0, v.toFloatValue());
      success = true;
      break;
    case booleanType:
      if (v.isBoolean()) {
        result.setData(0, v.toBooleanValue() ? 1.0 : 0.0);
        success = true;
      }
      break;
    case intType:
      if (v.isNumeric()) {
View Full Code Here

Examples of railo.commons.lang.types.RefBoolean.toBooleanValue()

      // Type
      TagLibTagAttr tlta=null;
    if(tlt!=null){
      tlta = tlt.getAttribute(name);
    }
    return new Attribute(dynamic.toBooleanValue(),name,tlta!=null?CastOther.toExpression(value, tlta.getType()):value,sbType.toString());
    }
 
  /*private String attributeName(CFMLString cfml, ArrayList<String> args,TagLibTag tag, RefBoolean dynamic, StringBuffer sbType) throws TemplateException {
    String id=StringUtil.toLowerCase(CFMLTransformer.identifier(cfml,true));
        if(args.contains(id)) throw new TemplateException(cfml,"you can't use the same attribute ["+id+"] twice");
View Full Code Here

Examples of railo.commons.lang.types.RefBoolean.toBooleanValue()

          if(meta!=null){
            name=(String) names.get(keys[i],null);
            if(name==null) continue; // param not needed will be ignored
            type = meta.getNamedParameterExpectedType(name);
            obj=HibernateCaster.toSQL(type, obj,isArray);
            if(isArray.toBooleanValue())
              query.setParameterList(name, (Object[])obj,type);
            else
              query.setParameter(name, obj,type);
           
           
View Full Code Here

Examples of railo.commons.lang.types.RefBoolean.toBooleanValue()

        String clazzName=clazz.getName();
       
        ClassLoader classLoader=clazz.getClassLoader();
        Pair pair;
        SOAPService rpc=null;
        if(!isnew.toBooleanValue() && (pair = (Pair)soapServices.get(clazzName))!=null) {
          if(classLoader==pair.classloader)
            rpc=pair.rpc;
        }
        //else classLoader = clazz.getClassLoader();
       
View Full Code Here

Examples of railo.commons.lang.types.RefBoolean.toBooleanValue()

         
        } catch (Throwable t) {}
      }
        } 
        finally {
          if(!before.toBooleanValue())ThreadLocalDuplication.reset();
        }
     
    return object;
    }
View Full Code Here

Examples of railo.commons.lang.types.RefBoolean.toBooleanValue()

      realPath=mergeRealPathes(mapping,this.realPath, realPath.substring(2),_isOutSide);
    }
    else {
      realPath=mergeRealPathes(mapping,this.realPath, realPath,_isOutSide);
    }
    return mapping.getPageSource(realPath,_isOutSide.toBooleanValue());
  }
 
  @Override
  public final void setLastAccessTime(long lastAccess) {
    this.lastAccess=lastAccess;
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.