Package com.ipc.oce

Examples of com.ipc.oce.OCApp


    app.connect(configuration);
    return app;
  }

  public static void main(String[] args) throws IOException, ConfigurationException, JIException {
    OCApp app = getConnection();
    OCCatalogManager manager = app.getCatalogManager("Банки");
    OCCatalogRef ref = manager.findByDescription("Г МОСКВА");
    OCCatalogSelection selection = manager.selectHierarchically(ref);
    while (selection.next()) {
      int level = selection.getLevelInSelection();
      if (level==0) {
View Full Code Here


    PropertiesReader pr = new PropertiesReader(new File("C:\\Developer\\Projects\\hel_default\\OCExportWeb\\WebContent\\WEB-INF\\oce.properties"));
    Properties configuration = pr.getPropertiesForInstance("buh");
    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
    OCApp app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    app.connect(configuration);
    return app;
  }
View Full Code Here

    app.connect(configuration);
    return app;
  }

  public static void main(String[] args) throws IOException, ConfigurationException, JIException {
    OCApp app = getConnection();
    OCConfigurationMetadataObject configurationMetadata = app.getMetadata();
    OCMetadataDocumentCollection documentCollection = configurationMetadata.getDocuments();
    System.out.println(
        configurationMetadata.getName()
        + " "
        + configurationMetadata.getVersion());
View Full Code Here

   * @return true если тип объекта соответствует имени типа
   * @throws JIException
   */
  public boolean isTypeOf(String typeName) throws JIException {
    typeName = "XSComponentType." + typeName;
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    StaticFieldInstance sfi = app.getStaticFields(typeName);
    return sfi.equals(this);
  }
View Full Code Here

   * @return массив имен документов
   * @throws JIException
   */
  public synchronized String[] getDocumentNames() throws JIException {
    if (documentsName == null) {
      OCApp app = OCApp.getInstance(getAssociatedSessionID());
      OCConfigurationMetadataObject metadata = app.getMetadata();
      OCMetadataDocumentCollection docCollection = metadata
          .getDocuments();
      int docTypeCount = docCollection.size();
      List<String> dcNames = new ArrayList<String>();
      for (int z = 0; z < docTypeCount; z++) {
View Full Code Here

    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
    driver.setAutoRegistration(true);

    OCApp app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    try {
      app.connect(configuration);
      System.out.println("Connected to " + app.getComputerName());
    } finally {
      app.exit();
    }
  }
View Full Code Here

  public OCDataCompositionTemplateParameterValues getParameterValues() throws JIException {
    return new OCDataCompositionTemplateParameterValues(get("ParameterValues"));
  }
 
  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }
View Full Code Here

  public OCDataCompositionDataParameterValues getDataParameters() throws JIException {
    return new OCDataCompositionDataParameterValues(get("DataParameters"));
  }
 
  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }
View Full Code Here

      return super.toString();
    }
  }
 
  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }
View Full Code Here

   * Получение схемы композиции как XML.
   * @return строковое представление XML.
   * @throws JIException
   */
  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }
View Full Code Here

TOP

Related Classes of com.ipc.oce.OCApp

Copyright © 2018 www.massapicom. 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.