Examples of OCXMLDataType


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

   *            соответствующий XML тип.
   * @return OCXMLDataType
   * @throws JIException
   */
  public final OCXMLDataType getXMLType(OCType type) throws JIException {
    return new OCXMLDataType(callMethodA("XMLType", new JIVariant(ocObject2Dispatch(type)))[0]);
  }
View Full Code Here

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

   */
  public OCXMLDataType getXMLTypeOf(Object object) throws JIException {
    OCVariant var = new OCVariant(object);
    JIVariant jVar = callMethodA("XMLTypeOf", var.getJIVariant())[0];
    if (jVar.getType() != JIVariant.VT_EMPTY) {
      return new OCXMLDataType(jVar);
    } else {
      return null;
    }
  }
View Full Code Here

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

   * @throws JIException - ошибка платормы или DCOM
   */
  public final OCXMLDataType getXMLType(final OCXMLReader reader) throws JIException {
    JIVariant var = callMethodA("GetXMLType", new JIVariant(ocObject2Dispatch(reader)))[0];
    if (var != null) {
      return new OCXMLDataType(var);
    } else {
      return null;
    }
  }
View Full Code Here

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

public class SchemasDance extends BasicTest {

  @Test
  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: --------------------------");
View Full Code Here

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

 
  @Test
  public void dance2() throws JIException {
    System.out.println();
    OCDocumentObject document = getRandomDocument("СчетНаОплатуПокупателю");
    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);
   
    System.out.println("DOMElement of BC: " + bc.getDOMElement());
   
    OCXMLWriter xmlWriter = app.newXMLWriter();
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.