abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r523456 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/model/ parser/src/main/java/org/apache/abdera/parser/stax/
Date Wed, 28 Mar 2007 20:39:22 GMT
Author: jmsnell
Date: Wed Mar 28 13:39:20 2007
New Revision: 523456

URL: http://svn.apache.org/viewvc?view=rev&rev=523456
Log:
Utility method for creating a new randomized atom:id for a new entry...

e.g.

Entry entry = abdera.newEntry();
entry.newId();
...


Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Source.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMSource.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java?view=diff&rev=523456&r1=523455&r2=523456
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java Wed
Mar 28 13:39:20 2007
@@ -349,6 +349,11 @@
   IRIElement setId(String id) throws IRISyntaxException;
   
   /**
+   * Creates a new randomized atom:id for the entry
+   */
+  IRIElement newId() throws IRISyntaxException;
+  
+  /**
    * Sets the universally unique identifier for this entry
    * @param id The atom:id value
    * @param normalize true if the atom:id value should be normalized as called for by RFC4287

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Source.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Source.java?view=diff&rev=523456&r1=523455&r2=523456
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Source.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Source.java Wed
Mar 28 13:39:20 2007
@@ -270,6 +270,11 @@
   IRIElement setId(String id) throws IRISyntaxException;
   
   /**
+   * Creates a new randomized atom:id for the entry
+   */
+  IRIElement newId() throws IRISyntaxException;
+  
+  /**
    * Sets the universally unique identifier for this feed
    * @param id The atom:id value
    * @param normalize True if the atom:id value should be normalized

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java?view=diff&rev=523456&r1=523455&r2=523456
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
Wed Mar 28 13:39:20 2007
@@ -330,6 +330,10 @@
     return setId(value, false);
   }
   
+  public IRIElement newId() throws IRISyntaxException {
+    return setId(this.getFactory().newUuidUri(), false);
+  }
+  
   public IRIElement setId(String value, boolean normalize) throws IRISyntaxException {
     if (value == null) {
       _removeChildren(ID, false);

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMSource.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMSource.java?view=diff&rev=523456&r1=523455&r2=523456
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMSource.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMSource.java
Wed Mar 28 13:39:20 2007
@@ -209,6 +209,10 @@
   public IRIElement setId(String value) throws IRISyntaxException {
     return setId(value, false);
   }
+  
+  public IRIElement newId() throws IRISyntaxException {
+    return setId(this.getFactory().newUuidUri(), false);
+  }
     
   public IRIElement setId(String value, boolean normalize) throws IRISyntaxException {
     if (value == null) {



Mime
View raw message