Package com.streamconverter.path
Class AbstractPath<T>
java.lang.Object
com.streamconverter.path.AbstractPath<T>
- Type Parameters:
T
- コンテキスト型
- All Implemented Interfaces:
IPath<T>
- Direct Known Subclasses:
CSVPath
最小限のPath基底クラス
Don't Ask, Tell原則に従い、matches()メソッドのみを提供する最小実装
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
isNullOrEmpty
(String str) 文字列がnullまたは空かチェックprotected abstract void
validateAndNormalize
(String rawPath) パス文字列の検証と正規化
-
Constructor Details
-
AbstractPath
AbstractPathのコンストラクタ- Parameters:
path
- パス文字列(構築時に検証される)
-
-
Method Details
-
validateAndNormalize
パス文字列の検証と正規化- Parameters:
rawPath
- 生のパス文字列- Throws:
IllegalArgumentException
- 不正なパスの場合
-
isNullOrEmpty
文字列がnullまたは空かチェック- Parameters:
str
- チェック対象文字列- Returns:
- nullまたは空の場合true
-