Package com.ipc.oce.metadata

Examples of com.ipc.oce.metadata.OCType


   * @throws JIException
   */
  public OCType fromXMLType(OCXMLDataType xmlDataType) throws JIException {
    JIVariant var = callMethodA("FromXMLType", new JIVariant(ocObject2Dispatch(xmlDataType)))[0];
    if (var.getType() != JIVariant.VT_EMPTY) {
      return new OCType(var);
    } else {
      return null;
    }
  }
View Full Code Here


   * @throws JIException
   */
  public OCType fromXMLType(String xmlTypeName, String namespace) throws JIException {
    JIVariant var = callMethodA("FromXMLType", new Object[]{new JIVariant(xmlTypeName), new JIVariant(namespace)})[0];
    if (var.getType() != JIVariant.VT_EMPTY) {
      return new OCType(var);
    } else {
      return null;
    }
  }
View Full Code Here

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

    OCTypeDescription typeDescription = null;
    int attrSZ = attributeCollection.size();
    for (int z = 0; z < attrSZ; z++) {
      amo = attributeCollection.get(z);
      typeDescription = amo.getTypeDescription();
      OCType ot = typeDescription.getType();
      int innerType = ot.getTypeCode();
      // determinate column size
      Integer columnSize = null;
      Integer decimalDigits = null;
      if (!(typeDescription.isMultiType())) {
        switch (innerType) {
View Full Code Here

TOP

Related Classes of com.ipc.oce.metadata.OCType

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.