Examples of JIVariant


Examples of org.jinterop.dcom.core.JIVariant

   * Сервисный метод по извлечению из OCObject-ов JIVariant
   * @param object
   * @return
   */
  private static JIVariant makeVariant(final OCObject object) {
    return new JIVariant(object.dispatch());
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * @param index индекс элемента
   * @return
   * @throws JIException
   */
  public OCObject getElement(int index) throws JIException {
    return new OCObject(callMethodA("Get", new Object[] { new JIVariant(
        index) })[0]);
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   *            Наименование элемента коллекции.
   * @return
   * @throws JIException
   */
  public OCObject find(String objectName) throws JIException {
    return new OCObject(callMethodA("Get", new Object[] { new JIVariant(
        objectName) })[0]);
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * @param object Значение, по которому ищется элемент коллекции
   * @return Индекс указанного элемента в коллекции. Если не найдено, то возвращается -1
   * @throws JIException
   */
  public int indexOf(OCObject object) throws JIException {
    return callMethodA("Get", new Object[]{new JIVariant(object.dispatch())})[0].getObjectAsInt();
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * @throws JIException
   */
  public OCCustomField insert(String name, String presentation, OCTypeDescription typeDescription, OCValueList valueList, int position) throws JIException {
    return new OCCustomField(
        callMethodA("Insert", new Object[]{
            new JIVariant(name),
            new JIVariant(presentation),
            typeDescription != null ? ocObject2Dispatch(typeDescription) : null,
            valueList != null ? ocObject2Dispatch(valueList) : null,
            new JIVariant(position)
        })[0]
        );
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * @throws JIException
   */
  public OCCustomField add(String name, String presentation, OCTypeDescription typeDescription, OCValueList valueList) throws JIException {
    return new OCCustomField(
        callMethodA("Add", new Object[]{
            new JIVariant(name),
            new JIVariant(presentation),
            typeDescription != null ? ocObject2Dispatch(typeDescription) : null,
            valueList != null ? ocObject2Dispatch(valueList) : null
        })[0]
        );
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * @param field - Искомое поле настройки.
   * @return Индекс указанного элемента коллекции. Если такого элемента нет, возвращается -1.
   * @throws JIException
   */
  public int indexOf(OCCustomField field) throws JIException {
    return callMethodA("IndexOf", new Object[]{new JIVariant(ocObject2Dispatch(field))})[0].getObjectAsInt();
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * @param name - Имя искомого поля.
   * @return ПолеНастройки; Неопределено. Если поле не найдено, то возвращается значение Неопределено. z
   * @throws JIException
   */
  public OCCustomField find(String name) throws JIException {
    JIVariant var = callMethodA("Find", new JIVariant(name))[0];
    if (var.getType() == JIVariant.VT_EMPTY) {
      return null;
    } else {
      return new OCCustomField(var);
    }
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * @param index - Индекс поля.
   * @return OCCustomField
   * @throws JIException
   */
  public OCCustomField get(int index) throws JIException {
    return new OCCustomField(callMethodA("Get", new JIVariant(index))[0]);
  }
View Full Code Here

Examples of org.jinterop.dcom.core.JIVariant

   * @param offset
   *            - Указывается, на сколько позиций осуществить сдвиг.
   * @throws JIException
   */
  public void move(OCCustomField field, int offset) throws JIException {
    callMethod("Move", new Object[]{new JIVariant(ocObject2Dispatch(field)), new JIVariant(offset)});
  }
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.