com.github.mygreen.cellformatter.term.WordTerm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of excel-cellformatter Show documentation
Show all versions of excel-cellformatter Show documentation
Excelのセルの書式を解析してフォーマットするライブラリ。
package com.github.mygreen.cellformatter.term;
import java.util.Locale;
import com.github.mygreen.cellformatter.lang.ArgUtils;
import com.github.mygreen.cellformatter.lang.MSLocale;
import com.github.mygreen.cellformatter.tokenizer.Token;
/**
* 引用符'"'で囲まれた文字列の項
* @author T.TSUCHIE
*
*/
public class WordTerm implements Term {
private final Token.Word token;
public WordTerm(Token.Word token) {
ArgUtils.notNull(token, "token");
this.token = token;
}
@Override
public String format(final T value, final MSLocale formatLocale, final Locale runtimeLocale) {
return token.getWord();
}
public Token.Word getToken() {
return token;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy