package org.marketcetera.event.impl; import javax.annotation.concurrent.ThreadSafe; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import org.marketcetera.event.BidEvent; import org.marketcetera.event.EquityEvent; import org.marketcetera.event.beans.QuoteBean; import org.marketcetera.trade.Equity; import org.marketcetera.util.misc.ClassVersion; /* $License$ */ /** * Provides an Equity implementation of {@link BidEvent}. * * @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a> * @version $Id: EquityBidEventImpl.java 16854 2014-03-12 01:54:42Z colin $ * @since 2.0.0 */ @ThreadSafe @XmlRootElement(name="equityBid") @XmlAccessorType(XmlAccessType.NONE) @ClassVersion("$Id: EquityBidEventImpl.java 16854 2014-03-12 01:54:42Z colin $") public class EquityBidEventImpl extends AbstractQuoteEventImpl implements BidEvent, EquityEvent { /* (non-Javadoc) * @see org.marketcetera.event.HasEquity#getInstrument() */ @Override public Equity getInstrument() { return (Equity)super.getInstrument(); } /** * Create a new EquityBidEventImpl instance. * * @param inQuote a <code>QuoteBean</code> value * @throws IllegalArgumentException if <code>MessageId</code> < 0 * @throws IllegalArgumentException if <code>Timestamp</code> is <code>null</code> * @throws IllegalArgumentException if <code>Instrument</code> is <code>null</code> * @throws IllegalArgumentException if <code>Price</code> is <code>null</code> * @throws IllegalArgumentException if <code>Size</code> is <code>null</code> * @throws IllegalArgumentException if <code>Exchange</code> is <code>null</code> or empty * @throws IllegalArgumentException if <code>ExchangeTimestamp</code> is <code>null</code> or empty * @throws IllegalArgumentException if <code>Action</code> is <code>null</code> */ EquityBidEventImpl(QuoteBean inQuote) { super(inQuote); } /* (non-Javadoc) * @see org.marketcetera.event.impl.AbstractQuoteEventImpl#getDescription() */ @Override protected String getDescription() { return description; } /** * Create a new EquityBidEventImpl instance. * * <p>Intended to be used by JAXB only. */ @SuppressWarnings("unused") private EquityBidEventImpl() {} /** * provides a human-readable description of this event type (does not need to be localized) */ private static final String description = "Equity Bid"; //$NON-NLS-1$ private static final long serialVersionUID = 1L; }