Examples of ObjectFactory


Examples of be.objectify.led.ObjectFactory

    public Map<K, V> createObject(String propertyName,
                                  String propertyValue)
    {
        Map<K, V> map = createMap();
        ObjectFactory keyObjectFactory = factoryResolver.resolveFactory(keyClass,
                                                                        field);
        ObjectFactory valueObjectFactory = factoryResolver.resolveFactory(valueClass,
                                                                          field);
        if (keyObjectFactory == null || valueObjectFactory == null)
        {
            LOGGER.info("No factory available for map: key factory [{}]   value factory [{}]",
                        keyClass.getCanonicalName(),
View Full Code Here

Examples of br.com.caelum.stella.nfe.ws.sp.recepcao.ObjectFactory

      alias = prop.getProperty("certificado.alias");

      TokenKeyStoreForWindows ks = new TokenKeyStoreForWindows(tokenConfigFile, TokenAlgorithm.PKCS11, senhaDoCertificado);
      ks.getCertificateFor(alias).enableSSLForServer();

      ObjectFactory factoryWS = new ObjectFactory();
      br.com.caelum.stella.nfe.xsd.recepcao.ObjectFactory factoryXSD = new br.com.caelum.stella.nfe.xsd.recepcao.ObjectFactory();
   
      NfeRecepcao2Soap12 envioLote = new NfeRecepcao2().getNfeRecepcao2Soap12();
     
      NfeCabecMsg cabecMsg = factoryWS.createNfeCabecMsg();
      cabecMsg.setCUF(Estados.SP.name());
      cabecMsg.setVersaoDados(VersaoNFE.V_2_00.getVersao());

      NfeDadosMsg dadosMsg = factoryWS.createNfeDadosMsg();
     
      //lote de nfe
      TEnviNFe enviNFe = factoryXSD.createTEnviNFe();
     
      enviNFe.setIdLote("1");
View Full Code Here

Examples of br.com.six2six.fixturefactory.ObjectFactory

    return generate(Fixture.from(clazz).uses(processor));
  }
 
  @Override
  public <T> T generateValue(Object owner) {
    return generate(new ObjectFactory(Fixture.of(clazz), owner));
  }
View Full Code Here

Examples of ch.inftec.ju.util.xml.jaxb.player.ObjectFactory

  private Player getMichael(){
    return this.getMichael(33);
  }
 
  private Player getMichael(int age) {
    ObjectFactory playerFactory = new ObjectFactory();
   
    Player p = playerFactory.createPlayer();
    p.setFirstName("Michael");
    p.setLastName("Jordan");
    p.setSalutation(SalutationType.MR);
    p.setAge(age);
   
View Full Code Here

Examples of com.cardence.lawshelf.ios.xml.ObjectFactory

  @Test
  public void test() {
    try {
      File file = new File("C:\\Users\\mkboudreau\\Desktop\\test.xml");

      ObjectFactory factory = new ObjectFactory();
      // JAXBElement<Cabinet> jaxbRoot = factory.createCabinet();

      JAXBContext ctx = JAXBContext.newInstance(cabinet.getClass());
      Marshaller marshaller = ctx.createMarshaller();
View Full Code Here

Examples of com.consol.citrus.model.config.core.ObjectFactory

    /**
     * Gets the default function library from Citrus Spring bean configuration.
     * @return
     */
    public FunctionLibrary getDefaultFunctionLibrary() {
        FunctionLibrary library = new ObjectFactory().createFunctionLibrary();

        FunctionConfig config = new FunctionConfig();
        com.consol.citrus.functions.FunctionLibrary defaultFunctionLibrary = config.getFunctionaLibrary();
        library.setId(defaultFunctionLibrary.getName());
        library.setPrefix(defaultFunctionLibrary.getPrefix());
View Full Code Here

Examples of com.consol.citrus.model.testcase.core.ObjectFactory

        return action;
    }

    @Override
    public Sleep convertModel(SleepAction definition) {
        Sleep action = new ObjectFactory().createSleep();

        action.setDescription(definition.getDescription());
        action.setMilliseconds(definition.getMilliseconds());
        action.setSeconds(definition.getSeconds());
View Full Code Here

Examples of com.dgwave.osrs.jaxb.ObjectFactory

 
  private void initJaxb() throws OsrsException {
      if (jc != null && oj != null) return;
    try {
      this.jc = JAXBContext.newInstance("com.dgwave.osrs.jaxb");
      this.oj = new ObjectFactory();
        SAXParserFactory spf = SAXParserFactory.newInstance();
          spf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
          spf.setNamespaceAware(true);
          spf.setValidating(false);
          xmlReader = spf.newSAXParser().getXMLReader();
View Full Code Here

Examples of com.drighetto.jaxb.vo.ObjectFactory

      Marshaller marshaller = context.createMarshaller();

      // Create an object using ObjectFactory class generated by XJC
      // during
      // mapping generation
      ObjectFactory factory = new ObjectFactory();
      Catalog catalog = factory.createCatalog();
      Catalog.Book book = factory.createCatalogBook();
      book.setAuthor("Dominique");
      book.setDescription("Spring par la pratique");
      book.setGenre("IT");
      book.setId("bk155");
      book.setPrice(22.50f);
View Full Code Here

Examples of com.enernoc.open.oadr2.model.ObjectFactory

    BlockingQueue<Packet> getQueue() { return this.packets; }
  }
 
  protected OadrDistributeEvent createEventPayload() {
    final XMLGregorianCalendar startDttm = xmlDataTypeFac.newXMLGregorianCalendar("2012-01-01T00:00:00Z");
    final ObjectFactory oadrTypes = new ObjectFactory();
   
    return new OadrDistributeEvent()
      .withRequestID("test-123")
      .withVtnID("vtn-123")
      .withOadrEvents( new OadrEvent()
        .withEiEvent(
          new EiEvent()
            .withEiTarget( new EiTarget()
                .withVenIDs("ven-1234") )
            .withEventDescriptor(new EventDescriptor()
                .withEventID("event-1234")
                .withModificationNumber(0)
                .withEventStatus(EventStatusEnumeratedType.FAR)
                .withPriority(1L)
                .withEiMarketContext(new EiMarketContext(
                    new MarketContext("http://enernoc.com")))
                .withCreatedDateTime(new DateTime(startDttm)))
            .withEiActivePeriod(new EiActivePeriod()
                .withProperties(new Properties()
                    .withDtstart(new Dtstart(new DateTime(startDttm)))
                    .withDuration(new DurationPropType(new DurationValue("PT1M")))
                    .withTolerance( new Tolerance(new Tolerate(new DurationValue("PT5S"))))
                    .withXEiNotification(new DurationPropType(new DurationValue("PT5S")))
                ))
            .withEiEventSignals( new EiEventSignals()
                .withEiEventSignals( new EiEventSignal()
                    .withSignalID("hi there")
                    .withCurrentValue(new CurrentValue(new PayloadFloat(1.0f)))
                    .withSignalName("simple")
                    .withSignalType(SignalTypeEnumeratedType.LEVEL)
                    .withIntervals( new Intervals()
                        .withIntervals( new Interval()
                          .withStreamPayloadBase( oadrTypes.createSignalPayload(
                              new SignalPayload(new PayloadFloat(1.0f))))
                          .withDuration( new DurationPropType(new DurationValue("PT1M")))
                          .withUid(new Uid("abc"))
                        )
                    )
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.