abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r669500 - in /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax: FOMEntry.java FOMSource.java
Date Thu, 19 Jun 2008 15:00:39 GMT
Author: jmsnell
Date: Thu Jun 19 08:00:39 2008
New Revision: 669500

URL: http://svn.apache.org/viewvc?rev=669500&view=rev
Log:
Entry.setSummary(Div) and other text construct methods that accept the Div input had a major
bug as reported by M Harris on the dev list. Fixed with this patch

Modified:
    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/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=669500&r1=669499&r2=669500&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
Thu Jun 19 08:00:39 2008
@@ -565,7 +565,8 @@
   
   public Text setRights(Div value) {
     FOMFactory factory = (FOMFactory)this.factory;
-    Text text = factory.newRights(value);
+    Text text = factory.newRights(Text.Type.XHTML);
+    text.setValueElement(value);
     setRightsElement(text);
     return text;
   }
@@ -625,9 +626,10 @@
     return text;
   }
   
-  public Text setSummary(Div value) {
+  public Text setSummary(Div value){
     FOMFactory factory = (FOMFactory)this.factory;
-    Text text = factory.newSummary(value);
+    Text text = factory.newSummary(Text.Type.XHTML);
+    text.setValueElement(value);
     setSummaryElement(text);
     return text;
   }
@@ -673,7 +675,8 @@
   
   public Text setTitle(Div value) {
     FOMFactory factory = (FOMFactory)this.factory;
-    Text text = factory.newTitle(value);
+    Text text = factory.newTitle(Text.Type.XHTML);
+    text.setValueElement(value);
     setTitleElement(text);
     return text;
   }

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?rev=669500&r1=669499&r2=669500&view=diff
==============================================================================
--- 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
Thu Jun 19 08:00:39 2008
@@ -331,7 +331,8 @@
   
   public Text setRights(Div value) {
     FOMFactory factory = (FOMFactory)this.factory;
-    Text text = factory.newRights(value);
+    Text text = factory.newRights(Text.Type.XHTML);
+    text.setValueElement(value);
     setRightsElement(text);
     return text;
   }
@@ -377,7 +378,8 @@
   
   public Text setSubtitle(Div value) {
     FOMFactory factory = (FOMFactory)this.factory;
-    Text text = factory.newSubtitle(value);
+    Text text = factory.newSubtitle(Text.Type.XHTML);
+    text.setValueElement(value);
     setSubtitleElement(text);
     return text;
   }
@@ -423,7 +425,8 @@
   
   public Text setTitle(Div value) {
     FOMFactory factory = (FOMFactory)this.factory;
-    Text text = factory.newTitle(value);
+    Text text = factory.newTitle(Text.Type.XHTML);
+    text.setValueElement(value);
     setTitleElement(text);
     return text;
   }



Mime
View raw message