void gendimrange(List<BaseType> path, StringBuilder buf) {
   for (int i = 0; i < path.size(); i++) {
     BaseType bt = path.get(i);
     int rank = 0;
     if (bt.getParent() instanceof DArray) rank = ((DArray) (bt.getParent())).numDimensions();
     if (i > 0) buf.append('.');
     buf.append(bt.getEncodedName());
     for (int j = 0; j < rank; j++) {
       String dimprojection = dimrangeset[random.nextInt(dimrangeset.length)];
       buf.append(dimprojection);
     }
   }
 }
Exemple #2
0
  public String getLongName() {

    boolean done = false;

    BaseType parent = (BaseType) getParent();

    String longName = _name;

    while (parent != null && !(parent instanceof DDS)) {
      longName = parent.getClearName() + "." + longName;
      parent = (BaseType) parent.getParent();
    }
    return (longName);
  }
Exemple #3
0
 public void printConstraint(PrintWriter os) {
   BaseType parent = (BaseType) getParent();
   BaseType array = null;
   if (parent != null) {
     if (parent instanceof DArray) {
       array = parent;
       parent = (BaseType) parent.getParent();
     }
   }
   if (array != null) array.printConstraint(os);
   else {
     if (parent != null && !(parent instanceof DDS)) {
       parent.printConstraint(os);
       os.print(".");
     }
     os.print(getEncodedName());
   }
 }