Interface IModelPropertyAccessorProvider
- Namespace
- MRX.Json.Reflection.Abstractions
- Assembly
- MRX.Json.Reflection.dll
Selects the IModelNodeAccessor capable of resolving a given JSON path token.
public interface IModelPropertyAccessorProvider
Methods
GetAccessor(JsonPathTokenType, string, object)
Finds an accessor able to resolve token against container.
IModelNodeAccessor? GetAccessor(JsonPathTokenType tokenType, string token, object container)
Parameters
tokenTypeJsonPathTokenTypeThe kind of path token being resolved (property, array index, etc.).
tokenstringThe raw token text extracted from the JSON path.
containerobjectThe object instance the token should be resolved against.
Returns
- IModelNodeAccessor
The matching IModelNodeAccessor, or null if none can handle it.