Examples of addVariable()


Examples of fr.norsys.mapper.console.mapping.MapperConfig.addVariable()

    java.util.Collection variables = application.getVariables();
    for (Iterator it = variables.iterator(); it.hasNext();) {
      Variable variable = new Variable();
      fr.norsys.mapper.console.model.Variable v = (fr.norsys.mapper.console.model.Variable)it.next();
      BeanUtils.copyFilledProperties(variable, v);
      mapperConfig.addVariable(variable);
    }

    Connection connection = application.getConnection();
    mapperConfig.getJndiMapper().getSource().setName(connection.getName());
    Config config = mapperConfig.getJndiMapper().getSource().getConfig();
View Full Code Here

Examples of jst.ScriptRuntime.addVariable()

    private void writeScriptError(HttpServletRequest request, HttpServletResponse response, TemplateException ex) throws IOException {
        ScriptRuntime runtime = templateContext.load( "templates/exception.jst");
        runtime.addGlobalVariable( "request", request );
        runtime.addGlobalVariable( "response", response );
        runtime.addGlobalVariable( "servletContext", servletContext );
        runtime.addVariable("ex", ex );
        writeResponse( response, runtime.invoke() );
    }

    private ScriptRuntime initializeScript(String scriptName, HttpServletRequest request, HttpServletResponse response) throws IOException {
        ScriptRuntime runtime = templateContext.load( scriptName );
View Full Code Here

Examples of jsynoptic.parser.ExpressionParser.addVariable()

            private void addVariable(ExpressionParser ep, Object object) {
                if (object==null) return;
                if (!(object instanceof DataSource)) return;
                String alias = DataInfo.getAlias(object);
                if (alias!=null) ep.addVariable(new VariableAssociation((DataSource)object, alias));
                else ep.addVariable(new VariableAssociation((DataSource)object, DataInfo.getLabel(object)));
            }
        });

/*        delExp.addActionListener(new ActionListener() {
View Full Code Here

Examples of jsynoptic.parser.ExpressionParser.addVariable()

            private void addVariable(ExpressionParser ep, Object object) {
                if (object==null) return;
                if (!(object instanceof DataSource)) return;
                String alias = DataInfo.getAlias(object);
                if (alias!=null) ep.addVariable(new VariableAssociation((DataSource)object, alias));
                else ep.addVariable(new VariableAssociation((DataSource)object, DataInfo.getLabel(object)));
            }
        });

/*        delExp.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of jsynoptic.parser.ExpressionParser.addVariable()

        try {
            ExpressionParser ep = new ExpressionParser(expression);
            // Add the data sources as variables, once conflicts are resolved
            for (int i = 0; i < clm.size(); ++i) {
                VariableConflict vc = (VariableConflict) clm.get(i);
                ep.addVariable(new VariableAssociation(vc.ds, vc.var));
            }
            // Add known plugins => may bring in more mathematical functions
            for (Iterator it = Run.plugins.iterator(); it.hasNext();) {
                ep.addClass(it.next().getClass());
            }
View Full Code Here

Examples of lupos.rif.model.ExistExpression.addVariable()

          this, argu);
      final ExistExpression exists = new ExistExpression();
      exists.setParent(argu);
      for (final INode node : (List<INode>) existINodes.get(1).accept(
          this, exists))
        exists.addVariable((RuleVariable) node.accept(this, exists));
      exists.expr = (IExpression) existINodes.get(3).accept(this, exists);
      return exists;
    case 3:
      return n.f0.choice.accept(this, argu);
    default:
View Full Code Here

Examples of lupos.rif.model.Rule.addVariable()

    RIFClause clause = null;
    // Wenn Variablen vorhanden
    if (n.f0.which == 0) {
      final List<INode> seq = (List<INode>) n.f0.choice.accept(this, rule);
      for (final INode node : ((List<INode>) seq.get(1).accept(this, rule)))
        rule.addVariable((RuleVariable) node.accept(this, rule));
      clause = (RIFClause) seq.get(3);
    } else
      clause = (RIFClause) n.f0.choice;
    clause.accept(this, rule);
    return rule;
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JasperDesign.addVariable()

    variable.setCalculation(CalculationEnum.SYSTEM);
    JRDesignExpression expression = new JRDesignExpression();
    expression.setValueClass(java.lang.Integer.class);
    expression.setText("($V{CityNumber} != null)?(new Integer($V{CityNumber}.intValue() + 1)):(new Integer(1))");
    variable.setInitialValueExpression(expression);
    jasperDesign.addVariable(variable);

    variable = new JRDesignVariable();
    variable.setName("AllCities");
    variable.setValueClass(java.lang.String.class);
    variable.setResetType(ResetTypeEnum.REPORT);
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JasperDesign.addVariable()

    variable = new JRDesignVariable();
    variable.setName("AllCities");
    variable.setValueClass(java.lang.String.class);
    variable.setResetType(ResetTypeEnum.REPORT);
    variable.setCalculation(CalculationEnum.SYSTEM);
    jasperDesign.addVariable(variable);

    //Groups
    group.setMinHeightToStartNewPage(60);
    expression = new JRDesignExpression();
    expression.setValueClass(java.lang.String.class);
View Full Code Here

Examples of nexj.core.meta.integration.service.Service.addVariable()

         for (StringTokenizer tokenizer = new StringTokenizer(sVarList); tokenizer.hasMoreTokens();)
         {
            String sVarName = tokenizer.nextToken();

            XMLMetadataHelper.validateName(sVarName);
            service.addVariable(new Variable(sVarName));
         }
      }

      service.setPrivilege(getPrivilege(serviceElement, "privilege"));
      m_flowFixupList = new ArrayList();
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.