Examples of OCXMLWriter


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

   *
   * @return экземпляр XMLWriter
   * @throws JIException
   */
  public OCXMLWriter newXMLWriter() throws JIException {
    return new OCXMLWriter(newObject("XMLWriter"));
  }
View Full Code Here

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

  @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.OCXMLWriter

    OCXSBasicComponent bc = typeMap.getByName(xmlType.getTypeName());
    System.out.println("BC toString: " + bc);
   
    System.out.println("DOMElement of BC: " + bc.getDOMElement());
   
    OCXMLWriter xmlWriter = app.newXMLWriter();
    xmlWriter.setString();
   
    OCDOMWriter domWriter = app.newDOMWriter();
    domWriter.write(bc.getDOMElement(), xmlWriter);
   
    String res = xmlWriter.close();
    System.out.println(res);
  }
View Full Code Here

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

    String cfURI = factory.getCurrentConfigURI();
    System.out.println(cfURI);
    OCXMLSchema schema = factory.exportXMLSchema(cfURI).getSchema(cfURI);
    OCXSBasicComponent bc = schema.getTypeDefinitionByName("DocumentTabularSectionRow.СчетНаОплатуПокупателю.ВозвратнаяТара");
   
    OCXMLWriter xmlWriter = app.newXMLWriter();
    xmlWriter.setString();
   
    OCDOMWriter domWriter = app.newDOMWriter();
    domWriter.write(bc.getDOMElement(), xmlWriter);
   
    String res = xmlWriter.close();
    System.out.println(res);
  }
View Full Code Here

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

    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);
   
View Full Code Here

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

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

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

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

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

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