package org.soap;

/**
 * A class to represent a WSRF fault.
 * @author Eddie
 *
 */
public class WSRFFault {

	private String timestamp = "";
	private String Description = "";
	private String name = "";
	
	public WSRFFault() {
		this.timestamp = "";
		this.Description = "";
	}

	
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}


	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}


	/**
	 * @return the description
	 */
	public String getDescription() {
		return Description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		Description = description;
	}

	/**
	 * @return the timestamp
	 */
	public String getTimestamp() {
		return timestamp;
	}

	/**
	 * @param timestamp the timestamp to set
	 */
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	
	/*
	 * (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return "Fault ('"+getName()+"')\n\t - Description:\n" + getDescription() + "\n\tTimestamp: " + getTimestamp();
	}
	
}
