1 package net.sourceforge.phpeclipse.wiki.actions.mediawiki.connect;
3 //Parts of this sources are copied and modified from the jEdit Wikipedia plugin:
4 //http://www.djini.de/software/wikipedia/index.html
6 //The modified sources are available under the "Common Public License"
7 //with permission from the original author: Daniel Wunsch
11 * 6lt;page6gt; XML data from Wikipedia Special:Export pages
12 * may be <code>null</code>
15 /*package private*/ String xmlData=null;
17 * timeStamp represented in XML format from Wikipedia Special:Export pages
19 /*package private*/ String timestamp=null;
21 /*package private*/ String title=null;
23 /*package private*/ String body=null;
25 /*package private*/ Parsed() {
28 public Parsed(String timeStamp, String title, String body) {
30 this.timestamp = timeStamp;
35 * @see java.lang.Object#toString()
37 public String toString() {
38 StringBuffer buffer = new StringBuffer();
39 buffer.append("==>Title:\n");
43 buffer.append("==>Timestamp:\n");
44 if (timestamp!=null) {
45 buffer.append(timestamp);
47 buffer.append("==>Body:\n");
51 return buffer.toString();
54 * @return Returns the body.
56 public String getBody() {
60 * @return Returns the timestamp.
62 public String getTimestamp() {
66 * @return Returns the title.
68 public String getTitle() {
72 * @return Returns the xmlData.
74 public String getXmlData() {