Upload/Download of multiple files now possible
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / actions / mediawiki / connect / Parsed.java
index d6f282c..c8bb20d 100644 (file)
@@ -1,4 +1,5 @@
 package net.sourceforge.phpeclipse.wiki.actions.mediawiki.connect;
+
 //Parts of this sources are copied and modified from the jEdit Wikipedia plugin:
 //http://www.djini.de/software/wikipedia/index.html
 //
@@ -6,15 +7,71 @@ package net.sourceforge.phpeclipse.wiki.actions.mediawiki.connect;
 //with permission from the original author: Daniel Wunsch
 
 public class Parsed {
-  String timestamp;
+  /**
+   * 6lt;page6gt; XML data from Wikipedia Special:Export pages
+   * may be <code>null</code>
+   * 
+   */
+  /*package private*/ String xmlData=null; 
+  /**
+   * timeStamp represented in XML format from Wikipedia Special:Export pages
+   */
+  /*package private*/ String timestamp=null;
+
+  /*package private*/ String title=null;
 
-  String title;
+  /*package private*/ String body=null;
 
-  String body;
+  /*package private*/ Parsed() {
+  }
 
   public Parsed(String timeStamp, String title, String body) {
+    this.xmlData = "";
     this.timestamp = timeStamp;
     this.title = title;
     this.body = body;
   }
+  /* (non-Javadoc)
+   * @see java.lang.Object#toString()
+   */
+  public String toString() {  
+    StringBuffer buffer = new StringBuffer();
+    buffer.append("==>Title:\n");
+    if (title!=null) {
+      buffer.append(title);
+    }
+    buffer.append("==>Timestamp:\n");
+    if (timestamp!=null) {
+      buffer.append(timestamp);
+    }
+    buffer.append("==>Body:\n");
+    if (body!=null) {
+      buffer.append(body);
+    }
+    return buffer.toString();
+  }
+  /**
+   * @return Returns the body.
+   */
+  public String getBody() {
+    return body;
+  }
+  /**
+   * @return Returns the timestamp.
+   */
+  public String getTimestamp() {
+    return timestamp;
+  }
+  /**
+   * @return Returns the title.
+   */
+  public String getTitle() {
+    return title;
+  }
+  /**
+   * @return Returns the xmlData.
+   */
+  public String getXmlData() {
+    return xmlData;
+  }
 }
\ No newline at end of file