Examples of ObjectFactory


Examples of sos.scheduler.InstallationService.batchInstallationModel.installationFile.ObjectFactory

    super();
    }
  
   public void setValues(Installation installation)  {
   
    ObjectFactory o = new ObjectFactory();
   
    automatedInstallation = o.createAutomatedInstallation();

 
    ComIzforgeIzpackPanelsUserInputPanel home = o.createComIzforgeIzpackPanelsUserInputPanel();
    UserInput userInput_home = o.createUserInput();
    home.setUserInput(userInput_home);
    home.setId("home");
      automatedInstallation.getComIzforgeIzpackPanelsUserInputPanelOrComIzforgeIzpackPanelsHTMLLicencePanelOrComIzforgeIzpackPanelsTargetPanel().add(home);   
     
    ComIzforgeIzpackPanelsUserInputPanel licences = o.createComIzforgeIzpackPanelsUserInputPanel();
    UserInput userInput_licences = o.createUserInput();
    licences.setUserInput(userInput_licences);
    licences.setId("licences");
    Entry entryLicence = o.createEntry();
    entryLicence.setKey("licence");
    entryLicence.setValue(installation.getLicence());
    licences.getUserInput().getEntry().add(entryLicence);
   
    Entry entryLicencOptions = o.createEntry();
    entryLicencOptions.setKey("licenceOptions");
    entryLicencOptions.setValue(installation.getLicenceOptions());
    licences.getUserInput().getEntry().add(entryLicencOptions);

    automatedInstallation.getComIzforgeIzpackPanelsUserInputPanelOrComIzforgeIzpackPanelsHTMLLicencePanelOrComIzforgeIzpackPanelsTargetPanel().add(licences);
   
    ComIzforgeIzpackPanelsHTMLLicencePanel comIzforgeIzpackPanelsHTMLLicencePanelGpl = o.createComIzforgeIzpackPanelsHTMLLicencePanel();
    comIzforgeIzpackPanelsHTMLLicencePanelGpl.setId("gpl_licence");
    automatedInstallation.getComIzforgeIzpackPanelsUserInputPanelOrComIzforgeIzpackPanelsHTMLLicencePanelOrComIzforgeIzpackPanelsTargetPanel().add(comIzforgeIzpackPanelsHTMLLicencePanelGpl);
   
    ComIzforgeIzpackPanelsHTMLLicencePanel comIzforgeIzpackPanelsHTMLLicencePanelCommercial = o.createComIzforgeIzpackPanelsHTMLLicencePanel();
    comIzforgeIzpackPanelsHTMLLicencePanelGpl.setId("commercial_licence");
    automatedInstallation.getComIzforgeIzpackPanelsUserInputPanelOrComIzforgeIzpackPanelsHTMLLicencePanelOrComIzforgeIzpackPanelsTargetPanel().add(comIzforgeIzpackPanelsHTMLLicencePanelCommercial);

    ComIzforgeIzpackPanelsTargetPanel comIzforgeIzpackPanelsTargetPanel = o.createComIzforgeIzpackPanelsTargetPanel();
    comIzforgeIzpackPanelsTargetPanel.setId("target");
    
    comIzforgeIzpackPanelsTargetPanel.setInstallpath(installation.getInstallPath());
    automatedInstallation.getComIzforgeIzpackPanelsUserInputPanelOrComIzforgeIzpackPanelsHTMLLicencePanelOrComIzforgeIzpackPanelsTargetPanel().add(comIzforgeIzpackPanelsTargetPanel);
   
    ComIzforgeIzpackPanelsUserPathPanel comIzforgeIzpackPanelsUserPathPanel = o.createComIzforgeIzpackPanelsUserPathPanel();
    comIzforgeIzpackPanelsUserPathPanel.setId("userpath");
    comIzforgeIzpackPanelsUserPathPanel.setUserPathPanelElement(installation.getUserPathPanelElement());
    automatedInstallation.getComIzforgeIzpackPanelsUserInputPanelOrComIzforgeIzpackPanelsHTMLLicencePanelOrComIzforgeIzpackPanelsTargetPanel().add(comIzforgeIzpackPanelsUserPathPanel);
   
    
    ComIzforgeIzpackPanelsUserInputPanel network = o.createComIzforgeIzpackPanelsUserInputPanel();
    UserInput userInput_network = o.createUserInput();
    network.setUserInput(userInput_network);
    network.setId("network");

    Entry entry_schedulerHost = o.createEntry();
    entry_schedulerHost.setKey("schedulerHost");
    entry_schedulerHost.setValue(installation.getHost());
    network.getUserInput().getEntry().add(entry_schedulerHost);

    Entry entry_schedulerId = o.createEntry();
    entry_schedulerId.setKey("schedulerId");
    entry_schedulerId.setValue(installation.getSchedulerId());
    network.getUserInput().getEntry().add(entry_schedulerId);
   
    Entry entry_schedulerAllowedHost = o.createEntry();
    entry_schedulerAllowedHost.setKey("schedulerAllowedHost");
    entry_schedulerAllowedHost.setValue(installation.getSchedulerAllowedHost());
    network.getUserInput().getEntry().add(entry_schedulerAllowedHost);
   
    Entry entry_schedulerPort = o.createEntry();
    entry_schedulerPort.setKey("schedulerPort");
    entry_schedulerPort.setValue(String.valueOf(installation.getSchedulerPort()));
    network.getUserInput().getEntry().add(entry_schedulerPort);
    automatedInstallation.getComIzforgeIzpackPanelsUserInputPanelOrComIzforgeIzpackPanelsHTMLLicencePanelOrComIzforgeIzpackPanelsTargetPanel().add(network);
   
    ComIzforgeIzpackPanelsInstallPanel comIzforgeIzpackPanelsInstallPanel = o.createComIzforgeIzpackPanelsInstallPanel();
    comIzforgeIzpackPanelsInstallPanel.setId("install");
    automatedInstallation.getComIzforgeIzpackPanelsUserInputPanelOrComIzforgeIzpackPanelsHTMLLicencePanelOrComIzforgeIzpackPanelsTargetPanel().add(comIzforgeIzpackPanelsInstallPanel);

    ComIzforgeIzpackPanelsProcessPanel comIzforgeIzpackPanelsProcessPanel = o.createComIzforgeIzpackPanelsProcessPanel();
    comIzforgeIzpackPanelsProcessPanel.setId("process");
    automatedInstallation.getComIzforgeIzpackPanelsUserInputPanelOrComIzforgeIzpackPanelsHTMLLicencePanelOrComIzforgeIzpackPanelsTargetPanel().add(comIzforgeIzpackPanelsProcessPanel);
   
    ComIzforgeIzpackPanelsFinishPanel comIzforgeIzpackPanelsFinishPanel = o.createComIzforgeIzpackPanelsFinishPanel();
    comIzforgeIzpackPanelsFinishPanel.setId("finish");
    automatedInstallation.getComIzforgeIzpackPanelsUserInputPanelOrComIzforgeIzpackPanelsHTMLLicencePanelOrComIzforgeIzpackPanelsTargetPanel().add(comIzforgeIzpackPanelsFinishPanel);
  
   }
View Full Code Here

Examples of stream.runtime.setup.factory.ObjectFactory

    if (candidateNodes == null || candidateNodes.getLength() == 0) {
      log.debug("List of candidateNodes is empty: {}", candidateNodes);
      return;
    }

    ObjectFactory of = ObjectFactory.newInstance();
    for (int i = 0; i < candidateNodes.getLength(); i++) {

      Node node = candidateNodes.item(i);
      if (node.getNodeType() == Node.ELEMENT_NODE
          && node.getNodeName().equalsIgnoreCase("processor")) {

        try {
          Map<String, String> params = of.getAttributes(node);

          Double priority = new Double(1000.0d);
          if (params.get("priority") != null)
            priority = new Double(params.get("priority"));

          log.info("Found priority {}", priority);

          Object o = of.create((Element) node);

          if (o instanceof EventProcessor) {
            @SuppressWarnings({ "unchecked" })
            EventProcessor<AuditEvent> eventProcessor = (EventProcessor<AuditEvent>) o;
            log.info(
View Full Code Here

Examples of test.ObjectFactory

    public void testSyncPayload() throws Exception {
        TestLogger.logger.debug("---------------------------------------");
        TestLogger.logger.debug("test: " + getName());

        // Create the input param
        ObjectFactory factory = new ObjectFactory();
        EchoString request = factory.createEchoString();        
        request.setInput("SYNC JAXB PAYLOAD TEST");
       
        // Invoke the Dispatch<Object>
        TestLogger.logger.debug(">> Invoking sync Dispatch with JAX-B Parameter");
        EchoStringResponse response = (EchoStringResponse) dispatchPayload.invoke(request);
View Full Code Here

Examples of uk.gov.nationalarchives.droid.report.planets.domain.ObjectFactory

    /**
     * Generates planet xml.
     */
    public void generate() {
        try {
            ObjectFactory objFactory = new ObjectFactory();
            FileProfileType fileProfileType = objFactory
                    .createFileProfileType();
            JAXBElement<FileProfileType> fileProfile = objFactory
                    .createFileProfile(fileProfileType);

            PathsProcessedType pathProcessedType = getPathProcessed(objFactory);

            ByFormatType byFormatType = getGroupByPuid(objFactory);
View Full Code Here

Examples of withoutxmlroot.ObjectFactory

   
    JAXBElement<ShiporderType> object = new JAXBElement<ShiporderType>(
        new QName("", "RootElement"), ShiporderType.class, new ShiporderType());
    witoutMarshaller.marshal(object, System.out);
   
    ObjectFactory of = new ObjectFactory();
    JAXBElement<ShiporderType> secondObject = of.createShiporder(new ShiporderType());
    witoutMarshaller.marshal(secondObject, System.out);
   
  }
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.