Package com.ipc.oce.objects

Examples of com.ipc.oce.objects.OCConstantCollection


   * Используется для доступа к определенным в конфигурации константам.
   * @return OCConstantCollection
   * @throws JIException
   */
  public OCConstantCollection getConstantsCollection() throws JIException {
    return new OCConstantCollection(get("Constants"));
  }
View Full Code Here


   * @param constantName - имя константы
   * @return OCConstantManager
   * @throws JIException
   */
  public OCConstantManager getConstant(String constantName) throws JIException {
    OCConstantCollection collection = getConstantsCollection();
    try {
      return collection.getConstant(constantName);
    } catch (JIException e) {
      getErrorListener().onError(this, e);
      throw e;
    }
  }
View Full Code Here

    }
  }
 
  @Test
  public void enumConstants() throws JIException {
    OCConstantCollection collection = app.getConstantsCollection();
    System.out.println("\nOCConstantCollection ====================");
    for (OCConstantManager manager : collection) {
      System.out.println(manager.getMetadata().getFullName());
    }
  }
View Full Code Here

TOP

Related Classes of com.ipc.oce.objects.OCConstantCollection

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.