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

com.exactpro.sf.messages.testaml.NewOrder 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 NewOrder extends BaseMessage
{
    public static final String MESSAGE_NAME = "NewOrder";
	

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

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

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

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

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

	

	
		
			
				public NewOrder 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 NewOrder setClOrdIDFilter(IFilter filter)
            {
                this.msg.addField("ClOrdID", filter);
                return this;
            }

            public NewOrder 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 NewOrder setSide(com.exactpro.sf.messages.testaml.components.SideNTG value)
				{
					this.msg.addField("Side", value.getValue());
					return this;
				}
	
				
					public NewOrder setSide(Integer value)
					{
						this.msg.addField("Side", value);
						return this;
					}

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

                
                public Object getUntypedSide()
                {
                    return this.msg.getField("Side");
                }
                
			
			
            public IFilter getSideFilter()
            {
                return this.msg.getField("Side");
            }

            public NewOrder setSideFilter(IFilter filter)
            {
                this.msg.addField("Side", filter);
                return this;
            }

            public NewOrder removeSide()
            {
                this.msg.removeField("Side");
                return this;
            }

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

            public boolean isFilterSide()
            {
                return this.msg.getField("Side") instanceof IFilter;
            }
		
			
				public NewOrder 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 NewOrder setInstrumentIDFilter(IFilter filter)
            {
                this.msg.addField("InstrumentID", filter);
                return this;
            }

            public NewOrder 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 NewOrder setOrdQty(long value)
				{
					this.msg.addField("OrdQty", value);
					return this;
				}
	
				
	
				public long getOrdQty()
				{
					Object value = this.msg.getField("OrdQty");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" OrdQty ");
						}
					
	
					return (Long)value;
				}

                
                public Object getUntypedOrdQty()
                {
                    return this.msg.getField("OrdQty");
                }
                
			
			
            public IFilter getOrdQtyFilter()
            {
                return this.msg.getField("OrdQty");
            }

            public NewOrder setOrdQtyFilter(IFilter filter)
            {
                this.msg.addField("OrdQty", filter);
                return this;
            }

            public NewOrder removeOrdQty()
            {
                this.msg.removeField("OrdQty");
                return this;
            }

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

            public boolean isFilterOrdQty()
            {
                return this.msg.getField("OrdQty") instanceof IFilter;
            }
		
			
				public NewOrder setDisplayQty(long value)
				{
					this.msg.addField("DisplayQty", value);
					return this;
				}
	
				
	
				public long getDisplayQty()
				{
					Object value = this.msg.getField("DisplayQty");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" DisplayQty ");
						}
					
	
					return (Long)value;
				}

                
                public Object getUntypedDisplayQty()
                {
                    return this.msg.getField("DisplayQty");
                }
                
			
			
            public IFilter getDisplayQtyFilter()
            {
                return this.msg.getField("DisplayQty");
            }

            public NewOrder setDisplayQtyFilter(IFilter filter)
            {
                this.msg.addField("DisplayQty", filter);
                return this;
            }

            public NewOrder removeDisplayQty()
            {
                this.msg.removeField("DisplayQty");
                return this;
            }

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

            public boolean isFilterDisplayQty()
            {
                return this.msg.getField("DisplayQty") instanceof IFilter;
            }
		
			
				public NewOrder setTimeInForce(com.exactpro.sf.messages.testaml.components.TimeInForceNTG value)
				{
					this.msg.addField("TimeInForce", value.getValue());
					return this;
				}
	
				
					public NewOrder setTimeInForce(Integer value)
					{
						this.msg.addField("TimeInForce", value);
						return this;
					}

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

                
                public Object getUntypedTimeInForce()
                {
                    return this.msg.getField("TimeInForce");
                }
                
			
			
            public IFilter getTimeInForceFilter()
            {
                return this.msg.getField("TimeInForce");
            }

            public NewOrder setTimeInForceFilter(IFilter filter)
            {
                this.msg.addField("TimeInForce", filter);
                return this;
            }

            public NewOrder removeTimeInForce()
            {
                this.msg.removeField("TimeInForce");
                return this;
            }

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

            public boolean isFilterTimeInForce()
            {
                return this.msg.getField("TimeInForce") instanceof IFilter;
            }
		
			
				public NewOrder setLimitPrice(double value)
				{
					this.msg.addField("LimitPrice", value);
					return this;
				}
	
				
	
				public double getLimitPrice()
				{
					Object value = this.msg.getField("LimitPrice");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" LimitPrice ");
						}
					
	
					return (Double)value;
				}

                
                public Object getUntypedLimitPrice()
                {
                    return this.msg.getField("LimitPrice");
                }
                
			
			
            public IFilter getLimitPriceFilter()
            {
                return this.msg.getField("LimitPrice");
            }

            public NewOrder setLimitPriceFilter(IFilter filter)
            {
                this.msg.addField("LimitPrice", filter);
                return this;
            }

            public NewOrder removeLimitPrice()
            {
                this.msg.removeField("LimitPrice");
                return this;
            }

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

            public boolean isFilterLimitPrice()
            {
                return this.msg.getField("LimitPrice") instanceof IFilter;
            }
		
			
				public NewOrder setOrderType(com.exactpro.sf.messages.testaml.components.OrderType value)
				{
					this.msg.addField("OrderType", value.getValue());
					return this;
				}
	
				
					public NewOrder setOrderType(Integer value)
					{
						this.msg.addField("OrderType", value);
						return this;
					}

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

                
                public Object getUntypedOrderType()
                {
                    return this.msg.getField("OrderType");
                }
                
			
			
            public IFilter getOrderTypeFilter()
            {
                return this.msg.getField("OrderType");
            }

            public NewOrder setOrderTypeFilter(IFilter filter)
            {
                this.msg.addField("OrderType", filter);
                return this;
            }

            public NewOrder removeOrderType()
            {
                this.msg.removeField("OrderType");
                return this;
            }

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

            public boolean isFilterOrderType()
            {
                return this.msg.getField("OrderType") instanceof IFilter;
            }
		
			
				public NewOrder setOrderSubType(com.exactpro.sf.messages.testaml.components.OrderSubType value)
				{
					this.msg.addField("OrderSubType", value.getValue());
					return this;
				}
	
				
					public NewOrder setOrderSubType(Integer value)
					{
						this.msg.addField("OrderSubType", value);
						return this;
					}

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

                
                public Object getUntypedOrderSubType()
                {
                    return this.msg.getField("OrderSubType");
                }
                
			
			
            public IFilter getOrderSubTypeFilter()
            {
                return this.msg.getField("OrderSubType");
            }

            public NewOrder setOrderSubTypeFilter(IFilter filter)
            {
                this.msg.addField("OrderSubType", filter);
                return this;
            }

            public NewOrder removeOrderSubType()
            {
                this.msg.removeField("OrderSubType");
                return this;
            }

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

            public boolean isFilterOrderSubType()
            {
                return this.msg.getField("OrderSubType") instanceof IFilter;
            }
		
			
				public NewOrder setClearingAccount(com.exactpro.sf.messages.testaml.components.ClearingAccount value)
				{
					this.msg.addField("ClearingAccount", value.getValue());
					return this;
				}
	
				
					public NewOrder 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 NewOrder setClearingAccountFilter(IFilter filter)
            {
                this.msg.addField("ClearingAccount", filter);
                return this;
            }

            public NewOrder 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 NewOrder 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 NewOrder setCapacityFilter(IFilter filter)
            {
                this.msg.addField("Capacity", filter);
                return this;
            }

            public NewOrder 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;
            }
		
			
				public NewOrder 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 NewOrder setBidSizeFilter(IFilter filter)
            {
                this.msg.addField("BidSize", filter);
                return this;
            }

            public NewOrder 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;
            }
		
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy