abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r443014 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/model/Collection.java parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java
Date Wed, 13 Sep 2006 16:23:27 GMT
Author: jmsnell
Date: Wed Sep 13 09:23:27 2006
New Revision: 443014

URL: http://svn.apache.org/viewvc?view=rev&rev=443014
Log:
Add a method for getting directly to the app:accept element

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java?view=diff&rev=443014&r1=443013&r2=443014
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java
Wed Sep 13 09:23:27 2006
@@ -60,6 +60,8 @@
   
   void setHref(String href) throws URISyntaxException;
 
+  Element getAcceptElement();
+  
   String[] getAccept() ;
 
   void setAccept(String... mediaRanges);

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java?view=diff&rev=443014&r1=443013&r2=443014
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java
Wed Sep 13 09:23:27 2006
@@ -27,6 +27,7 @@
 import org.apache.abdera.model.Categories;
 import org.apache.abdera.model.Category;
 import org.apache.abdera.model.Collection;
+import org.apache.abdera.model.Element;
 import org.apache.abdera.model.Text;
 import org.apache.abdera.util.Constants;
 import org.apache.abdera.util.MimeTypeHelper;
@@ -137,6 +138,10 @@
       setAttributeValue(HREF, (new URI(href).toString()));
     else 
       removeAttribute(HREF);
+  }
+  
+  public Element getAcceptElement() {
+    return getFirstChild(ACCEPT);
   }
   
   public String[] getAccept(){



Mime
View raw message