Examples of addElement()


Examples of org.mybatis.generator.api.dom.xml.XmlElement.addElement()

    StringBuilder sb = new StringBuilder();
    sb.append("select * from "); //$NON-NLS-1$
    sb.append(introspectedTable
        .getAliasedFullyQualifiedTableNameAtRuntime());
    answer.addElement(new TextElement(sb.toString()));

    XmlElement whereElement = new XmlElement("where"); //$NON-NLS-1$
    for (IntrospectedColumn introspectedColumn : introspectedTable
        .getAllColumns())
    {
View Full Code Here

Examples of org.neuroph.core.learning.TrainingSet.addElement()

     * Create and run MLP with XOR training set
     */
    public static void main(String[] args) {
        // create training set (logical XOR function)
        TrainingSet trainingSet = new TrainingSet(2, 1);
        trainingSet.addElement(new SupervisedTrainingElement(new double[]{0, 0}, new double[]{0}));
        trainingSet.addElement(new SupervisedTrainingElement(new double[]{0, 1}, new double[]{1}));
        trainingSet.addElement(new SupervisedTrainingElement(new double[]{1, 0}, new double[]{1}));
        trainingSet.addElement(new SupervisedTrainingElement(new double[]{1, 1}, new double[]{0}));

        MultiLayerPerceptron nnet = new MultiLayerPerceptron( TransferFunctionType.TANH ,2, 3, 1);
View Full Code Here

Examples of org.omegahat.Environment.Parser.Parse.List.addElement()

   return(new List()); // currently necessary, but the expressions should handle null arguments.

int n = names.length;
  l = new List(n);
for(int i = 0; i < n; i++)
   l.addElement(new Name(names[i]));

return(l);
}

View Full Code Here

Examples of org.onebusaway.transit_data_federation.services.realtime.VehicleLocationCacheEntry.addElement()

      /**
       * If the element failed to add because the entry is closed, we loop.
       * Someone closed the entry while we were in the process of requesting it
       * from the map. On the next loop, it should no longer be in the map.
       */
      if (!cacheEntry.addElement(record, scheduledBlockLocation, samples))
        continue;

      BlockInstance existingBlockInstance = cacheEntry.getBlockInstance();
      if (!blockInstance.equals(existingBlockInstance))
        ConcurrentCollectionsLibrary.removeFromMapValueSet(
View Full Code Here

Examples of org.openengsb.core.edbi.jdbc.sql.Table.addElement()

                }
                ((JdbcIndexField) field).setMappedType(type);

                Column column = new Column(getColumnNameTranslator().translate(field), type);

                table.addElement(column);
                onAfterFieldVisit(table, column, field);
            }
        });

        onAfterCreate(table, index);
View Full Code Here

Examples of org.openrdf.query.algebra.Extension.addElement()

      ValueExpr valueExpr = (ValueExpr)projElemNode.getValueExpr().jjtAccept(this, null);

      String alias = projElemNode.getAlias();
      if (alias != null) {
        // aliased projection element
        extension.addElement(new ExtensionElem(valueExpr, alias));
        projElemList.addElement(new ProjectionElem(alias));
      }
      else if (valueExpr instanceof Var) {
        // unaliased variable
        Var projVar = (Var)valueExpr;
View Full Code Here

Examples of org.openrdf.query.algebra.ProjectionElemList.addElement()

      for (Var var : constructVars) {
        // Ignore anonymous and constant vars, these will be handled after
        // the distinct
        if (!var.isAnonymous() && !var.hasValue()) {
          projElemList.addElement(new ProjectionElem(var.getName()));
        }
      }

      result = new Projection(result, projElemList);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Band.addElement()

    {
      TextFieldElementFactory tFF = new TextFieldElementFactory();
      tFF.setFieldname(tableModel.getColumnName(i));
      tFF.setAbsolutePosition(new Point2D.Float(200 * (i - 3), 0));
      tFF.setMinimumSize(new FloatDimension(200, 12));
      b.addElement(tFF.createElement());
    }
    report.getItemBand().addElement(b);

    assertTrue(FunctionalityTestLib.execGraphics2D(report));
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.CrosstabCell.addElement()

    columnGroup.getTitleHeader().addElement(createDataItem("Cols"));
    columnGroup.getHeader().addElement(createFieldItem("Cols"));

    final CrosstabCellBody body = (CrosstabCellBody) columnGroup.getBody();
    final CrosstabCell cell = new CrosstabCell();
    cell.addElement(createFieldItem("Data"));
    body.addElement(cell);
    return crosstabGroup;
  }

  public static Element createDataItem(final String text)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.CrosstabCellBody.addElement()

    {
      final CrosstabCellBody body = (CrosstabCellBody) rawLeadSelection;
      if (insert instanceof CrosstabCell)
      {
        final CrosstabCell crosstabCell = (CrosstabCell) insert.derive();
        body.addElement(crosstabCell);
        return crosstabCell;
      }
    }

    return null;
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.