View Javadoc

1   /***
2    * 
3    */
4   package ar.com.epere4.java2excel.parser.impl;
5   
6   import org.apache.commons.lang.builder.ToStringBuilder;
7   
8   import ar.com.epere4.java2excel.parser.BodyDtd;
9   import ar.com.epere4.java2excel.parser.HeaderDtd;
10  import ar.com.epere4.java2excel.parser.Java2ExcelDtd;
11  
12  /***
13   * Default implementation of
14   * {@link ar.com.epere4.java2excel.parser.Java2ExcelDtd}.
15   * 
16   * @author epere4
17   */
18  public class Java2ExcelDtdImpl implements Java2ExcelDtd {
19      /*** Variable to hold the header. */
20  	private HeaderDtd header;
21      /*** Variable to hold the body. */
22  	private BodyDtd body;
23  	
24  
25      /***
26       * {@inheritDoc}
27       * 
28       * @see ar.com.epere4.java2excel.parser.Java2ExcelDtd#getBody()
29       * @since 21/02/2006
30       */
31  	public BodyDtd getBody() {
32  		return body;
33  	}
34      
35      /***
36       * @param body the body to be set.
37       * @since 21/02/2006
38       */
39  	public void setBody(final BodyDtd body) {
40  		this.body = body;
41  	}
42  
43  	/***
44       * {@inheritDoc}
45       * 
46       * @see ar.com.epere4.java2excel.parser.Java2ExcelDtd#getHeader()
47       * @since 21/02/2006
48  	 */
49  	public HeaderDtd getHeader() {
50  		return header;
51  	}
52      /***
53       * @param header the header to be set.
54       * @since 21/02/2006
55       */
56  	public void setHeader(final HeaderDtd header) {
57  		this.header = header;
58  	}
59  
60  	/***
61       * {@inheritDoc}
62       * 
63       * @see java.lang.Object#toString()
64       * @since 21/02/2006
65  	 */
66  	public String toString() {
67  		return ToStringBuilder.reflectionToString(this);
68  	}
69  	
70  }