Uses of Class
nablarch.core.dataformat.FieldDefinition
Packages that use FieldDefinition
Package
Description
フレームワークが標準提供するコンバータ群を収めたパッケージ。
フレームワークが標準提供するコンバータ群を収めたパッケージ。
ファイルや電文のストリームを読み書きし、フィールドへの変換を行うデータタイプを収めたパッケージ。
フォーマット定義ファイルで指定されたオプション設定に従い、
フィールドのデータ変換を行うコンバータを収めたパッケージ。
-
Uses of FieldDefinition in nablarch.core.dataformat
Methods in nablarch.core.dataformat that return FieldDefinitionModifier and TypeMethodDescriptionFieldDefinition.addConvertor(ValueConvertor<?, ?> convertor) コンバータを追加する。 nullが渡された場合は何もしない。FieldDefinition.addConvertorSetting(String convertor, Object[] convertorArgs) フォーマット定義ファイルで指定されたコンバータの定義を追加する。LayoutFileParser.fieldFormat()フィールド定義を読み込む。FieldDefinition.markAsArray()このフィールドが配列項目に設定する。FieldDefinition.markAsAttribute()このフィールドが属性項目に設定する。FieldDefinition.markAsFiller()このフィールドがFILLER項目に設定する。FieldDefinition.markAsNotRequired()このフィールドが任意項目に設定する。FieldDefinition.setDataType(DataType<?, ?> dataType) フォーマット定義ファイルで指定されたデータタイプ名に対応するデータタイプを設定する。FieldDefinition.setEncoding(Charset encoding) フィールドの文字エンコーディングを設定する。FieldDefinition.setMaxArraySize(int maxArraySize) フィールドの最大配列要素数を設定する。FieldDefinition.setMinArraySize(int minArraySize) フィールドの最小配列要素数を設定する。フィールド名称を設定する。FieldDefinition.setPaddingValue(Object value) フィールドのパディング/トリムに使用する値を設定する。FieldDefinition.setPosition(int position) このフィールドの開始位置を設定する。Methods in nablarch.core.dataformat that return types with arguments of type FieldDefinitionMethods in nablarch.core.dataformat with parameters of type FieldDefinitionModifier and TypeMethodDescriptionprotected voidDataRecordFormatterSupport.addConvertorToField(FieldDefinition field, RecordDefinition recordDefinition) フィールドのフォーマット定義を保持するクラスに関連するコンバータを生成し、フィールド定義クラスに設定する。 コンバータを生成する役割を担うコンバータファクトリは、サブクラスで指定されたコンバータ情報設定クラスをもとに生成する。DataRecordFormatterSupport.getConvertorSetting()RecordDefinition.addField(FieldDefinition... fields) 指定されたフィールド定義を追加する。protected voidStructuredDataEditorSupport.checkArrayLength(FieldDefinition fd, int actualLength, String baseKey) 配列の長さチェックを実行します。protected voidStructuredDataEditorSupport.checkIndispensable(String baseKey, FieldDefinition fd, Object targetObject) 必須チェック用関数
チェック可否をTrueで強制的に実行protected voidStructuredDataEditorSupport.checkRequired(String baseKey, FieldDefinition fd, Object targetObject, boolean checkTarget) 必須チェック用の関数
targetObjectがNullで必須項目の場合は
throwInvalidDataFormatExceptionを実行protected ObjectFixedLengthDataRecordFormatter.convertToField(byte[] source, FieldDefinition field) 入力ストリームから1レコード分のフィールドの内容を読み込み、コンバータを用いて変換したオブジェクトを返却する。 入力ストリームが既に終端に達していた場合はnullを返却する。protected ObjectVariableLengthDataRecordFormatter.convertToField(String fieldStr, FieldDefinition field) 読み込んだフィールド文字列をコンバータを用いてオブジェクトに変換し、返却する。protected ObjectStructuredDataEditorSupport.convertToFieldOnRead(String fieldStr, FieldDefinition field) 読み込んだフィールド文字列をコンバータを用いてオブジェクトに変換し、返却する。protected ObjectStructuredDataEditorSupport.convertToFieldOnWrite(Object fieldStr, FieldDefinition field) 読み込んだフィールド文字列をコンバータを用いてオブジェクトに変換し、返却する。protected CharacterReplacerDataRecordFormatterSupport.createCharacterReplacer(FieldDefinition field, String replacementType) デフォルトの寄せ字コンバータを生成する。protected booleanStructuredDataEditorSupport.isObjectType(FieldDefinition fieldDef) 当該フィールドのタイプ識別子がネストオブジェクト(OB)かどうか判定する。protected voidDataRecordFormatterSupport.setFieldProperty(FieldDefinition field, RecordDefinition recordDef) フィールド定義情報保持クラスのプロパティを設定する。protected voidDataRecordFormatterSupport.validatePosition(int head, FieldDefinition field) 開始位置と、現在位置の妥当性を検証する。voidLayoutFileParser.valueConvertor(FieldDefinition field) フィールド値のタイプ定義およびコンバート定義を読み込む。voidLayoutFileParser.valueConvertors(FieldDefinition field) フィールドに設定されているすべてのコンバート定義を読み込む。protected voidFixedLengthDataRecordFormatter.writeField(Map<String, ?> record, FieldDefinition field) このオブジェクトのフォーマット定義に従って、 出力ストリームにフィールドの内容を書き込む。protected voidVariableLengthDataRecordFormatter.writeField(Map<String, ?> record, FieldDefinition field) コンバータによる変換を行ったフィールドの内容を、出力ストリームへ書き込む。Method parameters in nablarch.core.dataformat with type arguments of type FieldDefinitionModifier and TypeMethodDescriptionRecordDefinition.setFields(List<FieldDefinition> fields) 本レコードタイプに紐付くフィールド情報を設定する。 -
Uses of FieldDefinition in nablarch.core.dataformat.convertor
Methods in nablarch.core.dataformat.convertor with parameters of type FieldDefinitionModifier and TypeMethodDescriptionValueConvertor<?,?> ConvertorFactorySupport.convertorOf(String convertorName, FieldDefinition field, Object... args) 引数で指定されたコンバータ名に対応するコンバータを生成する。<T,F> DataType<T, F> ConvertorFactorySupport.typeOf(String typeName, FieldDefinition field, Object... args) 引数で指定されたデータタイプ名に対応するコンバータを生成する。<T,F> DataType<T, F> ConvertorFactorySupport.typeOfWithoutInit(String typeName, FieldDefinition field, Object... args) 引数で指定されたデータタイプ名に対応するコンバータを生成する。 -
Uses of FieldDefinition in nablarch.core.dataformat.convertor.datatype
Methods in nablarch.core.dataformat.convertor.datatype that return FieldDefinitionMethods in nablarch.core.dataformat.convertor.datatype with parameters of type FieldDefinitionModifier and TypeMethodDescriptionDataType.init(FieldDefinition field, Object... args) 初期化処理を行う。DataType<BigDecimal,byte[]> NumberStringDecimal.init(FieldDefinition field, Object... args) 初期化処理を行う。SignedPackedDecimal.init(FieldDefinition field, Object... args) 初期化処理を行う。SignedZonedDecimal.init(FieldDefinition field, Object... args) 初期化処理を行う。 -
Uses of FieldDefinition in nablarch.core.dataformat.convertor.value
Methods in nablarch.core.dataformat.convertor.value that return FieldDefinitionModifier and TypeMethodDescriptionprotected FieldDefinitionValueConvertorSupport.getField()フィールド定義を取得する。Methods in nablarch.core.dataformat.convertor.value with parameters of type FieldDefinitionModifier and TypeMethodDescriptionCharacterReplacer.initialize(FieldDefinition field, Object... args) DefaultValue.initialize(FieldDefinition field, Object... args) Padding.initialize(FieldDefinition field, Object... args) 初期化処理を行う。UseEncoding.initialize(FieldDefinition field, Object... args) 初期化処理を行う。ValueConvertor.initialize(FieldDefinition field, Object... args) 初期化処理を行う。ValueConvertorSupport.initialize(FieldDefinition field, Object... args) 初期化処理を行う。