コード例 #1
0
  // org.dmd.dmg.generators.BaseDMWGenerator.formatMV(BaseDMWGenerator.java:2244)
  @SuppressWarnings("unchecked")
  public ArrayList<GpbEnumValue> getGpbEnumValueCopy() {
    DmcAttribute<?> attr = core.get(DmdgpbDMSAG.__gpbEnumValue);
    if (attr == null) return (new ArrayList<GpbEnumValue>());

    ArrayList<GpbEnumValue> rc = new ArrayList<GpbEnumValue>(attr.getMVSize());

    Iterator<GpbEnumValue> it = (Iterator<GpbEnumValue>) attr.getMV();
    while (it.hasNext()) {
      rc.add(it.next());
    }

    return (rc);
  }
コード例 #2
0
  // org.dmd.dmg.generators.BaseDMWGenerator.formatMV(BaseDMWGenerator.java:2244)
  @SuppressWarnings("unchecked")
  public TreeSet<String> getTsStringCopy() {
    DmcAttribute<?> attr = core.get(DmtDMSAG.__tsString);
    if (attr == null) return (new TreeSet<String>());

    TreeSet<String> rc = new TreeSet<String>();

    Iterator<String> it = (Iterator<String>) attr.getMV();
    while (it.hasNext()) {
      rc.add(it.next());
    }

    return (rc);
  }
  // org.dmd.dmg.generators.BaseDMWGenerator.formatMV(BaseDMWGenerator.java:2244)
  @SuppressWarnings("unchecked")
  public ArrayList<String> getMvStringCopy() {
    DmcAttribute<?> attr = core.get(DmtDMSAG.__mvString);
    if (attr == null) return (new ArrayList<String>());

    ArrayList<String> rc = new ArrayList<String>(attr.getMVSize());

    Iterator<String> it = (Iterator<String>) attr.getMV();
    while (it.hasNext()) {
      rc.add(it.next());
    }

    return (rc);
  }