Package com.ipc.oce.xml.oc

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


   
    OCXSComponentFixedList schemaComponents = schema.getComponents();
    int schemaElements = schemaComponents.size();
    System.out.println("Schema {" + sSchema + "} contains " + schemaElements + " elements");
   
    OCXSBasicComponent basicComponent = schemaComponents.get(0);
    System.out.println("isType: " + basicComponent.isTypeOf(OCXSComponentType.IMPORT));
   
   
    StaticFieldInstance sfi = app.getStaticFields("XSComponentType.Annotation");
    System.out.println(sfi);
    System.out.println(basicComponent.getComponentType().equals(sfi));
    System.out.println("FIRST END =-====================-=");
  }
View Full Code Here


    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);
   
    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

  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();
   
    OCDOMWriter domWriter = app.newDOMWriter();
    domWriter.write(bc.getDOMElement(), xmlWriter);
   
    String res = xmlWriter.close();
    System.out.println(res);
  }
View Full Code Here

TOP

Related Classes of com.ipc.oce.xml.oc.OCXSBasicComponent

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.