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 * BODYSTRUCTURE section 17 * 18 * @author Daniel Sendula 19 */ 20 public class BodyStructure { 21 22 /** Is structure required */ 23 public boolean structure = false; 24 25 /** 26 * Constructor 27 */ 28 public BodyStructure() { 29 } 30 31 /** 32 * Returns string representation of this object 33 * @return string representation of this object 34 */ 35 public String toString() { 36 if (structure) { 37 return "BODYSTRUCTURE"; 38 } else { 39 return "BODY"; 40 } 41 } 42 }