T - the type of the nodes supported by this resolverpublic interface NodeKeyResolver<T>
Definition of an interface which allows resolving a (property) key for different manipulating operations.
 This interface is used when interacting with a node model. It is an
 abstraction over a concrete ExpressionEngine instance. It also
 implements some functionality for creating special helper objects for the
 processing of complex update operations.
 
| Modifier and Type | Method and Description | 
|---|---|
String | 
nodeKey(T node,
       Map<T,String> cache,
       NodeHandler<T> handler)
Generates a unique key for the specified node. 
 | 
NodeAddData<T> | 
resolveAddKey(T root,
             String key,
             NodeHandler<T> handler)
Resolves a key of an add operation. 
 | 
List<QueryResult<T>> | 
resolveKey(T root,
          String key,
          NodeHandler<T> handler)
Performs a query for the specified key on the given root node. 
 | 
List<T> | 
resolveNodeKey(T root,
              String key,
              NodeHandler<T> handler)
Performs a query for the specified key on the given root node returning
 only node results. 
 | 
NodeUpdateData<T> | 
resolveUpdateKey(T root,
                String key,
                Object newValue,
                NodeHandler<T> handler)
Resolves a key for an update operation. 
 | 
List<QueryResult<T>> resolveKey(T root, String key, NodeHandler<T> handler)
query() method of an
 ExpressionEngine.root - the root nodekey - the key to be resolvedhandler - the NodeHandlerList<T> resolveNodeKey(T root, String key, NodeHandler<T> handler)
resolveKey(), but filters only
 for results of type node.root - the root nodekey - the key to be resolvedhandler - the NodeHandlerNodeAddData<T> resolveAddKey(T root, String key, NodeHandler<T> handler)
NodeAddData
 object containing all information for actually performing the add
 operation at the specified key.root - the root nodekey - the key to be resolvedhandler - the NodeHandlerNodeAddData object to be used for the add operationNodeUpdateData<T> resolveUpdateKey(T root, String key, Object newValue, NodeHandler<T> handler)
NodeUpdateData object containing all information for actually
 performing the update operation at the specified key using the provided
 new value object.root - the root nodekey - the key to be resolvednewValue - the new value for the key to be updated; this can be a
        single value or a container for multiple valueshandler - the NodeHandlerNodeUpdateData object to be used for this update
         operationString nodeKey(T node, Map<T,String> cache, NodeHandler<T> handler)
node - the node in questioncache - a map serving as cachehandler - the NodeHandlerCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.