View Javadoc

1   /*
2    * Copyright (c) 2004-2007 Creative Sphere Limited.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the Eclipse Public License v1.0
5    * which accompanies this distribution, and is available at
6    * http://www.eclipse.org/legal/epl-v10.html
7    *
8    * Contributors:
9    *
10   *   Creative Sphere - initial API and implementation
11   *
12   */
13  package org.abstracthorizon.mercury.imap.util.section;
14  
15  
16  /**
17   * Multipart section
18   *
19   * @author Daniel Sendula
20   */
21  public class MultipartSection extends PointerSection {
22  
23      public int partNo = 0;
24  
25      /**
26       * Returns string representation of this object
27       * @return string representation of this object
28       */
29      public String toString() {
30          if (child != null) {
31              return partNo+"."+child.toString();
32          } else {
33              return Integer.toString(partNo);
34          }
35      }
36  
37  }