Examples of Sequence


Examples of org.jmock.Sequence

    public void doesNotShowContentsOfThePropertiesProperty() throws IOException {
        context.checking(new Expectations() {{
            one(project).getProperties();
            will(returnValue(GUtil.map("prop", "value", "properties", "prop")));

            Sequence sequence = context.sequence("seq");

            one(renderer).addProperty("prop", "value");
            inSequence(sequence);
            one(renderer).addProperty("properties", "{...}");
            inSequence(sequence);

Examples of org.jmock.Sequence

    }
   
    @Test
    public void executesTaskWhenOutputsAreNotUpToDate() {
        context.checking(new Expectations() {{
            Sequence sequence = context.sequence("seq");

            one(repository).getStateFor(task);
            will(returnValue(taskArtifactState));
            inSequence(sequence);

Examples of org.lealone.dbobject.Sequence

    public Insert createInsert() {
        return new Insert(this);
    }

    public Sequence createSequence(Schema schema, int id, String name, boolean belongsToTable) {
        return new Sequence(schema, id, name, belongsToTable);
    }

Examples of org.moltools.lib.seq.Sequence

     
    }
    //Go through each tag of this combination
    for (int pos = 0; pos < combination.length; pos++) {
      //Check if the tag is used in any other tag position
      Sequence tag1 = taglibraries[pos].getSequenceAt(combination[pos]);
      for (int pos2 = 0; pos2 < combination.length; pos2++) {
        //Check with each other position
        Sequence tag2 = taglibraries[pos2].getSequenceAt(combination[pos2]);
        //if the tags are equal
        if (tag1.equals(tag2)) {
          //OK if same position or both positions in allowed mode
          if (pos != pos2) {
            if (! (allowed[pos] && allowed[pos2])) {

Examples of org.mozilla.jss.asn1.SEQUENCE

      // SEQUENCE seq = new SEQUENCE();
      // seq.addElement(new INTEGER(EcCore.fieldElemToBytes(r, params)));
      // seq.addElement(new INTEGER(EcCore.fieldElemToBytes(s, params)));

      // Sigh, another work around...
      SEQUENCE seq = new SEQUENCE();

      byte[] tmp = new byte[2 + (((ECFieldFp) params.getCurve().getField())
          .getFieldSize() + 7) / 8];
      tmp[0] = 0x02;
      tmp[1] = (byte) EcCore.fieldElemToBytes(r, params, tmp, 2);
      seq.addElement(new ANY(tmp));

      tmp = new byte[2 + (((ECFieldFp) params.getCurve().getField())
          .getFieldSize() + 7) / 8];
      tmp[0] = 0x02;
      tmp[1] = (byte) EcCore.fieldElemToBytes(s, params, tmp, 2);
      seq.addElement(new ANY(tmp));

      seq.encode(baos);
    } catch (Exception ex) {
      throw new SignatureException("Internal ASN.1 encoding error", ex);
    }

    return baos.toByteArray();

Examples of org.mybatis.jpetstore.domain.Sequence

  public List<Order> getOrdersByUsername(String username) {
    return orderMapper.getOrdersByUsername(username);
  }

  public int getNextId(String name) {
    Sequence sequence = new Sequence(name, -1);
    sequence = (Sequence) sequenceMapper.getSequence(sequence);
    if (sequence == null) {
      throw new RuntimeException("Error: A null sequence was returned from the database (could not get next " + name
          + " sequence).");
    }
    Sequence parameterObject = new Sequence(name, sequence.getNextId() + 1);
    sequenceMapper.updateSequence(parameterObject);
    return sequence.getNextId();
  }

Examples of org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sequence.Sequence

    {
      throw new ParseException("Required attribute 'name' is not defined.", getLocator());
    }

    final String sequenceClass = attrs.getValue(getUri(), "class");
    final Sequence sequence = ObjectUtilities.loadAndInstantiate(sequenceClass, SequenceReadHandler.class, Sequence.class);
    if (sequence == null)
    {
      throw new ParseException("Required attribute 'class' is invalid.", getLocator());
    }
    this.data = sequence;

Examples of org.pentaho.reporting.libraries.formula.typing.Sequence

    final TypeRegistry typeRegistry = context.getTypeRegistry();
    for (int paramIdx = 0; paramIdx < parameterCount; paramIdx++)
    {
      final Type type = parameters.getType(paramIdx);
      final Object value = parameters.getValue(paramIdx);
      final Sequence sequence = typeRegistry.convertToSequence(type, value);

      while (sequence.hasNext())
      {
        final LValue lValue = sequence.nextRawValue();
        final TypeValuePair pair = lValue.evaluate();
        final Type type1 = pair.getType();
        final Object o = pair.getValue();
        final String str = typeRegistry.convertToText(type1, o);
        computedResult.append(str);

Examples of org.raml.parser.annotation.Sequence

        for (Field declaredField : declaredFields)
        {
            declaredField.setAccessible(true);
            Scalar scalar = declaredField.getAnnotation(Scalar.class);
            Mapping mapping = declaredField.getAnnotation(Mapping.class);
            Sequence sequence = declaredField.getAnnotation(Sequence.class);

            if (scalar != null)
            {
                dumpScalarField(dump, depth, declaredField, pojo);
            }

Examples of org.wicketstuff.pickwick.bean.Sequence

    super(id, model);
  }
 
  protected String renderNode(TreeNode node) {
    Folder folder = (Folder) ((DefaultMutableTreeNode) node).getUserObject();
    Sequence sequence = ImageUtils.readSequence(folder.getFile());
    return new DisplaySequence(sequence, folder.getFile()).getTitle();
  }
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.