All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.hsr.mas.oms.domain.dto.PriceBar Maven / Gradle / Ivy

The newest version!
package ch.hsr.mas.oms.domain.dto;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
		"date",
		"open",
		"high",
		"low",
		"close",
		"volume"
})
@XmlRootElement(name = "priceBar")
public class PriceBar implements Serializable {

	private static final long serialVersionUID = 2926871352058640299L;
	@XmlElement(name = "Date", required = true)
	protected String date;
	@XmlElement(name = "Open", required = true)
	protected double open;
	@XmlElement(name = "High", required = true)
	protected double high;
	@XmlElement(name = "Low", required = true)
	protected double low;
	@XmlElement(name = "Close", required = true)
	protected double close;
	@XmlElement(name = "Volume")
	protected int volume;

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public double getOpen() {
		return open;
	}

	public void setOpen(Double open) {
		this.open = open;
	}

	public double getHigh() {
		return high;
	}

	public void setHigh(double high) {
		this.high = high;
	}

	public double getLow() {
		return low;
	}

	public void setLow(double low) {
		this.low = low;
	}

	public double getClose() {
		return close;
	}

	public void setClose(double close) {
		this.close = close;
	}

	public int getVolume() {
		return volume;
	}

	public void setVolume(int volume) {
		this.volume = volume;
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy