1 /*
2 * Copyright 2013 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.orangesignal.csv;
18
19 /**
20 * 区切り文字形式データトークンのインタフェースです。
21 *
22 * @author Koji Sugisawa
23 */
24 public interface CsvToken {
25
26 /**
27 * トークンの値を保持します、
28 *
29 * @return トークンの値
30 */
31 String getValue();
32
33 /**
34 * トークンの開始物理行番号を取得します。
35 *
36 * @return トークンの開始物理行番号
37 */
38 int getStartLineNumber();
39
40 /**
41 * トークンの終了物理行番号を取得します。
42 *
43 * @return トークンの終了物理行番号
44 */
45 int getEndLineNumber();
46
47 /**
48 * トークンが囲み文字で囲まれていたかどうかを返します。
49 *
50 * @return トークンが囲み文字で囲まれていたかどうか
51 */
52 boolean isEnclosed();
53
54 }