Examples of OCXDTOSerializer


Examples of com.ipc.oce.xml.oc.OCXDTOSerializer

   * @return OCXDTOSerializer
   * @throws JIException - ошибка DCOM.
   */
  public final OCXDTOSerializer newXDTOSerialezer(final OCXDTOFactory factory)
      throws JIException {
    return new OCXDTOSerializer(newObject("XDTOSerializer", new JIVariant(
        ocObject2Dispatch(factory))));
  }
View Full Code Here

Examples of com.ipc.oce.xml.oc.OCXDTOSerializer

   *
   * @return OCXDTOSerializer
   * @throws JIException
   */
  public OCXDTOSerializer getXDTOSerializer() throws JIException {
    return new OCXDTOSerializer(get("XDTOSerializer"));
  }
View Full Code Here

Examples of com.ipc.oce.xml.oc.OCXDTOSerializer

 
  @Test
  public void showNewObjectsXML() throws JIException {
    OCDocumentManager manager = app.getDocumentManager("ПриемНаРаботуВОрганизацию");
    OCDocumentObject doc = manager.createDocument();
    OCXDTOSerializer serializer = app.getXDTOSerializer();
    OCXMLWriter writer = app.newXMLWriter();
    writer.setString();
    serializer.writeXML(writer, doc);
    System.out.println(writer.close());
  }
View Full Code Here

Examples of com.ipc.oce.xml.oc.OCXDTOSerializer

    sel.next();
    OCDocumentObject documentObject = sel.getRef().getObject();
    String originalDocNum = documentObject.getNumberAsString();
    boolean originalIsNew = documentObject.isNew();
   
    OCXDTOSerializer serializer = app.getXDTOSerializer();
    OCXMLWriter writer = app.newXMLWriter();
    writer.setString("UTF-8");
   
    serializer.writeXML(writer, documentObject);
    String xml = writer.close();
    System.out.println("XML size: " + xml.length());
   
    OCXMLReader reader = app.newXMLReader();
    reader.setString(xml);
   
    OCDocumentObject reverseObject = new OCDocumentObject(serializer.readXML(reader));
   
    assertTrue(originalIsNew == reverseObject.isNew());
    assertTrue(originalDocNum.equals(reverseObject.getNumberAsString()));
  }
View Full Code Here

Examples of com.ipc.oce.xml.oc.OCXDTOSerializer

    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

Examples of com.ipc.oce.xml.oc.OCXDTOSerializer

    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

Examples of com.ipc.oce.xml.oc.OCXDTOSerializer

    }
  }
 
  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

Examples of com.ipc.oce.xml.oc.OCXDTOSerializer

   * @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

Examples of com.ipc.oce.xml.oc.OCXDTOSerializer

    return new OCDataCompositionSettings(get("Settings"));
  }
 
  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

Examples of com.ipc.oce.xml.oc.OCXDTOSerializer

   
    OCObject dataObject = app.findDataObject(objectTypePair, uuid);
   
    Message out = exchange.getOut();
   
    OCXDTOSerializer serializer = app.getXDTOSerializer();
    OCXMLWriter writer = app.newXMLWriter();
    writer.setString("UTF-8");
    serializer.writeXML(writer, dataObject);
    out.setBody(writer.close(), String.class);
   
  }
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.