Examples of OCXDTOFactory


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

   * @return OCXDTOFactory
   * @throws JIException - ошибка DCOM.
   */
  public final OCXDTOFactory newXDTOFactory(final OCXMLSchemaSet schemaSet,
      final OCXDTOPackageCollection packageCollection) throws JIException {
    return new OCXDTOFactory(newObject("XDTOFactory", new JIVariant[] {
        new JIVariant(ocObject2Dispatch(schemaSet)),
        new JIVariant(ocObject2Dispatch(packageCollection)) }));
  }
View Full Code Here

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

   *            схему
   * @return OCXDTOFactory
   * @throws JIException - ошибка DCOM.
   */
  public final OCXDTOFactory createXDTOFactory(String path) throws JIException {
    return new OCXDTOFactory(callMethodA("CreateXDTOFactory",
        new Object[] { new JIVariant(path) })[0]);
  }
View Full Code Here

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

   *            создать фабрику XDTO
   * @return OCXDTOFactory
   * @throws JIException - ошибка DCOM.
   */
  public final OCXDTOFactory createXDTOFactory(OCArray paths) throws JIException {
    return new OCXDTOFactory(callMethodA("CreateXDTOFactory",
        new Object[] { ocObject2Dispatch(paths) })[0]);
  }
View Full Code Here

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

   * @return OCXDTOFactory
   * @throws JIException - ошибка DCOM.
   */
  public final OCXDTOFactory newXDTOFactory(final OCXMLSchemaSet schemaSet)
      throws JIException {
    return new OCXDTOFactory(
        newObject("XDTOFactory", new JIVariant[] { new JIVariant(
            ocObject2Dispatch(schemaSet)) }));
  }
View Full Code Here

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

   *
   * @return OCXDTOFactory
   * @throws JIException
   */
  public OCXDTOFactory getXDTOFactory() throws JIException {
    return new OCXDTOFactory(get("XDTOFactory"));
  }
View Full Code Here

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

  public void gettingSchema() throws JIException {
    OCDocumentObject documentObject = getRandomDocument("СчетНаОплатуПокупателю");
    OCXMLDataType dt = app.getXMLTypeOf(documentObject);
    System.out.println(dt.getTypeName());
   
    OCXDTOFactory factory = app.getXDTOFactory();
    OCXDTOPackageCollection pacCollection = factory.getPackages();
   
    System.out.println("PACKAGES: --------------------------");
    for (OCXDTOPackage package1 : pacCollection) {
      System.out.println(package1.getNamespaceURI());
    }
    String sSchema = "http://v8.1c.ru/8.1/data/enterprise/current-config";
    System.out.println("SCHEMA ------------------------------");
    OCXMLSchemaSet schemaSet = factory.exportXMLSchema(sSchema);
    System.out.println("Schema set size: " + schemaSet.size());
    OCXMLSchema schema = schemaSet.getSchema(0);
    System.out.println("Schema component type: " + schema.getComponentType());
   
    OCXSComponentFixedList schemaComponents = schema.getComponents();
View Full Code Here

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

    OCXMLDataType xmlType = document.getXMLType();
    OCType type = document.getOCType();
    System.out.println(xmlType.getTypeName() + " in {" +xmlType.getNamespaceURI() + "}");
    System.out.println(type);
   
    OCXDTOFactory factory = app.getXDTOFactory();
    String sSchema = "http://v8.1c.ru/8.1/data/enterprise/current-config";
    OCXMLSchemaSet schemaSet = factory.exportXMLSchema(sSchema);
    OCXMLSchema schema = schemaSet.getSchema(0);
   
    OCXSNamedComponentMap typeMap = schema.getTypeDefinitions();
    OCXSBasicComponent bc = typeMap.getByName(xmlType.getTypeName());
    System.out.println("BC toString: " + bc);
View Full Code Here

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

    System.out.println(res);
  }
 
  @Test
  public void dance3() throws JIException {
    OCXDTOFactory factory = app.getXDTOFactory();
    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();
   
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.