T - the type of the nodes supported by this resolverAbstractHierarchicalConfiguration, AbstractYAMLBasedConfiguration, BaseHierarchicalConfiguration, CombinedConfiguration, DynamicCombinedConfiguration, INIConfiguration, JSONConfiguration, PatternSubtreeConfigurationWrapper, PropertyListConfiguration, SubnodeConfiguration, XMLConfiguration, XMLPropertyListConfiguration, YAMLConfigurationpublic 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 | Description |
|---|---|---|
java.lang.String |
nodeKey(T node,
java.util.Map<T,java.lang.String> cache,
NodeHandler<T> handler) |
Generates a unique key for the specified node.
|
NodeAddData<T> |
resolveAddKey(T root,
java.lang.String key,
NodeHandler<T> handler) |
Resolves a key of an add operation.
|
java.util.List<QueryResult<T>> |
resolveKey(T root,
java.lang.String key,
NodeHandler<T> handler) |
Performs a query for the specified key on the given root node.
|
java.util.List<T> |
resolveNodeKey(T root,
java.lang.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,
java.lang.String key,
java.lang.Object newValue,
NodeHandler<T> handler) |
Resolves a key for an update operation.
|
java.util.List<QueryResult<T>> resolveKey(T root, java.lang.String key, NodeHandler<T> handler)
query() method of an
ExpressionEngine.root - the root nodekey - the key to be resolvedhandler - the NodeHandlerjava.util.List<T> resolveNodeKey(T root, java.lang.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, java.lang.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, java.lang.String key, java.lang.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
operationjava.lang.String nodeKey(T node, java.util.Map<T,java.lang.String> cache, NodeHandler<T> handler)
node - the node in questioncache - a map serving as cachehandler - the NodeHandlerCopyright © 2001–2018. All rights reserved.