Examples of generate()


Examples of org.jostraca.Generator.generate()

    PropertySet ps = new PropertySet();
    ps.set( Property.main_MakeBackup,        Standard.NO  );
    ps.set( Property.main_CompileCodeWriter, Standard.NO );
    ps.set( Property.main_ExecuteCodeWriter, Standard.NO );
    g.setCmdPropertySet( ps );
    Template tm = g.generate( FileUtil.findFile( "org/jostraca/test/simple.jtm" ) );

    // get full properties
    PropertySet mergedps = tm.getMergedPropertySet();
    assertEquals( ".jostraca", mergedps.get( Property.main_WorkFolder ) );
View Full Code Here

Examples of org.jtester.module.database.datagenerator.AbastractDataGenerator.generate()

      Object value = index < count ? oa[index] : oa[count - 1];
      return value;
    } else if (dataGenerator instanceof AbastractDataGenerator) {
      AbastractDataGenerator generator = (AbastractDataGenerator) dataGenerator;
      generator.setDataMap(dataMap);
      return generator.generate(index);
    } else {
      return dataGenerator;
    }
  }
View Full Code Here

Examples of org.kapott.hbci.GV.generators.ISEPAGenerator.generate()

      // Die XML in den baos schreiben, ggf fehler behandeln
      try
      {
            boolean validate = HBCIUtils.getParam("sepa.schema.validation","0").equals("1");
            HBCIUtils.log("schema validation enabled: " + validate,HBCIUtils.LOG_DEBUG);
          gen.generate(this.sepaParams, o, validate);
      }
      catch (HBCI_Exception he)
      {
          throw he;
      }
View Full Code Here

Examples of org.kapott.hbci.manager.MsgGen.generate()

                    if (newName.endsWith("Res")) {
                        gen.set(newName+".MsgHead.MsgRef.dialogid",dialogid);
                        gen.set(newName+".MsgHead.MsgRef.msgnum",msgnum);
                    }

                    newmsg=gen.generate(newName);

                    // renumerate crypto-segments
                    for (int i=1;i<=2;i++) {
                        SEG seg=(SEG)(((MultipleSEGs)((newmsg.getChildContainers()).get(i))).getElements().get(0));
                        seg.setSeq(997+i,SyntaxElement.ALLOW_OVERWRITE);
View Full Code Here

Examples of org.keycloak.models.utils.TimeBasedOTP.generate()

        @Override
        public void run() {
            String google = new String(Base32.decode(secret));
            TimeBasedOTP otp = new TimeBasedOTP();
            System.out.println(otp.generate(google));
        }
    }

}
View Full Code Here

Examples of org.keyczar.interop.operations.Operation.generate()

  }
 
 
  public String generate() throws KeyczarException {
    Operation op = Operation.getOperationByName(operation, keyPath, testData);
    byte[] output = op.generate(algorithm, generateOptions);
    return op.formatOutput(output);
  }
 
}
View Full Code Here

Examples of org.makersoft.shards.id.IdGenerator.generate()

    SqlSession session = shardIdsToShards.get(shardId).establishSqlSession();

    IdGenerator idGenerator = shardedSqlSessionFactory.getIdGenerator();
    if (idGenerator != null) {
      //TODO(fengkuok) 生成主键 DB生成主键是用专有session?
      Serializable id = idGenerator.generate(session, parameter);

      log.debug(String
          .format("Generating id for object %s ,the type of IdGenerator is %s and generated Id is %s.",
              parameter.getClass(), idGenerator.getClass(), id));
View Full Code Here

Examples of org.mifosplatform.portfolio.client.domain.AccountNumberGenerator.generate()

    private void autoGenerateAccountNumber(final SavingsAccount account) {
        if (account.isAccountNumberRequiresAutoGeneration()) {
            final AccountNumberGenerator accountNoGenerator = this.accountIdentifierGeneratorFactory
                    .determineSavingsAccountNoGenerator(account.getId());
            account.updateAccountNo(accountNoGenerator.generate());
            this.savingsAccountRepository.save(account);
        }
    }

    @Transactional
View Full Code Here

Examples of org.mifosplatform.portfolio.loanaccount.loanschedule.domain.LoanScheduleGenerator.generate()

                loanTermFrequency, loanTermPeriodFrequencyType, getDisbursementDate(), getExpectedFirstRepaymentOnDate(),
                scheduleGeneratorDTO.getCalculatedRepaymentsStartingFromDate(), getInArrearsTolerance(), this.loanRepaymentScheduleDetail,
                this.loanProduct.isMultiDisburseLoan(), this.fixedEmiAmount, disbursementData, this.maxOutstandingLoanBalance,
                loanVariationTermsData, getInterestChargedFromDate());

        final LoanScheduleModel loanSchedule = loanScheduleGenerator.generate(mc, loanApplicationTerms, charges(),
                scheduleGeneratorDTO.getHolidayDetailDTO());
        return loanSchedule;
    }

    private void handleDisbursementTransaction(final LocalDate disbursedOn) {
View Full Code Here

Examples of org.molgenis.generators.DataTypeGen.generate()

    // generate model entities
    List<Entity> entityList = MODEL.getEntities();
    entityList = MolgenisModel.sortEntitiesByDependency(entityList, MODEL);

    DataTypeGen entityGenerator = new DataTypeGen();
    entityGenerator.generate(MODEL, MODEL_OPTIONS);
    LOG.debug("generated model entities");

    // compile model entities
    List<String> compileList = new ArrayList<String>(entityList.size());
    char sep = File.separatorChar;
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.