コード例 #1
0
  /** @return An Iterator of ModuleAREFs without attempting lazy resolution (if it's turned on). */
  @SuppressWarnings("unchecked")
  // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:990)
  public Iterator<ModuleAREF> getDependsOnModuleAREFs() {
    DmcTypeModuleAREFMV attr = (DmcTypeModuleAREFMV) get(DsdADMSAG.__dependsOnModuleA);
    if (attr == null) return (((List<ModuleAREF>) Collections.EMPTY_LIST).iterator());

    return (attr.getMV());
  }
コード例 #2
0
  /** @return An Iterator of ModuleADMO objects. */
  @SuppressWarnings("unchecked")
  // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:970)
  public Iterator<ModuleAREF> getDependsOnModuleA() {
    DmcTypeModuleAREFMV attr = (DmcTypeModuleAREFMV) get(DsdADMSAG.__dependsOnModuleA);
    if (attr == null) return (((List<ModuleAREF>) Collections.EMPTY_LIST).iterator());

    if (DmcOmni.instance().lazyResolution()) {
      if (attr.doLazyResolution(this)) {
        rem(attr.getAttributeInfo());
        return (((List<ModuleAREF>) Collections.EMPTY_LIST).iterator());
      }
    }

    return (attr.getMV());
  }