// org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:1262)
 public int getDependsOnModuleASize() {
   DmcAttribute<?> attr = get(DsdADMSAG.__dependsOnModuleA);
   if (attr == null) {
     if (DsdADMSAG.__dependsOnModuleA.indexSize == 0) return (0);
     else return (DsdADMSAG.__dependsOnModuleA.indexSize);
   }
   return (attr.getMVSize());
 }
 // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:1262)
 public int getDescriptionSize() {
   DmcAttribute<?> attr = get(MetaDMSAG.__description);
   if (attr == null) {
     if (MetaDMSAG.__description.indexSize == 0) return (0);
     else return (MetaDMSAG.__description.indexSize);
   }
   return (attr.getMVSize());
 }
 // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:1262)
 public int getDefFilesSize() {
   DmcAttribute<?> attr = get(MetaDMSAG.__defFiles);
   if (attr == null) {
     if (MetaDMSAG.__defFiles.indexSize == 0) return (0);
     else return (MetaDMSAG.__defFiles.indexSize);
   }
   return (attr.getMVSize());
 }
 // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:1262)
 public int getMainElementsSize() {
   DmcAttribute<?> attr = get(DmdgpbDMSAG.__mainElements);
   if (attr == null) {
     if (DmdgpbDMSAG.__mainElements.indexSize == 0) return (0);
     else return (DmdgpbDMSAG.__mainElements.indexSize);
   }
   return (attr.getMVSize());
 }
 // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:1262)
 public int getOutfaultSize() {
   DmcAttribute<?> attr = get(DmwsdlDMSAG.__outfault);
   if (attr == null) {
     if (DmwsdlDMSAG.__outfault.indexSize == 0) return (0);
     else return (DmwsdlDMSAG.__outfault.indexSize);
   }
   return (attr.getMVSize());
 }
 // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:1262)
 public int getOnePossibilitySize() {
   DmcAttribute<?> attr = get(DmvDMSAG.__onePossibility);
   if (attr == null) {
     if (DmvDMSAG.__onePossibility.indexSize == 0) return (0);
     else return (DmvDMSAG.__onePossibility.indexSize);
   }
   return (attr.getMVSize());
 }
 // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:1262)
 public int getImportSize() {
   DmcAttribute<?> attr = get(DmdgpbDMSAG.__import);
   if (attr == null) {
     if (DmdgpbDMSAG.__import.indexSize == 0) return (0);
     else return (DmdgpbDMSAG.__import.indexSize);
   }
   return (attr.getMVSize());
 }
 // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:1262)
 public int getMvNamedObjSize() {
   DmcAttribute<?> attr = get(DmtDMSAG.__mvNamedObj);
   if (attr == null) {
     if (DmtDMSAG.__mvNamedObj.indexSize == 0) return (0);
     else return (DmtDMSAG.__mvNamedObj.indexSize);
   }
   return (attr.getMVSize());
 }
 // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:1262)
 public int getNameSpaceSize() {
   DmcAttribute<?> attr = get(DmwsdlDMSAG.__nameSpace);
   if (attr == null) {
     if (DmwsdlDMSAG.__nameSpace.indexSize == 0) return (0);
     else return (DmwsdlDMSAG.__nameSpace.indexSize);
   }
   return (attr.getMVSize());
 }
 // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:1262)
 public int getInterfacesSize() {
   DmcAttribute<?> attr = get(DmwsdlDMSAG.__interfaces);
   if (attr == null) {
     if (DmwsdlDMSAG.__interfaces.indexSize == 0) return (0);
     else return (DmwsdlDMSAG.__interfaces.indexSize);
   }
   return (attr.getMVSize());
 }
Exemplo n.º 11
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);
  }
  // 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);
  }