Beispiel #1
0
  /**
   * Constructs a new aggregate descriptor that contains the contents of the given single
   * descriptor.
   *
   * @param D the descriptor
   * @throws BadDataException from parent constructor
   */
  public DescAggregate(DescSingle D) throws BadDataException {
    super();
    setName(D.getName());
    attributes = new Attribute[D.attributes.length];
    for (int i = 0; i < D.attributes.length; i++)
      attributes[i] = (Attribute) D.attributes[i].clone();

    span = (FrameSpan) D.span.clone();
    idList = new TreeSet();
    idList.add(new Integer(D.id));

    setCategory(D.getCategory());
  }