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

com.exactpro.sf.messages.testaml.NewQuote Maven / Gradle / Ivy

There is a newer version: 3.4.260
Show newest version
/******************************************************************************
 * Copyright 2009-2018 Exactpro (Exactpro Systems Limited)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package com.exactpro.sf.messages.testaml;

import com.exactpro.sf.common.impl.messages.DefaultMessageFactory;
import com.exactpro.sf.common.impl.messages.BaseMessage;
import com.exactpro.sf.common.messages.IMessageFactory;
import com.exactpro.sf.common.messages.IMessage;
import com.exactpro.sf.common.messages.FieldNotFoundException;
import com.exactpro.sf.aml.scriptutil.StaticUtil.IFilter;

import java.time.LocalDateTime;
import java.time.LocalDate;
import java.time.LocalTime;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.lang.Deprecated;

@SuppressWarnings("unused")
public class NewQuote extends BaseMessage
{
    public static final String MESSAGE_NAME = "NewQuote";
	

	public NewQuote(IMessageFactory messageFactory)
	{
		 this(messageFactory.createMessage(MESSAGE_NAME, (messageFactory.getNamespace() == null) ? "TestAML" : messageFactory.getNamespace()));
	}

	/**
	 * @deprecated Please use {@link #NewQuote(IMessageFactory)}
	 */
	@Deprecated
	public NewQuote()
	{
		this(DefaultMessageFactory.getFactory());
	}

	/**
	 * @deprecated Please use {@link #NewQuote(IMessageFactory)}
	 */
	@Deprecated
    public NewQuote(String name, String namespace)
    {
        super(DefaultMessageFactory.getFactory().createMessage(name, namespace));
    }

	public NewQuote(IMessage msg)
	{
		super(msg);
	}

    @Override
    public NewQuote clone() {
        return (NewQuote)super.clone();
    }

	

	
		
			
				public NewQuote setClOrdID(String value)
				{
					this.msg.addField("ClOrdID", value);
					return this;
				}
	
				
	
				public String getClOrdID()
				{
					Object value = this.msg.getField("ClOrdID");
	
					
	
					return (String)value;
				}

                
                public Object getUntypedClOrdID()
                {
                    return this.msg.getField("ClOrdID");
                }
                
			
			
            public IFilter getClOrdIDFilter()
            {
                return this.msg.getField("ClOrdID");
            }

            public NewQuote setClOrdIDFilter(IFilter filter)
            {
                this.msg.addField("ClOrdID", filter);
                return this;
            }

            public NewQuote removeClOrdID()
            {
                this.msg.removeField("ClOrdID");
                return this;
            }

			public boolean isSetClOrdID()
			{
				return this.msg.getField("ClOrdID") != null;
			}

            public boolean isFilterClOrdID()
            {
                return this.msg.getField("ClOrdID") instanceof IFilter;
            }
		
			
				public NewQuote setInstrumentID(int value)
				{
					this.msg.addField("InstrumentID", value);
					return this;
				}
	
				
	
				public int getInstrumentID()
				{
					Object value = this.msg.getField("InstrumentID");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" InstrumentID ");
						}
					
	
					return (Integer)value;
				}

                
                public Object getUntypedInstrumentID()
                {
                    return this.msg.getField("InstrumentID");
                }
                
			
			
            public IFilter getInstrumentIDFilter()
            {
                return this.msg.getField("InstrumentID");
            }

            public NewQuote setInstrumentIDFilter(IFilter filter)
            {
                this.msg.addField("InstrumentID", filter);
                return this;
            }

            public NewQuote removeInstrumentID()
            {
                this.msg.removeField("InstrumentID");
                return this;
            }

			public boolean isSetInstrumentID()
			{
				return this.msg.getField("InstrumentID") != null;
			}

            public boolean isFilterInstrumentID()
            {
                return this.msg.getField("InstrumentID") instanceof IFilter;
            }
		
			
				public NewQuote setBidPrice(double value)
				{
					this.msg.addField("BidPrice", value);
					return this;
				}
	
				
	
				public double getBidPrice()
				{
					Object value = this.msg.getField("BidPrice");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" BidPrice ");
						}
					
	
					return (Double)value;
				}

                
                public Object getUntypedBidPrice()
                {
                    return this.msg.getField("BidPrice");
                }
                
			
			
            public IFilter getBidPriceFilter()
            {
                return this.msg.getField("BidPrice");
            }

            public NewQuote setBidPriceFilter(IFilter filter)
            {
                this.msg.addField("BidPrice", filter);
                return this;
            }

            public NewQuote removeBidPrice()
            {
                this.msg.removeField("BidPrice");
                return this;
            }

			public boolean isSetBidPrice()
			{
				return this.msg.getField("BidPrice") != null;
			}

            public boolean isFilterBidPrice()
            {
                return this.msg.getField("BidPrice") instanceof IFilter;
            }
		
			
				public NewQuote setBidSize(long value)
				{
					this.msg.addField("BidSize", value);
					return this;
				}
	
				
	
				public long getBidSize()
				{
					Object value = this.msg.getField("BidSize");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" BidSize ");
						}
					
	
					return (Long)value;
				}

                
                public Object getUntypedBidSize()
                {
                    return this.msg.getField("BidSize");
                }
                
			
			
            public IFilter getBidSizeFilter()
            {
                return this.msg.getField("BidSize");
            }

            public NewQuote setBidSizeFilter(IFilter filter)
            {
                this.msg.addField("BidSize", filter);
                return this;
            }

            public NewQuote removeBidSize()
            {
                this.msg.removeField("BidSize");
                return this;
            }

			public boolean isSetBidSize()
			{
				return this.msg.getField("BidSize") != null;
			}

            public boolean isFilterBidSize()
            {
                return this.msg.getField("BidSize") instanceof IFilter;
            }
		
			
				public NewQuote setAskPrice(double value)
				{
					this.msg.addField("AskPrice", value);
					return this;
				}
	
				
	
				public double getAskPrice()
				{
					Object value = this.msg.getField("AskPrice");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" AskPrice ");
						}
					
	
					return (Double)value;
				}

                
                public Object getUntypedAskPrice()
                {
                    return this.msg.getField("AskPrice");
                }
                
			
			
            public IFilter getAskPriceFilter()
            {
                return this.msg.getField("AskPrice");
            }

            public NewQuote setAskPriceFilter(IFilter filter)
            {
                this.msg.addField("AskPrice", filter);
                return this;
            }

            public NewQuote removeAskPrice()
            {
                this.msg.removeField("AskPrice");
                return this;
            }

			public boolean isSetAskPrice()
			{
				return this.msg.getField("AskPrice") != null;
			}

            public boolean isFilterAskPrice()
            {
                return this.msg.getField("AskPrice") instanceof IFilter;
            }
		
			
				public NewQuote setAskSize(long value)
				{
					this.msg.addField("AskSize", value);
					return this;
				}
	
				
	
				public long getAskSize()
				{
					Object value = this.msg.getField("AskSize");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" AskSize ");
						}
					
	
					return (Long)value;
				}

                
                public Object getUntypedAskSize()
                {
                    return this.msg.getField("AskSize");
                }
                
			
			
            public IFilter getAskSizeFilter()
            {
                return this.msg.getField("AskSize");
            }

            public NewQuote setAskSizeFilter(IFilter filter)
            {
                this.msg.addField("AskSize", filter);
                return this;
            }

            public NewQuote removeAskSize()
            {
                this.msg.removeField("AskSize");
                return this;
            }

			public boolean isSetAskSize()
			{
				return this.msg.getField("AskSize") != null;
			}

            public boolean isFilterAskSize()
            {
                return this.msg.getField("AskSize") instanceof IFilter;
            }
		
			
				public NewQuote setClearingAccount(com.exactpro.sf.messages.testaml.components.ClearingAccount value)
				{
					this.msg.addField("ClearingAccount", value.getValue());
					return this;
				}
	
				
					public NewQuote setClearingAccount(Integer value)
					{
						this.msg.addField("ClearingAccount", value);
						return this;
					}

                    public Integer getRawClearingAccount()
                    {
                        Integer value = this.msg.getField("ClearingAccount");
                        if(value == null)
                        {
                            throw new FieldNotFoundException(" ClearingAccount ");
                        }
                        return value;
                    }
				
	
				public com.exactpro.sf.messages.testaml.components.ClearingAccount getClearingAccount()
				{
					Object value = this.msg.getField("ClearingAccount");
	
					
	
					return com.exactpro.sf.messages.testaml.components.ClearingAccount.getEnumValue((Integer)value);
				}

                
                public Object getUntypedClearingAccount()
                {
                    return this.msg.getField("ClearingAccount");
                }
                
			
			
            public IFilter getClearingAccountFilter()
            {
                return this.msg.getField("ClearingAccount");
            }

            public NewQuote setClearingAccountFilter(IFilter filter)
            {
                this.msg.addField("ClearingAccount", filter);
                return this;
            }

            public NewQuote removeClearingAccount()
            {
                this.msg.removeField("ClearingAccount");
                return this;
            }

			public boolean isSetClearingAccount()
			{
				return this.msg.getField("ClearingAccount") != null;
			}

            public boolean isFilterClearingAccount()
            {
                return this.msg.getField("ClearingAccount") instanceof IFilter;
            }
		
			
				public NewQuote setCapacity(int value)
				{
					this.msg.addField("Capacity", value);
					return this;
				}
	
				
	
				public int getCapacity()
				{
					Object value = this.msg.getField("Capacity");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" Capacity ");
						}
					
	
					return (Integer)value;
				}

                
                public Object getUntypedCapacity()
                {
                    return this.msg.getField("Capacity");
                }
                
			
			
            public IFilter getCapacityFilter()
            {
                return this.msg.getField("Capacity");
            }

            public NewQuote setCapacityFilter(IFilter filter)
            {
                this.msg.addField("Capacity", filter);
                return this;
            }

            public NewQuote removeCapacity()
            {
                this.msg.removeField("Capacity");
                return this;
            }

			public boolean isSetCapacity()
			{
				return this.msg.getField("Capacity") != null;
			}

            public boolean isFilterCapacity()
            {
                return this.msg.getField("Capacity") instanceof IFilter;
            }
		
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy