public abstract class LayoutBuilderSupport
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LayoutBuilderSupport.FieldConfigComparator
フィールドのオフセットを基準に比較を行うクラス。
|
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.charset.Charset |
charset
文字セット
|
protected char |
fillChar
未定義部の埋め文字
|
protected int |
length
レコードの長さ(バイト数)
|
protected java.lang.String |
lineSeparator
改行を現す文字
|
| Constructor and Description |
|---|
LayoutBuilderSupport(int length,
java.nio.charset.Charset charset,
java.lang.String lineSeparator,
char fillChar)
与えられた情報をもとに本クラスのインスタンスを生成する。
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFillerFieldConfig(java.util.List<FieldConfig> fieldConfigList)
filler用の
FieldConfigを生成してフィールド定義リストに追加する。 |
abstract FixedLengthDataBindConfig |
build()
与えられた情報を元に
FixedLengthDataBindConfigを生成して返す。 |
abstract LayoutBuilderSupport |
field(java.lang.String name,
int offset,
int length)
フィールドを追加する。
|
abstract LayoutBuilderSupport |
field(java.lang.String name,
int offset,
int length,
FieldConvert.FieldConverter converter)
フィールドを追加する。
|
protected void |
verifyFile()
固定長定義部の正しさを検証する。
|
protected void |
verifyRecordConfig(java.util.Map<java.lang.String,RecordConfig> recordConfigMap)
レコード定義の正しさを検証する。
|
protected final int length
protected final java.nio.charset.Charset charset
protected final java.lang.String lineSeparator
protected final char fillChar
public LayoutBuilderSupport(int length,
java.nio.charset.Charset charset,
java.lang.String lineSeparator,
char fillChar)
length - レコードの長さcharset - 文字セットlineSeparator - 改行を表す文字fillChar - 未定義部の埋め文字@Published public abstract LayoutBuilderSupport field(java.lang.String name, int offset, int length)
name - フィールド名offset - オフセットlength - 長さ@Published public abstract LayoutBuilderSupport field(java.lang.String name, int offset, int length, FieldConvert.FieldConverter converter)
name - フィールド名offset - オフセットlength - 長さconverter - フィールドコンバータ@Published public abstract FixedLengthDataBindConfig build()
FixedLengthDataBindConfigを生成して返す。FixedLengthDataBindConfigprotected void addFillerFieldConfig(java.util.List<FieldConfig> fieldConfigList)
FieldConfigを生成してフィールド定義リストに追加する。fieldConfigList - フィールド定義リストprotected void verifyFile()
protected void verifyRecordConfig(java.util.Map<java.lang.String,RecordConfig> recordConfigMap)
recordConfigMap - レコード定義のマップ