You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oh...@apache.org on 2015/05/10 22:23:45 UTC
svn commit: r1678639 -
/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/xpath/XPathExpressionEngine.java
Author: oheger
Date: Sun May 10 20:23:44 2015
New Revision: 1678639
URL: http://svn.apache.org/r1678639
Log:
Javadoc improvements, missing @Override annotations.
Modified:
commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/xpath/XPathExpressionEngine.java
Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/xpath/XPathExpressionEngine.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/xpath/XPathExpressionEngine.java?rev=1678639&r1=1678638&r2=1678639&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/xpath/XPathExpressionEngine.java (original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/xpath/XPathExpressionEngine.java Sun May 10 20:23:44 2015
@@ -192,13 +192,10 @@ public class XPathExpressionEngine imple
}
/**
- * Executes a query. The passed in property key is directly passed to a
- * JXPath context.
- *
- * @param root the configuration root node
- * @param key the query to be executed
- * @return a list with the nodes that are selected by the query
+ * {@inheritDoc} This implementation interprets the passed in key as an XPATH
+ * expression.
*/
+ @Override
public <T> List<QueryResult<T>> query(T root, String key,
NodeHandler<T> handler)
{
@@ -228,6 +225,7 @@ public class XPathExpressionEngine imple
* So all child nodes of a given parent with the same name have the same
* key.
*/
+ @Override
public <T> String nodeKey(T node, String parentKey, NodeHandler<T> handler)
{
if (parentKey == null)
@@ -257,6 +255,7 @@ public class XPathExpressionEngine imple
}
}
+ @Override
public String attributeKey(String parentKey, String attributeName)
{
StringBuilder buf =
@@ -275,6 +274,7 @@ public class XPathExpressionEngine imple
* {@inheritDoc} This implementation works similar to {@code nodeKey()}, but
* always adds an index expression to the resulting key.
*/
+ @Override
public <T> String canonicalKey(T node, String parentKey,
NodeHandler<T> handler)
{
@@ -301,6 +301,7 @@ public class XPathExpressionEngine imple
* {@inheritDoc} The expected format of the passed in key is explained in
* the class comment.
*/
+ @Override
public <T> NodeAddData<T> prepareAdd(T root, String key,
NodeHandler<T> handler)
{