Package com.ipc.oce.metadata

Source Code of com.ipc.oce.metadata.OCStringQualifier

package com.ipc.oce.metadata;

import org.jinterop.dcom.common.JIException;
import org.jinterop.dcom.core.JIVariant;
import org.jinterop.dcom.impls.automation.IJIDispatch;

import com.ipc.oce.OCObject;
import com.ipc.oce.varset.OCAllowedLength;


public class OCStringQualifier extends OCObject {

  public OCStringQualifier(OCObject object) {
    super(object);
  }

  public OCStringQualifier(IJIDispatch aDispatch) {
    super(aDispatch);
  }

  public OCStringQualifier(JIVariant aDispatch) throws JIException {
    super(aDispatch);
  }
 
  public int getLength() throws JIException {
    return get("Length").getObjectAsInt();
  }
  /**
   * Содержит вариант ограничения длины строки.
   * @return
   * @throws JIException
   */
  public OCAllowedLength getAllowedLength() throws JIException {
    return new OCAllowedLength(get("AllowedLength"));
  }

}
TOP

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

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.