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

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

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

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

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

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

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

	

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

            public OrderCancelReplaceRequest 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 OrderCancelReplaceRequest setTransactTime(LocalDateTime value)
				{
					this.msg.addField("TransactTime", value);
					return this;
				}
	
				
	
				public LocalDateTime getTransactTime()
				{
					Object value = this.msg.getField("TransactTime");
	
					
	
					return (LocalDateTime)value;
				}

                
                public Object getUntypedTransactTime()
                {
                    return this.msg.getField("TransactTime");
                }
                
			
			
            public IFilter getTransactTimeFilter()
            {
                return this.msg.getField("TransactTime");
            }

            public OrderCancelReplaceRequest setTransactTimeFilter(IFilter filter)
            {
                this.msg.addField("TransactTime", filter);
                return this;
            }

            public OrderCancelReplaceRequest removeTransactTime()
            {
                this.msg.removeField("TransactTime");
                return this;
            }

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

            public boolean isFilterTransactTime()
            {
                return this.msg.getField("TransactTime") instanceof IFilter;
            }
		
			
				public OrderCancelReplaceRequest setTransactTimeOnly(LocalTime value)
				{
					this.msg.addField("TransactTimeOnly", value);
					return this;
				}
	
				
	
				public LocalTime getTransactTimeOnly()
				{
					Object value = this.msg.getField("TransactTimeOnly");
	
					
	
					return (LocalTime)value;
				}

                
                public Object getUntypedTransactTimeOnly()
                {
                    return this.msg.getField("TransactTimeOnly");
                }
                
			
			
            public IFilter getTransactTimeOnlyFilter()
            {
                return this.msg.getField("TransactTimeOnly");
            }

            public OrderCancelReplaceRequest setTransactTimeOnlyFilter(IFilter filter)
            {
                this.msg.addField("TransactTimeOnly", filter);
                return this;
            }

            public OrderCancelReplaceRequest removeTransactTimeOnly()
            {
                this.msg.removeField("TransactTimeOnly");
                return this;
            }

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

            public boolean isFilterTransactTimeOnly()
            {
                return this.msg.getField("TransactTimeOnly") instanceof IFilter;
            }
		
			
				public OrderCancelReplaceRequest setTransactDateOnly(LocalDate value)
				{
					this.msg.addField("TransactDateOnly", value);
					return this;
				}
	
				
	
				public LocalDate getTransactDateOnly()
				{
					Object value = this.msg.getField("TransactDateOnly");
	
					
	
					return (LocalDate)value;
				}

                
                public Object getUntypedTransactDateOnly()
                {
                    return this.msg.getField("TransactDateOnly");
                }
                
			
			
            public IFilter getTransactDateOnlyFilter()
            {
                return this.msg.getField("TransactDateOnly");
            }

            public OrderCancelReplaceRequest setTransactDateOnlyFilter(IFilter filter)
            {
                this.msg.addField("TransactDateOnly", filter);
                return this;
            }

            public OrderCancelReplaceRequest removeTransactDateOnly()
            {
                this.msg.removeField("TransactDateOnly");
                return this;
            }

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

            public boolean isFilterTransactDateOnly()
            {
                return this.msg.getField("TransactDateOnly") instanceof IFilter;
            }
		
			
				public OrderCancelReplaceRequest setSide(com.exactpro.sf.messages.testaml.components.Side value)
				{
					this.msg.addField("Side", value.getValue());
					return this;
				}
	
				
					public OrderCancelReplaceRequest setSide(Character value)
					{
						this.msg.addField("Side", value);
						return this;
					}

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

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

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

            public OrderCancelReplaceRequest 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 OrderCancelReplaceRequest setSymbol(String value)
				{
					this.msg.addField("Symbol", value);
					return this;
				}
	
				
	
				public String getSymbol()
				{
					Object value = this.msg.getField("Symbol");
	
					
	
					return (String)value;
				}

                
                public Object getUntypedSymbol()
                {
                    return this.msg.getField("Symbol");
                }
                
			
			
            public IFilter getSymbolFilter()
            {
                return this.msg.getField("Symbol");
            }

            public OrderCancelReplaceRequest setSymbolFilter(IFilter filter)
            {
                this.msg.addField("Symbol", filter);
                return this;
            }

            public OrderCancelReplaceRequest removeSymbol()
            {
                this.msg.removeField("Symbol");
                return this;
            }

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

            public boolean isFilterSymbol()
            {
                return this.msg.getField("Symbol") instanceof IFilter;
            }
		
			
				public OrderCancelReplaceRequest setOrdType(com.exactpro.sf.messages.testaml.components.OrdType value)
				{
					this.msg.addField("OrdType", value.getValue());
					return this;
				}
	
				
					public OrderCancelReplaceRequest setOrdType(Character value)
					{
						this.msg.addField("OrdType", value);
						return this;
					}

                    public Character getRawOrdType()
                    {
                        Character value = this.msg.getField("OrdType");
                        if(value == null)
                        {
                            throw new FieldNotFoundException(" OrdType ");
                        }
                        return value;
                    }
				
	
				public com.exactpro.sf.messages.testaml.components.OrdType getOrdType()
				{
					Object value = this.msg.getField("OrdType");
	
					
	
					return com.exactpro.sf.messages.testaml.components.OrdType.getEnumValue((Character)value);
				}

                
                public Object getUntypedOrdType()
                {
                    return this.msg.getField("OrdType");
                }
                
			
			
            public IFilter getOrdTypeFilter()
            {
                return this.msg.getField("OrdType");
            }

            public OrderCancelReplaceRequest setOrdTypeFilter(IFilter filter)
            {
                this.msg.addField("OrdType", filter);
                return this;
            }

            public OrderCancelReplaceRequest removeOrdType()
            {
                this.msg.removeField("OrdType");
                return this;
            }

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

            public boolean isFilterOrdType()
            {
                return this.msg.getField("OrdType") instanceof IFilter;
            }
		
			
				public OrderCancelReplaceRequest setOrderQty(BigDecimal value)
				{
					this.msg.addField("OrderQty", value);
					return this;
				}
	
				
	
				public BigDecimal getOrderQty()
				{
					Object value = this.msg.getField("OrderQty");
	
					
	
					return (BigDecimal)value;
				}

                
                public Object getUntypedOrderQty()
                {
                    return this.msg.getField("OrderQty");
                }
                
			
			
            public IFilter getOrderQtyFilter()
            {
                return this.msg.getField("OrderQty");
            }

            public OrderCancelReplaceRequest setOrderQtyFilter(IFilter filter)
            {
                this.msg.addField("OrderQty", filter);
                return this;
            }

            public OrderCancelReplaceRequest removeOrderQty()
            {
                this.msg.removeField("OrderQty");
                return this;
            }

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

            public boolean isFilterOrderQty()
            {
                return this.msg.getField("OrderQty") instanceof IFilter;
            }
		
			
				public OrderCancelReplaceRequest setPrice(BigDecimal value)
				{
					this.msg.addField("Price", value);
					return this;
				}
	
				
	
				public BigDecimal getPrice()
				{
					Object value = this.msg.getField("Price");
	
					
	
					return (BigDecimal)value;
				}

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

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

            public OrderCancelReplaceRequest 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 OrderCancelReplaceRequest setDisplayQty(BigDecimal value)
				{
					this.msg.addField("DisplayQty", value);
					return this;
				}
	
				
	
				public BigDecimal getDisplayQty()
				{
					Object value = this.msg.getField("DisplayQty");
	
					
	
					return (BigDecimal)value;
				}

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

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

            public OrderCancelReplaceRequest 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 OrderCancelReplaceRequest setOrigClOrdID(String value)
				{
					this.msg.addField("OrigClOrdID", value);
					return this;
				}
	
				
	
				public String getOrigClOrdID()
				{
					Object value = this.msg.getField("OrigClOrdID");
	
					
	
					return (String)value;
				}

                
                public Object getUntypedOrigClOrdID()
                {
                    return this.msg.getField("OrigClOrdID");
                }
                
			
			
            public IFilter getOrigClOrdIDFilter()
            {
                return this.msg.getField("OrigClOrdID");
            }

            public OrderCancelReplaceRequest setOrigClOrdIDFilter(IFilter filter)
            {
                this.msg.addField("OrigClOrdID", filter);
                return this;
            }

            public OrderCancelReplaceRequest removeOrigClOrdID()
            {
                this.msg.removeField("OrigClOrdID");
                return this;
            }

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

            public boolean isFilterOrigClOrdID()
            {
                return this.msg.getField("OrigClOrdID") instanceof IFilter;
            }
		
			
				public OrderCancelReplaceRequest setTradingParty(com.exactpro.sf.messages.testaml.TradingParty value)
				{
					this.msg.addField("TradingParty", value.getMessage());
					return this;
				}
	
				
	
				public com.exactpro.sf.messages.testaml.TradingParty getTradingParty()
				{
					Object value = this.msg.getField("TradingParty");
	
					
	
					return new com.exactpro.sf.messages.testaml.TradingParty((IMessage)value);
				}

                
			
			
            public IFilter getTradingPartyFilter()
            {
                return this.msg.getField("TradingParty");
            }

            public OrderCancelReplaceRequest setTradingPartyFilter(IFilter filter)
            {
                this.msg.addField("TradingParty", filter);
                return this;
            }

            public OrderCancelReplaceRequest removeTradingParty()
            {
                this.msg.removeField("TradingParty");
                return this;
            }

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

            public boolean isFilterTradingParty()
            {
                return this.msg.getField("TradingParty") instanceof IFilter;
            }
		
			
				public OrderCancelReplaceRequest setMsgSeqNum(int value)
				{
					this.msg.addField("MsgSeqNum", value);
					return this;
				}
	
				
	
				public int getMsgSeqNum()
				{
					Object value = this.msg.getField("MsgSeqNum");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" MsgSeqNum ");
						}
					
	
					return (Integer)value;
				}

                
                public Object getUntypedMsgSeqNum()
                {
                    return this.msg.getField("MsgSeqNum");
                }
                
			
			
            public IFilter getMsgSeqNumFilter()
            {
                return this.msg.getField("MsgSeqNum");
            }

            public OrderCancelReplaceRequest setMsgSeqNumFilter(IFilter filter)
            {
                this.msg.addField("MsgSeqNum", filter);
                return this;
            }

            public OrderCancelReplaceRequest removeMsgSeqNum()
            {
                this.msg.removeField("MsgSeqNum");
                return this;
            }

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

            public boolean isFilterMsgSeqNum()
            {
                return this.msg.getField("MsgSeqNum") instanceof IFilter;
            }
		
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy