commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1565789 - /commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java
Date Fri, 07 Feb 2014 20:31:32 GMT
Author: oheger
Date: Fri Feb  7 20:31:31 2014
New Revision: 1565789

URL: http://svn.apache.org/r1565789
Log:
Changes on ConfigurationNodePointer related to managing a NodeHandler.

These changes are required for adapting the NodeIterator implementations to
work with arbitrary node types supported by a NodeHandler.

Modified:
    commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java

Modified: commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java?rev=1565789&r1=1565788&r2=1565789&view=diff
==============================================================================
--- commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java
(original)
+++ commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java
Fri Feb  7 20:31:31 2014
@@ -20,6 +20,7 @@ import java.util.List;
 import java.util.Locale;
 
 import org.apache.commons.configuration.tree.ConfigurationNode;
+import org.apache.commons.configuration.tree.NodeHandler;
 import org.apache.commons.jxpath.ri.Compiler;
 import org.apache.commons.jxpath.ri.QName;
 import org.apache.commons.jxpath.ri.compiler.NodeTest;
@@ -41,7 +42,7 @@ import org.apache.commons.jxpath.ri.mode
  * Configuration team</a>
  * @version $Id$
  */
-class ConfigurationNodePointer extends NodePointer
+class ConfigurationNodePointer<T> extends NodePointer
 {
     /**
      * The serial version UID.
@@ -63,6 +64,13 @@ class ConfigurationNodePointer extends N
         this.node = node;
     }
 
+    public ConfigurationNodePointer(T node, Locale locale, NodeHandler<T> handler)
+    {
+        super(null, locale);
+        //TODO implementation
+        throw new UnsupportedOperationException("Not yet implemented!");
+    }
+
     /**
      * Creates a new instance of {@code ConfigurationNodePointer} and
      * initializes it with its parent pointer.
@@ -76,6 +84,14 @@ class ConfigurationNodePointer extends N
         this.node = node;
     }
 
+    public ConfigurationNodePointer(ConfigurationNodePointer<T> parent, T node,
+            NodeHandler<T> handler)
+    {
+        super(parent);
+        // TODO implementation
+        throw new UnsupportedOperationException("Not yet implemented!");
+    }
+
     /**
      * Returns a flag whether this node is a leaf. This is the case if there are
      * no child nodes.
@@ -267,4 +283,19 @@ class ConfigurationNodePointer extends N
         }
         return super.testNode(test);
     }
+
+    public NodeHandler<T> getNodeHandler() {
+        //TODO implementation
+        throw new UnsupportedOperationException("Not yet implemented!");
+    }
+
+    /**
+     * Returns the wrapped configuration node.
+     * @return the wrapped configuration node
+     */
+    public T getConfigurationNode()
+    {
+        //TODO implementation
+        throw new UnsupportedOperationException("Not yet implemented!");
+    }
 }



Mime
View raw message