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

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

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

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

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

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

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

	

	
		
			
				public TradeConfirmation setBasicHeader(com.exactpro.sf.messages.testaml.BasicHeader value)
				{
					this.msg.addField("BasicHeader", value.getMessage());
					return this;
				}
	
				
	
				public com.exactpro.sf.messages.testaml.BasicHeader getBasicHeader()
				{
					Object value = this.msg.getField("BasicHeader");
	
					
	
					return new com.exactpro.sf.messages.testaml.BasicHeader((IMessage)value);
				}

                
			
			
            public IFilter getBasicHeaderFilter()
            {
                return this.msg.getField("BasicHeader");
            }

            public TradeConfirmation setBasicHeaderFilter(IFilter filter)
            {
                this.msg.addField("BasicHeader", filter);
                return this;
            }

            public TradeConfirmation removeBasicHeader()
            {
                this.msg.removeField("BasicHeader");
                return this;
            }

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

            public boolean isFilterBasicHeader()
            {
                return this.msg.getField("BasicHeader") instanceof IFilter;
            }
		
			
				public TradeConfirmation setApplicationHeaderInput(com.exactpro.sf.messages.testaml.ApplicationHeaderInput value)
				{
					this.msg.addField("ApplicationHeaderInput", value.getMessage());
					return this;
				}
	
				
	
				public com.exactpro.sf.messages.testaml.ApplicationHeaderInput getApplicationHeaderInput()
				{
					Object value = this.msg.getField("ApplicationHeaderInput");
	
					
	
					return new com.exactpro.sf.messages.testaml.ApplicationHeaderInput((IMessage)value);
				}

                
			
			
            public IFilter getApplicationHeaderInputFilter()
            {
                return this.msg.getField("ApplicationHeaderInput");
            }

            public TradeConfirmation setApplicationHeaderInputFilter(IFilter filter)
            {
                this.msg.addField("ApplicationHeaderInput", filter);
                return this;
            }

            public TradeConfirmation removeApplicationHeaderInput()
            {
                this.msg.removeField("ApplicationHeaderInput");
                return this;
            }

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

            public boolean isFilterApplicationHeaderInput()
            {
                return this.msg.getField("ApplicationHeaderInput") instanceof IFilter;
            }
		
			
				public TradeConfirmation setGENL(com.exactpro.sf.messages.testaml.GENL value)
				{
					this.msg.addField("GENL", value.getMessage());
					return this;
				}
	
				
	
				public com.exactpro.sf.messages.testaml.GENL getGENL()
				{
					Object value = this.msg.getField("GENL");
	
					
	
					return new com.exactpro.sf.messages.testaml.GENL((IMessage)value);
				}

                
			
			
            public IFilter getGENLFilter()
            {
                return this.msg.getField("GENL");
            }

            public TradeConfirmation setGENLFilter(IFilter filter)
            {
                this.msg.addField("GENL", filter);
                return this;
            }

            public TradeConfirmation removeGENL()
            {
                this.msg.removeField("GENL");
                return this;
            }

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

            public boolean isFilterGENL()
            {
                return this.msg.getField("GENL") instanceof IFilter;
            }
		
			
				public TradeConfirmation addCONFDET(com.exactpro.sf.messages.testaml.CONFDET value)
				{
					List list = this.msg.>getField("CONFDET");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("CONFDET" ,list);
					}
	
					
					list.add(value.getMessage());
					return this;
					
				}
	
				public List getCONFDET()
				{
					List value = this.msg.>getField("CONFDET");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" CONFDET ");
                    }
    
                    List list = new ArrayList();
	
					for( IMessage element : value )
					{
						list.add(new com.exactpro.sf.messages.testaml.CONFDET((IMessage)element));
					}
	
					return list;
				}
				

                
	
			
			
            public IFilter getCONFDETFilter()
            {
                return this.msg.getField("CONFDET");
            }

            public TradeConfirmation setCONFDETFilter(IFilter filter)
            {
                this.msg.addField("CONFDET", filter);
                return this;
            }

            public TradeConfirmation removeCONFDET()
            {
                this.msg.removeField("CONFDET");
                return this;
            }

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

            public boolean isFilterCONFDET()
            {
                return this.msg.getField("CONFDET") instanceof IFilter;
            }
		
			
				public TradeConfirmation setSETDET(com.exactpro.sf.messages.testaml.SETDET value)
				{
					this.msg.addField("SETDET", value.getMessage());
					return this;
				}
	
				
	
				public com.exactpro.sf.messages.testaml.SETDET getSETDET()
				{
					Object value = this.msg.getField("SETDET");
	
					
	
					return new com.exactpro.sf.messages.testaml.SETDET((IMessage)value);
				}

                
			
			
            public IFilter getSETDETFilter()
            {
                return this.msg.getField("SETDET");
            }

            public TradeConfirmation setSETDETFilter(IFilter filter)
            {
                this.msg.addField("SETDET", filter);
                return this;
            }

            public TradeConfirmation removeSETDET()
            {
                this.msg.removeField("SETDET");
                return this;
            }

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

            public boolean isFilterSETDET()
            {
                return this.msg.getField("SETDET") instanceof IFilter;
            }
		
			
				public TradeConfirmation setOTHRPRTY(com.exactpro.sf.messages.testaml.OTHRPRTY value)
				{
					this.msg.addField("OTHRPRTY", value.getMessage());
					return this;
				}
	
				
	
				public com.exactpro.sf.messages.testaml.OTHRPRTY getOTHRPRTY()
				{
					Object value = this.msg.getField("OTHRPRTY");
	
					
	
					return new com.exactpro.sf.messages.testaml.OTHRPRTY((IMessage)value);
				}

                
			
			
            public IFilter getOTHRPRTYFilter()
            {
                return this.msg.getField("OTHRPRTY");
            }

            public TradeConfirmation setOTHRPRTYFilter(IFilter filter)
            {
                this.msg.addField("OTHRPRTY", filter);
                return this;
            }

            public TradeConfirmation removeOTHRPRTY()
            {
                this.msg.removeField("OTHRPRTY");
                return this;
            }

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

            public boolean isFilterOTHRPRTY()
            {
                return this.msg.getField("OTHRPRTY") instanceof IFilter;
            }
		
			
				public TradeConfirmation setTrailer(com.exactpro.sf.messages.testaml.Trailer value)
				{
					this.msg.addField("Trailer", value.getMessage());
					return this;
				}
	
				
	
				public com.exactpro.sf.messages.testaml.Trailer getTrailer()
				{
					Object value = this.msg.getField("Trailer");
	
					
	
					return new com.exactpro.sf.messages.testaml.Trailer((IMessage)value);
				}

                
			
			
            public IFilter getTrailerFilter()
            {
                return this.msg.getField("Trailer");
            }

            public TradeConfirmation setTrailerFilter(IFilter filter)
            {
                this.msg.addField("Trailer", filter);
                return this;
            }

            public TradeConfirmation removeTrailer()
            {
                this.msg.removeField("Trailer");
                return this;
            }

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

            public boolean isFilterTrailer()
            {
                return this.msg.getField("Trailer") instanceof IFilter;
            }
		
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy