PathResolver

객체 그래프(ICASA 모델) 내에서 경로(예: "weather@dailyWeather!date")를 해석하고 값을 읽거나 쓰는 도우미 클래스입니다. AgMIP Java 구현의 AcePathfinder와 유사한 기능을 수행합니다.

Methods

public method GetValue(System.Object,System.String)
지정된 경로에서 값을 가져옵니다. (재귀적 탐색)
Parameters:
Name Description
root 루트 객체
path 조회할 경로
Returns: 찾은 값 또는 null
public method GetValueRecursive(System.Object,System.String[],System.Int32)
경로를 따라 객체를 재귀적으로 탐색하며 값을 읽습니다.
Parameters:
Name Description
current 현재 노드 객체
parts 분할된 경로 배열
index 현재 경로 인덱스
Returns: 찾은 값 또는 null
public method SetValue(System.Object,System.String,System.Object)
지정된 경로에 값을 설정합니다. (재귀적 탐색)
Parameters:
Name Description
root 루트 객체 (Dictionary 또는 POCO)
path 설정할 경로 (예: weather@dailyWeather!date)
value 설정할 값
Returns: 성공 여부
public method SetValueRecursive(System.Object,System.String[],System.Int32,System.Object)
경로를 따라 객체를 재귀적으로 탐색하며 값을 설정합니다. Dictionary, POCO 속성, ExtensionData 순으로 탐색합니다.
Parameters:
Name Description
current 현재 노드 객체
parts 분할된 경로 배열
index 현재 경로 인덱스
value 설정할 값
Returns: 설정 성공 여부