Upload/Download of multiple files now possible
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / actions / mediawiki / connect / Parsed.java
1 package net.sourceforge.phpeclipse.wiki.actions.mediawiki.connect;
2
3 //Parts of this sources are copied and modified from the jEdit Wikipedia plugin:
4 //http://www.djini.de/software/wikipedia/index.html
5 //
6 //The modified sources are available under the "Common Public License"
7 //with permission from the original author: Daniel Wunsch
8
9 public class Parsed {
10   /**
11    * 6lt;page6gt; XML data from Wikipedia Special:Export pages
12    * may be <code>null</code>
13    * 
14    */
15   /*package private*/ String xmlData=null; 
16   /**
17    * timeStamp represented in XML format from Wikipedia Special:Export pages
18    */
19   /*package private*/ String timestamp=null;
20
21   /*package private*/ String title=null;
22
23   /*package private*/ String body=null;
24
25   /*package private*/ Parsed() {
26   }
27
28   public Parsed(String timeStamp, String title, String body) {
29     this.xmlData = "";
30     this.timestamp = timeStamp;
31     this.title = title;
32     this.body = body;
33   }
34   /* (non-Javadoc)
35    * @see java.lang.Object#toString()
36    */
37   public String toString() {  
38     StringBuffer buffer = new StringBuffer();
39     buffer.append("==>Title:\n");
40     if (title!=null) {
41       buffer.append(title);
42     }
43     buffer.append("==>Timestamp:\n");
44     if (timestamp!=null) {
45       buffer.append(timestamp);
46     }
47     buffer.append("==>Body:\n");
48     if (body!=null) {
49       buffer.append(body);
50     }
51     return buffer.toString();
52   }
53   /**
54    * @return Returns the body.
55    */
56   public String getBody() {
57     return body;
58   }
59   /**
60    * @return Returns the timestamp.
61    */
62   public String getTimestamp() {
63     return timestamp;
64   }
65   /**
66    * @return Returns the title.
67    */
68   public String getTitle() {
69     return title;
70   }
71   /**
72    * @return Returns the xmlData.
73    */
74   public String getXmlData() {
75     return xmlData;
76   }
77 }