incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1158239 - in /incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces: ConfigurationNode.java IHierarchyParent.java
Date Tue, 16 Aug 2011 12:40:30 GMT
Author: kwright
Date: Tue Aug 16 12:40:30 2011
New Revision: 1158239

URL: http://svn.apache.org/viewvc?rev=1158239&view=rev
Log:
Add clearChildren() to IHierarchyParent, for consistency.

Modified:
    incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/ConfigurationNode.java
    incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/IHierarchyParent.java

Modified: incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/ConfigurationNode.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/ConfigurationNode.java?rev=1158239&r1=1158238&r2=1158239&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/ConfigurationNode.java
(original)
+++ incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/ConfigurationNode.java
Tue Aug 16 12:40:30 2011
@@ -202,6 +202,15 @@ public class ConfigurationNode implement
     children.add(index,child);
   }
 
+  /** Clear children.
+  */
+  public void clearChildren()
+  {
+    if (readOnly)
+      throw new IllegalStateException("Attempt to change read-only object");
+    children.clear();
+  }
+
   /** Set an attribute.
   *@param attribute is the name of the attribute.
   *@param value is the value of the attribute (null to remove it).

Modified: incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/IHierarchyParent.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/IHierarchyParent.java?rev=1158239&r1=1158238&r2=1158239&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/IHierarchyParent.java
(original)
+++ incubator/lcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/IHierarchyParent.java
Tue Aug 16 12:40:30 2011
@@ -28,6 +28,10 @@ public interface IHierarchyParent
 {
   public static final String _rcsid = "@(#)$Id$";
 
+  /** Clear children.
+  */
+  public void clearChildren();
+
    /** Get child count.
   *@return the count.
   */



Mime
View raw message