Uses of Class
org.apache.commons.configuration2.tree.QueryResult
Packages that use QueryResult
Package
Description
The Configuration main package.
A package with helper and utility classes used by hierarchical configurations.
This package contains the
XPathExpressionEngine
class which enables XPATH support for querying configuration
properties.-
Uses of QueryResult in org.apache.commons.configuration2
Methods in org.apache.commons.configuration2 that return types with arguments of type QueryResultModifier and TypeMethodDescriptionprotected List<QueryResult<T>>
AbstractHierarchicalConfiguration.fetchNodeList
(String key) Helper method for resolving the specified key.List<QueryResult<T>>
AbstractHierarchicalConfiguration.resolveKey
(T root, String key, NodeHandler<T> handler) Performs a query for the specified key on the given root node.Methods in org.apache.commons.configuration2 with parameters of type QueryResultModifier and TypeMethodDescriptionprivate Object
AbstractHierarchicalConfiguration.valueFromResult
(QueryResult<T> result, NodeHandler<T> handler) Extracts the value from a query result.Method parameters in org.apache.commons.configuration2 with type arguments of type QueryResultModifier and TypeMethodDescriptionprivate ImmutableNode
BaseHierarchicalConfiguration.createSubsetRootNode
(Collection<QueryResult<ImmutableNode>> results) Creates a root node for a subset configuration based on the passed in query results. -
Uses of QueryResult in org.apache.commons.configuration2.tree
Fields in org.apache.commons.configuration2.tree with type parameters of type QueryResultModifier and TypeFieldDescriptionprivate final Map<QueryResult<T>,
Object> NodeUpdateData.changedValues
The map with the query results whose value has to be changed.private final Collection<QueryResult<T>>
NodeUpdateData.removedNodes
The collection with query results about the nodes to be removed.Methods in org.apache.commons.configuration2.tree that return QueryResultModifier and TypeMethodDescriptionstatic <T> QueryResult<T>
QueryResult.createAttributeResult
(T parentNode, String attrName) Creates aQueryResult
instance representing an attribute result.static <T> QueryResult<T>
QueryResult.createNodeResult
(T resultNode) Creates aQueryResult
instance representing the specified result node.Methods in org.apache.commons.configuration2.tree that return types with arguments of type QueryResultModifier and TypeMethodDescriptionInMemoryNodeModel.clearTree
(String key, NodeKeyResolver<ImmutableNode> resolver) Removes the sub trees defined by the given key from this model.InMemoryNodeModel.clearTree
(String key, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Clears a whole sub tree using a tracked node as root node.TrackedNodeModel.clearTree
(String key, NodeKeyResolver<ImmutableNode> resolver) NodeUpdateData.getChangedValues()
Gets an unmodifiable map with the values to be changed.NodeUpdateData.getRemovedNodes()
Adds a collection with the nodes to be removed.<T> List<QueryResult<T>>
DefaultExpressionEngine.query
(T root, String key, NodeHandler<T> handler) Finds the nodes and/or attributes that are matched by the specified key.<T> List<QueryResult<T>>
ExpressionEngine.query
(T root, String key, NodeHandler<T> handler) Finds the nodes and/or attributes that are matched by the specified key.List<QueryResult<T>>
NodeKeyResolver.resolveKey
(T root, String key, NodeHandler<T> handler) Performs a query for the specified key on the given root node.Method parameters in org.apache.commons.configuration2.tree with type arguments of type QueryResultModifier and TypeMethodDescriptionprotected <T> void
DefaultExpressionEngine.findNodesForKey
(DefaultConfigurationKey.KeyIterator keyPart, T node, Collection<QueryResult<T>> results, NodeHandler<T> handler) Recursive helper method for evaluating a key.private static boolean
InMemoryNodeModel.initializeClearTransaction
(ModelTransaction tx, Collection<QueryResult<ImmutableNode>> results) Initializes a transaction to clear the values of a property based on the passed in collection of affected results.private static boolean
InMemoryNodeModel.initializeUpdateTransaction
(ModelTransaction tx, Map<QueryResult<ImmutableNode>, Object> changedValues) Initializes a transaction to change the values of some query results based on the passed in map.private <T> void
DefaultExpressionEngine.processSubNodes
(DefaultConfigurationKey.KeyIterator keyPart, List<T> subNodes, Collection<QueryResult<T>> nodes, NodeHandler<T> handler) Called byfindNodesForKey()
to process the sub nodes of the current node depending on the type of the current key part (children, attributes, or both).Constructor parameters in org.apache.commons.configuration2.tree with type arguments of type QueryResultModifierConstructorDescriptionNodeUpdateData
(Map<QueryResult<T>, Object> changedValues, Collection<Object> newValues, Collection<QueryResult<T>> removedNodes, String key) Creates a new instance ofNodeUpdateData
and initializes all its properties. -
Uses of QueryResult in org.apache.commons.configuration2.tree.xpath
Fields in org.apache.commons.configuration2.tree.xpath declared as QueryResultModifier and TypeFieldDescriptionprivate final QueryResult<T>
ConfigurationAttributePointer.attributeResult
Stores information about the represented attribute.Methods in org.apache.commons.configuration2.tree.xpath that return QueryResultModifier and TypeMethodDescriptionprivate static <T> QueryResult<T>
XPathExpressionEngine.createResult
(Object resObj) Creates aQueryResult
object from the given result object of a query.Methods in org.apache.commons.configuration2.tree.xpath that return types with arguments of type QueryResultModifier and TypeMethodDescriptionprivate static <T> List<QueryResult<T>>
XPathExpressionEngine.convertResults
(List<?> results) Converts the objects returned as query result from the JXPathContext to query result objects.<T> List<QueryResult<T>>
XPathExpressionEngine.query
(T root, String key, NodeHandler<T> handler) Finds the nodes and/or attributes that are matched by the specified key.Methods in org.apache.commons.configuration2.tree.xpath with parameters of type QueryResultModifier and TypeMethodDescription(package private) <T> NodeAddData<T>
XPathExpressionEngine.createNodeAddData
(String path, QueryResult<T> parentNodeResult) Creates aNodeAddData
object as a result of aprepareAdd()
operation.