1 package net.sourceforge.phpeclipse.wiki.xml;
 
   5 public class Revision {
 
   7    * timeStamp represented in XML format from Wikipedia Special:Export pages
 
   9   /* package private */String timestamp = null;
 
  11   /* package private */String contributor = null;
 
  13   /* package private */String text = null;
 
  15   /* package private */Revision() {
 
  18   public Revision(String timeStamp, String text, String contributor) {
 
  19     this.timestamp = timeStamp;
 
  20     this.contributor = contributor;
 
  24   public Revision(String timeStamp, String text) {
 
  25     this(timeStamp, text, "");
 
  28   public Revision(String text) {
 
  35    * @see java.lang.Object#toString()
 
  37   public String toString() {
 
  38     StringBuffer buffer = new StringBuffer();
 
  40     if (timestamp != null) {
 
  41       buffer.append("  ==>Timestamp: ");
 
  42       buffer.append(timestamp);
 
  46     if (contributor != null) {
 
  47       buffer.append("  ==>Contributor: ");
 
  48       buffer.append(contributor);
 
  53       buffer.append("  ==>Body: ");
 
  57     return buffer.toString();
 
  61    * @return Returns the timestamp.
 
  63   public String getTimestamp() {
 
  68    * @return Returns the contributor.
 
  70   public String getContributor() {
 
  75    * @return Returns the text.
 
  77   public String getText() {