Class AbstractPath<T>

java.lang.Object
com.streamconverter.path.AbstractPath<T>
Type Parameters:
T - コンテキスト型
All Implemented Interfaces:
IPath<T>
Direct Known Subclasses:
CSVPath

public abstract class AbstractPath<T> extends Object implements IPath<T>
最小限のPath基底クラス

Don't Ask, Tell原則に従い、matches()メソッドのみを提供する最小実装

  • Constructor Details

    • AbstractPath

      protected AbstractPath(String path)
      AbstractPathのコンストラクタ
      Parameters:
      path - パス文字列(構築時に検証される)
  • Method Details

    • validateAndNormalize

      protected abstract void validateAndNormalize(String rawPath)
      パス文字列の検証と正規化
      Parameters:
      rawPath - 生のパス文字列
      Throws:
      IllegalArgumentException - 不正なパスの場合
    • isNullOrEmpty

      protected static boolean isNullOrEmpty(String str)
      文字列がnullまたは空かチェック
      Parameters:
      str - チェック対象文字列
      Returns:
      nullまたは空の場合true