You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2008/03/05 19:04:41 UTC

svn commit: r633954 - /incubator/tuscany/java/sca/modules/implementation-data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/Item.java

Author: jsdelfino
Date: Wed Mar  5 10:04:40 2008
New Revision: 633954

URL: http://svn.apache.org/viewvc?rev=633954&view=rev
Log:
Added a field to support 'related' atom links.

Modified:
    incubator/tuscany/java/sca/modules/implementation-data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/Item.java

Modified: incubator/tuscany/java/sca/modules/implementation-data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/Item.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/Item.java?rev=633954&r1=633953&r2=633954&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/Item.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/Item.java Wed Mar  5 10:04:40 2008
@@ -31,6 +31,7 @@
     private String title;
     private String contents;
     private String link;
+    private String related;
     private Date date;
     
     /**
@@ -44,12 +45,14 @@
      * @param title the item title
      * @param contents the item contents
      * @param link the item link to a web resource
+     * @param related the item link to a related web resource
      * @param date the item date
      */
-    public Item(String title, String contents, String link, Date date) {
+    public Item(String title, String contents, String link, String related, Date date) {
         this.title = title;
         this.contents = contents;
         this.link = link;
+        this.related = related;
         this.date = date;
     }
 
@@ -99,6 +102,22 @@
      */
     public void setLink(String link) {
         this.link = link;
+    }
+
+    /**
+     * Returns the item link to a related web resource
+     * @return the item link to a related web resource
+     */
+    public String getRelated() {
+        return related;
+    }
+
+    /**
+     * Sets the item link to a related web resource
+     * @param link the item link to a related web resource
+     */
+    public void setRelated(String related) {
+        this.related = related;
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org