OSDN Git Service

#34479 対応中
[jaxcel/jaxcel.git] / Jaxcel / src / org / hanei / jaxcel / example / SampleParser.java
1 /**
2  * Copyright 2014 Hanei Management Co.,Ltd. 
3  * 
4  * This file is part of Jaxcel
5  * 
6  *  Jaxcel is free software: you can redistribute it and/or modify
7  *  it under the terms of the GNU Lesser General Public License as published by
8  *  the Free Software Foundation, either version 3 of the License, or
9  *  (at your option) any later version.
10  *
11  *  Jaxcel is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU Lesser General Public License for more details.
15  *
16  *  You should have received a copy of the GNU Lesser General Public License
17  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19 package org.hanei.jaxcel.example;
20
21 import org.apache.poi.ss.usermodel.Cell;
22 import org.hanei.jaxcel.parser.AbstractTLParser;
23 import org.hanei.jaxcel.report.JaxcelContext;
24
25 /**
26  * テンプレートパーサーのサンプル
27  * 
28  * <h4>テンプレートの書式</h4>
29  * <h5>#sample()</h5>
30  * <p>文字列"SampleParser"を出力する。</p>
31  * 
32  * @since 1.01.00
33  * @author Noboru Saito
34  */
35 public class SampleParser extends AbstractTLParser {
36
37         @Override
38         public void parse(JaxcelContext context) {
39                 Cell cell = context.getCurrentCell();
40                 
41                 cell.setCellValue("SampleParser");
42
43         }
44
45 }