abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r432046 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/model/Entry.java parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
Date Wed, 16 Aug 2006 21:57:15 GMT
Author: jmsnell
Date: Wed Aug 16 14:57:14 2006
New Revision: 432046

URL: http://svn.apache.org/viewvc?rev=432046&view=rev
Log:
Add a getContentSrc() attribute to Entry to support easier access to the content/@src attribute

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.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?rev=432046&r1=432045&r2=432046&view=diff
==============================================================================
--- 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
Aug 16 14:57:14 2006
@@ -230,6 +230,12 @@
   String getContent();
   
   /**
+   * Returns the content/@src attribute, if any
+   * @throws URISyntaxException 
+   */
+  URI getContentSrc() throws URISyntaxException;
+  
+  /**
    * Returns the content type
    */
   Content.Type getContentType();

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?rev=432046&r1=432045&r2=432046&view=diff
==============================================================================
--- 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 Aug 16 14:57:14 2006
@@ -679,6 +679,11 @@
     return (content != null) ? content.getValue() : null;
   }
   
+  public URI getContentSrc() throws URISyntaxException {
+    Content content = getContentElement();
+    return (content != null) ? content.getResolvedSrc() : null;
+  }
+  
   public Type getContentType() {
     Content content = getContentElement();
     return (content != null) ? content.getContentType() : null;



Mime
View raw message