incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfrov...@apache.org
Subject svn commit: r1206661 - in /incubator/droids/trunk/droids-core/src/main/java/org/apache/droids: api/Parse.java parse/ParseImpl.java
Date Sun, 27 Nov 2011 03:57:10 GMT
Author: rfrovarp
Date: Sun Nov 27 03:57:09 2011
New Revision: 1206661

URL: http://svn.apache.org/viewvc?rev=1206661&view=rev
Log:
Move isFollowed into the core so that core modules can test for it.
By default it will always return true to replicate existing behavior.

Modified:
    incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/api/Parse.java
    incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/parse/ParseImpl.java

Modified: incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/api/Parse.java
URL: http://svn.apache.org/viewvc/incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/api/Parse.java?rev=1206661&r1=1206660&r2=1206661&view=diff
==============================================================================
--- incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/api/Parse.java (original)
+++ incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/api/Parse.java Sun
Nov 27 03:57:09 2011
@@ -55,4 +55,10 @@ public interface Parse {
    */
   @Deprecated
   Collection<Link> getOutlinks();
+  
+  /**
+   * Indicates if extracted tasks should be followed.  
+   * @return false if tasks should not be followed, true otherwise.
+   */
+  boolean isFollowed();
 }

Modified: incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/parse/ParseImpl.java
URL: http://svn.apache.org/viewvc/incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/parse/ParseImpl.java?rev=1206661&r1=1206660&r2=1206661&view=diff
==============================================================================
--- incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/parse/ParseImpl.java
(original)
+++ incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/parse/ParseImpl.java
Sun Nov 27 03:57:09 2011
@@ -75,5 +75,13 @@ public class ParseImpl implements Parse 
 	public Collection<Link> getOutlinks() {
         return getNewTasks();
     }
+	
+	/**
+	 * Always returns true.
+	 */
+	@Override
+	public boolean isFollowed() {
+		return true;
+	}
 
 }



Mime
View raw message