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

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

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

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

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

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

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

	

	
		
			
				public NoPartyIDs setPartyID(String value)
				{
					this.msg.addField("PartyID", value);
					return this;
				}
	
				
	
				public String getPartyID()
				{
					Object value = this.msg.getField("PartyID");
	
					
	
					return (String)value;
				}

                
                public Object getUntypedPartyID()
                {
                    return this.msg.getField("PartyID");
                }
                
			
			
            public IFilter getPartyIDFilter()
            {
                return this.msg.getField("PartyID");
            }

            public NoPartyIDs setPartyIDFilter(IFilter filter)
            {
                this.msg.addField("PartyID", filter);
                return this;
            }

            public NoPartyIDs removePartyID()
            {
                this.msg.removeField("PartyID");
                return this;
            }

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

            public boolean isFilterPartyID()
            {
                return this.msg.getField("PartyID") instanceof IFilter;
            }
		
			
				public NoPartyIDs setPartyIDSource(com.exactpro.sf.messages.testaml.components.PartyIDSource value)
				{
					this.msg.addField("PartyIDSource", value.getValue());
					return this;
				}
	
				
					public NoPartyIDs setPartyIDSource(Character value)
					{
						this.msg.addField("PartyIDSource", value);
						return this;
					}

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

                
                public Object getUntypedPartyIDSource()
                {
                    return this.msg.getField("PartyIDSource");
                }
                
			
			
            public IFilter getPartyIDSourceFilter()
            {
                return this.msg.getField("PartyIDSource");
            }

            public NoPartyIDs setPartyIDSourceFilter(IFilter filter)
            {
                this.msg.addField("PartyIDSource", filter);
                return this;
            }

            public NoPartyIDs removePartyIDSource()
            {
                this.msg.removeField("PartyIDSource");
                return this;
            }

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

            public boolean isFilterPartyIDSource()
            {
                return this.msg.getField("PartyIDSource") instanceof IFilter;
            }
		
			
				public NoPartyIDs setPartyRole(com.exactpro.sf.messages.testaml.components.PartyRole value)
				{
					this.msg.addField("PartyRole", value.getValue());
					return this;
				}
	
				
					public NoPartyIDs setPartyRole(Integer value)
					{
						this.msg.addField("PartyRole", value);
						return this;
					}

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

                
                public Object getUntypedPartyRole()
                {
                    return this.msg.getField("PartyRole");
                }
                
			
			
            public IFilter getPartyRoleFilter()
            {
                return this.msg.getField("PartyRole");
            }

            public NoPartyIDs setPartyRoleFilter(IFilter filter)
            {
                this.msg.addField("PartyRole", filter);
                return this;
            }

            public NoPartyIDs removePartyRole()
            {
                this.msg.removeField("PartyRole");
                return this;
            }

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

            public boolean isFilterPartyRole()
            {
                return this.msg.getField("PartyRole") instanceof IFilter;
            }
		
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy