Author: scottbw
Date: Tue May 3 08:37:48 2011
New Revision: 1098965
URL: http://svn.apache.org/viewvc?rev=1098965&view=rev
Log:
Added toXML serialization for Update Description Documents (see WOOKIE-103)
Modified:
incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateDescriptionDocument.java
Modified:
incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateDescriptionDocument.java
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateDescriptionDocument.java?rev=1098965&r1=1098964&r2=1098965&view=diff
==============================================================================
---
incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateDescriptionDocument.java
(original)
+++
incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/updates/UpdateDescriptionDocument.java
Tue May 3 08:37:48 2011
@@ -149,6 +149,16 @@ public class UpdateDescriptionDocument{
}
}
+ public Element toXml(){
+ Element element = new
Element("update-info",IW3CXMLConfiguration.MANIFEST_NAMESPACE);
+ element.setAttribute("version", getVersionTag());
+ element.setAttribute("src", getUpdateSource().toString());
+ for (Details details: this.details){
+ element.addContent(details.toXml());
+ }
+ return element;
+ }
+
/**
* Inner class used to represent Details as a localized entity
*/