示例#1
0
 public String toString() {
   StringBuilder buf = new StringBuilder();
   buf.append(var.getFQN());
   buf.append(slices.toString());
   if (this.filter != null) {
     buf.append("|");
     buf.append(filter.toString());
   }
   return buf.toString();
 }
示例#2
0
 public void variable(DapVariable dapvar) throws DapException {
   writer.startVariable();
   if (dapvar.getSort() == DapSort.ATOMICVARIABLE) {
     atomicVariable((DapAtomicVariable) dapvar);
   } else if (dapvar.getSort() == DapSort.STRUCTURE) {
     structure((DapStructure) dapvar);
   } else if (dapvar.getSort() == DapSort.SEQUENCE) {
     sequence((DapSequence) dapvar);
   } else throw new DapException("generate var: not a variable:" + dapvar.getFQN());
   try {
     writer.endVariable();
   } catch (IOException ioe) {
     throw new DapException(ioe);
   }
 }