Examples of XMLIntegrator


Examples of org.tuba.data.xml.XMLIntegrator

    for (MetaIntegrator integrator : PluginManager.getInstance()
        .getIntegrators())
      if (integrator.getSupportedType().equals(lastRepresentation))
        return new Tuple<List<XMLArtefactOperation>, XMLIntegrator>(
            operations, new XMLIntegrator(integrator.getId()));

    return null;
  }
View Full Code Here

Examples of org.tuba.data.xml.XMLIntegrator

        reference.getOperations().add(o);
      }

      MetaIntegrator integrator = dialog.getIntegrator();
      if (integrator != null) {
        XMLIntegrator i = new XMLIntegrator(integrator.getId());
        i.setConfiguration(integrator.getConfiguration());
        reference.setIntegrator(i);
      }

      XMLArtefact artefactTag = ReferenceManager.getInstance()
          .generateArtefact(document, reference);
View Full Code Here

Examples of org.tuba.data.xml.XMLIntegrator

      id = operations.get(operations.size() - 1).getId();
      lastRepresentationType = pluginManager.getArtefactOperation(id)
          .getTargetType();
    }

    XMLIntegrator integrator = reference.getIntegrator();
    if (integrator == null
        || (!checkIntegrator(lastRepresentationType, integrator))) {
      searchIntegrationWay(lastRepresentationType, reference);
      hasChanged = true;
    }
View Full Code Here

Examples of org.tuba.data.xml.XMLIntegrator

    return hasChanged;
  }

  private void searchIntegrationWay(String lastRepresentationType,
      XMLReference reference) throws IntegrationException {
    XMLIntegrator integrator = reference.getIntegrator();

    IntegrationSearcher searcher = new IntegrationSearcher();

    if (integrator == null) {
      Tuple<List<XMLArtefactOperation>, XMLIntegrator> additionalChain = searcher
          .search(lastRepresentationType);
      if (additionalChain == null) {
        // TODO externalize
        String message = "no cain containing a list of operations and one integrator could be found"; //$NON-NLS-1$
        showError(message);
        throw new IntegrationException();
      }
      reference.getOperations().addAll(additionalChain.getLeft());
      reference.setIntegrator(additionalChain.getRight());
    } else {
      String id = integrator.getId();
      List<XMLArtefactOperation> additionalOperations = searcher.search(
          lastRepresentationType, PluginManager.getInstance()
              .getIntegrator(id).getSupportedType());
      if (additionalOperations == null) {
        // TODO externalize
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.