incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r939699 - in /incubator/droids/trunk/droids-core/src/main/java/org/apache/droids: api/Parse.java parse/ParseImpl.java
Date Fri, 30 Apr 2010 14:57:42 GMT
Author: thorsten
Date: Fri Apr 30 14:57:42 2010
New Revision: 939699

URL: http://svn.apache.org/viewvc?rev=939699&view=rev
Log:
DROIDS-11
Reporter:   Javier Puerto
Patch:   Javier Puerto

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=939699&r1=939698&r2=939699&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 Fri
Apr 30 14:57:42 2010
@@ -43,8 +43,15 @@ public interface Parse {
   Object getData();
 
     /**
-     * Outlinks extracted from the Content Entity
+     * New task extracted from the Content Entity
      * @return
      */
+  Collection<? extends Task> getNewTasks();
+  
+  /**
+   * Outlinks extracted from the Content Entity
+   * @return
+   * @deprecated
+   */
   Collection<Link> getOutlinks();
 }

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=939699&r1=939698&r2=939699&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
Fri Apr 30 14:57:42 2010
@@ -16,11 +16,11 @@
  */
 package org.apache.droids.parse;
 
-import org.apache.droids.api.Parse;
-import org.apache.droids.api.Link;
-
 import java.util.Collection;
 
+import org.apache.droids.api.Link;
+import org.apache.droids.api.Parse;
+
 /**
  * Default implementation of Parse
  *
@@ -60,13 +60,18 @@ public class ParseImpl implements Parse 
         this.data = data;
     }
 
-    public Collection<Link> getOutlinks() {
-        return outlinks;
-    }
-
     public void setOutlinks(Collection<Link> outlinks) {
         this.outlinks = outlinks;
     }
 
+	@Override
+	public Collection<Link> getNewTasks() {
+		return outlinks;
+	}
+	
+	@Override
+	public Collection<Link> getOutlinks() {
+        return getNewTasks();
+    }
 
 }



Mime
View raw message