Package com.ipc.oce

Examples of com.ipc.oce.OCVariant


   * @param attributeName
   * @return
   * @throws JIException
   */
  public OCVariant getAttributeValue(String attributeName) throws JIException{
    return new OCVariant(get(attributeName));
  }
View Full Code Here


   * @param attributeName - именя реквизита, как оно задано в конфигураторе.
   * @return OCVariant
   * @throws JIException
   */
  public OCVariant getAttributeValue(String attributeName) throws JIException{
    return new OCVariant(get(attributeName));
  }
View Full Code Here

   * @param resourceName - именя ресурса, как оно задано в конфигураторе.
   * @return Number
   * @throws JIException
   */
  public Number getResource(String resourceName) throws JIException{
    OCVariant v = new OCVariant(get(resourceName));
    return (Number) v.value();
  }
View Full Code Here

   * @param dimensionName - имени измерения, как оно задано в конфигурации
   * @return OCVariant
   * @throws JIException
   */
  public OCVariant getDimension(String dimensionName) throws JIException{
    return new OCVariant(get(dimensionName));
  }
View Full Code Here

   * @param attributeName
   * @return
   * @throws JIException
   */
  public OCVariant getAttributeValue(String attributeName) throws JIException {
    return new OCVariant(get(attributeName));
  }
View Full Code Here

  public <T> T getOwner() throws JIException {
    JIVariant var = get("Owner");
    if (var.getType() == JIVariant.VT_EMPTY) {
      return null;
    }
    OCVariant oVar = new OCVariant(var);
    return oVar.value();
  }
View Full Code Here

   * @return Integer, null. Числовое значения результата вычисления.
   * @throws JIException
   */
  public Number total(String fieldName) throws JIException {
    JIVariant var = callMethodA("Total", new JIVariant(fieldName))[0];
    return var.getFlag() != JIVariant.VT_EMPTY ? (Number)(new OCVariant(var)).value() : null;
  }
View Full Code Here

   *            имя измерения
   * @return OCVariant
   * @throws JIException
   */
  public OCVariant getDimension(String name) throws JIException {
    return new OCVariant(get(name));
  }
View Full Code Here

   *            имя реквизита.
   * @return OCVariant
   * @throws JIException
   */
  public OCVariant getAttribute(String name) throws JIException {
    return new OCVariant(get(name));
  }
View Full Code Here

   *            имя ресурса.
   * @return OCVariant
   * @throws JIException
   */
  public OCVariant getResource(String name) throws JIException {
    return new OCVariant(get(name));
  }
View Full Code Here

TOP

Related Classes of com.ipc.oce.OCVariant

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.