Examples of LengthFunction


Examples of com.firefly.template.function.LengthFunction

    if(config == null)
      throw new IllegalArgumentException("template config is null");
   
    long start = System.currentTimeMillis();
    FunctionRegistry.add("dateFormat", new DateFormatFunction(config.getCharset()));
    FunctionRegistry.add("len", new LengthFunction(config.getCharset()));
    ViewFileReader reader = new ViewFileReader(config);
    List<String> javaFiles = reader.getJavaFiles();
    List<String> templateFiles = reader.getTemplateFiles();
    List<String> classNames = reader.getClassNames();
   
View Full Code Here

Examples of com.firefly.template.function.LengthFunction

    if(config == null)
      throw new IllegalArgumentException("template config is null");
   
    long start = System.currentTimeMillis();
    FunctionRegistry.add("dateFormat", new DateFormatFunction(config.getCharset()));
    FunctionRegistry.add("len", new LengthFunction(config.getCharset()));
    FunctionRegistry.add("increment", new AutoincrementFunction(config.getCharset()));
    FunctionRegistry.add("cut", new CutStringFunction(config.getCharset()));
    FunctionRegistry.add("escape", new XmlEscapeFunction(config.getCharset()));
    FunctionRegistry.add("remove", new RemoveAttributeFunction());
    FunctionRegistry.add("modOut", new ModuloOutputFunction(config.getCharset()));
View Full Code Here

Examples of com.google.clearsilver.jsilver.functions.string.LengthFunction

    registerFunction("min", new MinFunction());

    // String functions.
    registerFunction("string.slice", new SliceFunction());
    registerFunction("string.find", new FindFunction());
    registerFunction("string.length", new LengthFunction());
    registerFunction("string.crc", new CrcFunction());

    // Escaping functions.
    registerFunction("url_escape", new UrlEscapeFunction("UTF-8"), true);
    registerEscapeMode("url", new UrlEscapeFunction("UTF-8"));
View Full Code Here

Examples of com.salesforce.phoenix.expression.function.LengthFunction

    }
   
    @Test
    public void length() throws Exception {
        List<Expression> args = Lists.newArrayList(getInvertedLiteral("blah", PDataType.CHAR));
        evaluateAndAssertResult(new LengthFunction(args), 4);
    }
View Full Code Here

Examples of edu.uci.ics.jung.visualization.SpringLayout.LengthFunction

    dataBindingClient = new DataBindingClient(app.getLoader());
    Graph g = dataBindingClient.getStartGraph();
    edu.uci.ics.jung.graph.Graph jungGraph = mapper.toJung(g);

                LengthFunction f = app.getRenderer().getLengthFunction() ;
                VisualizationViewer vv = null ;
                if ( f == null)
                    vv = new VisualizationViewer(
                                    new TemporalSpringLayout(jungGraph, 50), pr);
                else
View Full Code Here

Examples of org.apache.phoenix.expression.function.LengthFunction

    }
   
    @Test
    public void length() throws Exception {
        List<Expression> args = Lists.newArrayList(getInvertedLiteral("blah", PDataType.CHAR));
        evaluateAndAssertResult(new LengthFunction(args), 4);
    }
View Full Code Here

Examples of org.apache.phoenix.expression.function.LengthFunction

    }
   
    @Test
    public void length() throws Exception {
        List<Expression> args = Lists.newArrayList(getInvertedLiteral("blah", PDataType.CHAR));
        evaluateAndAssertResult(new LengthFunction(args), 4);
    }
View Full Code Here

Examples of org.geotools.filter.LengthFunction

     */
    protected Filter lengthRestriction(int length ){
        if ( length < 0 ) {
            return null;
        }
        LengthFunction lengthFunction = (LengthFunction)ff.function("LengthFunction",
                new Expression[]{ff.property(".")});
        if( lengthFunction == null ) {
            return null;
        }       
        Filter cf = null;
View Full Code Here

Examples of org.hibernate.ejb.criteria.expression.function.LengthFunction

  public Expression<String> upper(Expression<String> value) {
    return new UpperFunction( this, value );
  }

  public Expression<Integer> length(Expression<String> value) {
    return new LengthFunction( this, value );
  }
View Full Code Here

Examples of org.hibernate.ejb.criteria.expression.function.LengthFunction

  public Expression<String> upper(Expression<String> value) {
    return new UpperFunction( this, value );
  }

  public Expression<Integer> length(Expression<String> value) {
    return new LengthFunction( this, value );
  }
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.