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

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

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

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

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

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

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

	

	
		
			
				public AddOrder setSide(com.exactpro.sf.messages.testaml.components.SideITCH value)
				{
					this.msg.addField("Side", value.getValue());
					return this;
				}
	
				
					public AddOrder setSide(Short value)
					{
						this.msg.addField("Side", value);
						return this;
					}

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

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

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

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

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

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

            public AddOrder 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 AddOrder setPrice(double value)
				{
					this.msg.addField("Price", value);
					return this;
				}
	
				
	
				public double getPrice()
				{
					Object value = this.msg.getField("Price");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" Price ");
						}
					
	
					return (Double)value;
				}

                
                public Object getUntypedPrice()
                {
                    return this.msg.getField("Price");
                }
                
			
			
            public IFilter getPriceFilter()
            {
                return this.msg.getField("Price");
            }

            public AddOrder setPriceFilter(IFilter filter)
            {
                this.msg.addField("Price", filter);
                return this;
            }

            public AddOrder removePrice()
            {
                this.msg.removeField("Price");
                return this;
            }

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

            public boolean isFilterPrice()
            {
                return this.msg.getField("Price") instanceof IFilter;
            }
		
			
				public AddOrder setOrderID(BigDecimal value)
				{
					this.msg.addField("OrderID", value);
					return this;
				}
	
				
	
				public BigDecimal getOrderID()
				{
					Object value = this.msg.getField("OrderID");
	
					
	
					return (BigDecimal)value;
				}

                
                public Object getUntypedOrderID()
                {
                    return this.msg.getField("OrderID");
                }
                
			
			
            public IFilter getOrderIDFilter()
            {
                return this.msg.getField("OrderID");
            }

            public AddOrder setOrderIDFilter(IFilter filter)
            {
                this.msg.addField("OrderID", filter);
                return this;
            }

            public AddOrder removeOrderID()
            {
                this.msg.removeField("OrderID");
                return this;
            }

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

            public boolean isFilterOrderID()
            {
                return this.msg.getField("OrderID") instanceof IFilter;
            }
		
			
				public AddOrder setQuantity(BigDecimal value)
				{
					this.msg.addField("Quantity", value);
					return this;
				}
	
				
	
				public BigDecimal getQuantity()
				{
					Object value = this.msg.getField("Quantity");
	
					
	
					return (BigDecimal)value;
				}

                
                public Object getUntypedQuantity()
                {
                    return this.msg.getField("Quantity");
                }
                
			
			
            public IFilter getQuantityFilter()
            {
                return this.msg.getField("Quantity");
            }

            public AddOrder setQuantityFilter(IFilter filter)
            {
                this.msg.addField("Quantity", filter);
                return this;
            }

            public AddOrder removeQuantity()
            {
                this.msg.removeField("Quantity");
                return this;
            }

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

            public boolean isFilterQuantity()
            {
                return this.msg.getField("Quantity") instanceof IFilter;
            }
		
			
				public AddOrder setLength(short value)
				{
					this.msg.addField("Length", value);
					return this;
				}
	
				
	
				public short getLength()
				{
					Object value = this.msg.getField("Length");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" Length ");
						}
					
	
					return (Short)value;
				}

                
                public Object getUntypedLength()
                {
                    return this.msg.getField("Length");
                }
                
			
			
            public IFilter getLengthFilter()
            {
                return this.msg.getField("Length");
            }

            public AddOrder setLengthFilter(IFilter filter)
            {
                this.msg.addField("Length", filter);
                return this;
            }

            public AddOrder removeLength()
            {
                this.msg.removeField("Length");
                return this;
            }

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

            public boolean isFilterLength()
            {
                return this.msg.getField("Length") instanceof IFilter;
            }
		
			
				public AddOrder setFlags(short value)
				{
					this.msg.addField("Flags", value);
					return this;
				}
	
				
	
				public short getFlags()
				{
					Object value = this.msg.getField("Flags");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" Flags ");
						}
					
	
					return (Short)value;
				}

                
                public Object getUntypedFlags()
                {
                    return this.msg.getField("Flags");
                }
                
			
			
            public IFilter getFlagsFilter()
            {
                return this.msg.getField("Flags");
            }

            public AddOrder setFlagsFilter(IFilter filter)
            {
                this.msg.addField("Flags", filter);
                return this;
            }

            public AddOrder removeFlags()
            {
                this.msg.removeField("Flags");
                return this;
            }

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

            public boolean isFilterFlags()
            {
                return this.msg.getField("Flags") instanceof IFilter;
            }
		
			
				public AddOrder setMessageType(com.exactpro.sf.messages.testaml.components.MessageType value)
				{
					this.msg.addField("MessageType", value.getValue());
					return this;
				}
	
				
					public AddOrder setMessageType(Short value)
					{
						this.msg.addField("MessageType", value);
						return this;
					}

                    public Short getRawMessageType()
                    {
                        Short value = this.msg.getField("MessageType");
                        if(value == null)
                        {
                            throw new FieldNotFoundException(" MessageType ");
                        }
                        return value;
                    }
				
	
				public com.exactpro.sf.messages.testaml.components.MessageType getMessageType()
				{
					Object value = this.msg.getField("MessageType");
	
					
	
					return com.exactpro.sf.messages.testaml.components.MessageType.getEnumValue((Short)value);
				}

                
                public Object getUntypedMessageType()
                {
                    return this.msg.getField("MessageType");
                }
                
			
			
            public IFilter getMessageTypeFilter()
            {
                return this.msg.getField("MessageType");
            }

            public AddOrder setMessageTypeFilter(IFilter filter)
            {
                this.msg.addField("MessageType", filter);
                return this;
            }

            public AddOrder removeMessageType()
            {
                this.msg.removeField("MessageType");
                return this;
            }

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

            public boolean isFilterMessageType()
            {
                return this.msg.getField("MessageType") instanceof IFilter;
            }
		
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy