Package com.streamconverter.path
Interface IPath<T>
- Type Parameters:
T
- コンテキスト型(TreePath=JsonNode, TreePath=List<String>, CSVPath=Integer)
- All Known Implementing Classes:
AbstractPath
,CSVPath
,TreePath
public interface IPath<T>
最小限のPathインターフェース
このインターフェースは、StreamConverterで使用される様々な種類のパスセレクタ (TreePath、TreePath、CSVパス)の統一的な契約を提供します。
Don't Ask, Tell原則に従い、パス一致判定のみに特化した設計です。
-
Method Summary
-
Method Details
-
matches
指定されたコンテキストがこのパスにマッチするか判定- Parameters:
context
- 判定対象のコンテキスト- Returns:
- マッチする場合true
-