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

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

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

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

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

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

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

	

	
		
			
				public ArrayMessage addBooleanArray(Boolean value)
				{
					List list = this.msg.>getField("BooleanArray");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("BooleanArray" ,list);
					}
	
					
					list.add(value);
					return this;
					
				}
	
				public List getBooleanArray()
				{
					List value = this.msg.>getField("BooleanArray");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" BooleanArray ");
                    }
    
                    List list = new ArrayList();
	
					for( Boolean element : value )
					{
						list.add((Boolean)element);
					}
	
					return list;
				}
				

                
                public List getUntypedBooleanArray()
                {
                    List values = this.msg.getField("BooleanArray");

                    if(values == null)
                    {
                        throw new FieldNotFoundException(" BooleanArray ");
                    }

                    List result = new ArrayList<>(values.size());
                    result.addAll(values);
                    return result;
                }
                
	
			
			
            public IFilter getBooleanArrayFilter()
            {
                return this.msg.getField("BooleanArray");
            }

            public ArrayMessage setBooleanArrayFilter(IFilter filter)
            {
                this.msg.addField("BooleanArray", filter);
                return this;
            }

            public ArrayMessage removeBooleanArray()
            {
                this.msg.removeField("BooleanArray");
                return this;
            }

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

            public boolean isFilterBooleanArray()
            {
                return this.msg.getField("BooleanArray") instanceof IFilter;
            }
		
			
				public ArrayMessage addIntegerArray(Integer value)
				{
					List list = this.msg.>getField("IntegerArray");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("IntegerArray" ,list);
					}
	
					
					list.add(value);
					return this;
					
				}
	
				public List getIntegerArray()
				{
					List value = this.msg.>getField("IntegerArray");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" IntegerArray ");
                    }
    
                    List list = new ArrayList();
	
					for( Integer element : value )
					{
						list.add((Integer)element);
					}
	
					return list;
				}
				

                
                public List getUntypedIntegerArray()
                {
                    List values = this.msg.getField("IntegerArray");

                    if(values == null)
                    {
                        throw new FieldNotFoundException(" IntegerArray ");
                    }

                    List result = new ArrayList<>(values.size());
                    result.addAll(values);
                    return result;
                }
                
	
			
			
            public IFilter getIntegerArrayFilter()
            {
                return this.msg.getField("IntegerArray");
            }

            public ArrayMessage setIntegerArrayFilter(IFilter filter)
            {
                this.msg.addField("IntegerArray", filter);
                return this;
            }

            public ArrayMessage removeIntegerArray()
            {
                this.msg.removeField("IntegerArray");
                return this;
            }

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

            public boolean isFilterIntegerArray()
            {
                return this.msg.getField("IntegerArray") instanceof IFilter;
            }
		
			
				public ArrayMessage addDoubleArray(Double value)
				{
					List list = this.msg.>getField("DoubleArray");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("DoubleArray" ,list);
					}
	
					
					list.add(value);
					return this;
					
				}
	
				public List getDoubleArray()
				{
					List value = this.msg.>getField("DoubleArray");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" DoubleArray ");
                    }
    
                    List list = new ArrayList();
	
					for( Double element : value )
					{
						list.add((Double)element);
					}
	
					return list;
				}
				

                
                public List getUntypedDoubleArray()
                {
                    List values = this.msg.getField("DoubleArray");

                    if(values == null)
                    {
                        throw new FieldNotFoundException(" DoubleArray ");
                    }

                    List result = new ArrayList<>(values.size());
                    result.addAll(values);
                    return result;
                }
                
	
			
			
            public IFilter getDoubleArrayFilter()
            {
                return this.msg.getField("DoubleArray");
            }

            public ArrayMessage setDoubleArrayFilter(IFilter filter)
            {
                this.msg.addField("DoubleArray", filter);
                return this;
            }

            public ArrayMessage removeDoubleArray()
            {
                this.msg.removeField("DoubleArray");
                return this;
            }

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

            public boolean isFilterDoubleArray()
            {
                return this.msg.getField("DoubleArray") instanceof IFilter;
            }
		
			
				public ArrayMessage addBigDecimalArray(BigDecimal value)
				{
					List list = this.msg.>getField("BigDecimalArray");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("BigDecimalArray" ,list);
					}
	
					
					list.add(value);
					return this;
					
				}
	
				public List getBigDecimalArray()
				{
					List value = this.msg.>getField("BigDecimalArray");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" BigDecimalArray ");
                    }
    
                    List list = new ArrayList();
	
					for( BigDecimal element : value )
					{
						list.add((BigDecimal)element);
					}
	
					return list;
				}
				

                
                public List getUntypedBigDecimalArray()
                {
                    List values = this.msg.getField("BigDecimalArray");

                    if(values == null)
                    {
                        throw new FieldNotFoundException(" BigDecimalArray ");
                    }

                    List result = new ArrayList<>(values.size());
                    result.addAll(values);
                    return result;
                }
                
	
			
			
            public IFilter getBigDecimalArrayFilter()
            {
                return this.msg.getField("BigDecimalArray");
            }

            public ArrayMessage setBigDecimalArrayFilter(IFilter filter)
            {
                this.msg.addField("BigDecimalArray", filter);
                return this;
            }

            public ArrayMessage removeBigDecimalArray()
            {
                this.msg.removeField("BigDecimalArray");
                return this;
            }

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

            public boolean isFilterBigDecimalArray()
            {
                return this.msg.getField("BigDecimalArray") instanceof IFilter;
            }
		
			
				public ArrayMessage addStringArray(String value)
				{
					List list = this.msg.>getField("StringArray");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("StringArray" ,list);
					}
	
					
					list.add(value);
					return this;
					
				}
	
				public List getStringArray()
				{
					List value = this.msg.>getField("StringArray");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" StringArray ");
                    }
    
                    List list = new ArrayList();
	
					for( String element : value )
					{
						list.add((String)element);
					}
	
					return list;
				}
				

                
                public List getUntypedStringArray()
                {
                    List values = this.msg.getField("StringArray");

                    if(values == null)
                    {
                        throw new FieldNotFoundException(" StringArray ");
                    }

                    List result = new ArrayList<>(values.size());
                    result.addAll(values);
                    return result;
                }
                
	
			
			
            public IFilter getStringArrayFilter()
            {
                return this.msg.getField("StringArray");
            }

            public ArrayMessage setStringArrayFilter(IFilter filter)
            {
                this.msg.addField("StringArray", filter);
                return this;
            }

            public ArrayMessage removeStringArray()
            {
                this.msg.removeField("StringArray");
                return this;
            }

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

            public boolean isFilterStringArray()
            {
                return this.msg.getField("StringArray") instanceof IFilter;
            }
		
			
				public ArrayMessage addMessageArray(com.exactpro.sf.messages.testaml.SimpleMessage value)
				{
					List list = this.msg.>getField("MessageArray");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("MessageArray" ,list);
					}
	
					
					list.add(value.getMessage());
					return this;
					
				}
	
				public List getMessageArray()
				{
					List value = this.msg.>getField("MessageArray");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" MessageArray ");
                    }
    
                    List list = new ArrayList();
	
					for( IMessage element : value )
					{
						list.add(new com.exactpro.sf.messages.testaml.SimpleMessage((IMessage)element));
					}
	
					return list;
				}
				

                
	
			
			
            public IFilter getMessageArrayFilter()
            {
                return this.msg.getField("MessageArray");
            }

            public ArrayMessage setMessageArrayFilter(IFilter filter)
            {
                this.msg.addField("MessageArray", filter);
                return this;
            }

            public ArrayMessage removeMessageArray()
            {
                this.msg.removeField("MessageArray");
                return this;
            }

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

            public boolean isFilterMessageArray()
            {
                return this.msg.getField("MessageArray") instanceof IFilter;
            }
		
			
				public ArrayMessage addFByteEnumArray(com.exactpro.sf.messages.testaml.components.TByteEnum value)
				{
					List list = this.msg.>getField("FByteEnumArray");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("FByteEnumArray" ,list);
					}
	
					
					list.add(value.getValue());
					return this;
					
				}
	
				public List getFByteEnumArray()
				{
					List value = this.msg.>getField("FByteEnumArray");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" FByteEnumArray ");
                    }
    
                    List list = new ArrayList();
	
					for( Byte element : value )
					{
						list.add(com.exactpro.sf.messages.testaml.components.TByteEnum.getEnumValue((Byte)element));
					}
	
					return list;
				}
				
                public List getRawFByteEnumArray()
                {
                    List value = this.msg.>getField("FByteEnumArray");

                    if(value == null)
                    {
                        throw new FieldNotFoundException(" FByteEnumArray ");
                    }

                    return new ArrayList<>(value);
                }
                

                
                public List getUntypedFByteEnumArray()
                {
                    List values = this.msg.getField("FByteEnumArray");

                    if(values == null)
                    {
                        throw new FieldNotFoundException(" FByteEnumArray ");
                    }

                    List result = new ArrayList<>(values.size());
                    result.addAll(values);
                    return result;
                }
                
	
			
			
            public IFilter getFByteEnumArrayFilter()
            {
                return this.msg.getField("FByteEnumArray");
            }

            public ArrayMessage setFByteEnumArrayFilter(IFilter filter)
            {
                this.msg.addField("FByteEnumArray", filter);
                return this;
            }

            public ArrayMessage removeFByteEnumArray()
            {
                this.msg.removeField("FByteEnumArray");
                return this;
            }

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

            public boolean isFilterFByteEnumArray()
            {
                return this.msg.getField("FByteEnumArray") instanceof IFilter;
            }
		
			
				public ArrayMessage addFCharacterEnumArray(com.exactpro.sf.messages.testaml.components.TCharacterEnum value)
				{
					List list = this.msg.>getField("FCharacterEnumArray");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("FCharacterEnumArray" ,list);
					}
	
					
					list.add(value.getValue());
					return this;
					
				}
	
				public List getFCharacterEnumArray()
				{
					List value = this.msg.>getField("FCharacterEnumArray");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" FCharacterEnumArray ");
                    }
    
                    List list = new ArrayList();
	
					for( Character element : value )
					{
						list.add(com.exactpro.sf.messages.testaml.components.TCharacterEnum.getEnumValue((Character)element));
					}
	
					return list;
				}
				
                public List getRawFCharacterEnumArray()
                {
                    List value = this.msg.>getField("FCharacterEnumArray");

                    if(value == null)
                    {
                        throw new FieldNotFoundException(" FCharacterEnumArray ");
                    }

                    return new ArrayList<>(value);
                }
                

                
                public List getUntypedFCharacterEnumArray()
                {
                    List values = this.msg.getField("FCharacterEnumArray");

                    if(values == null)
                    {
                        throw new FieldNotFoundException(" FCharacterEnumArray ");
                    }

                    List result = new ArrayList<>(values.size());
                    result.addAll(values);
                    return result;
                }
                
	
			
			
            public IFilter getFCharacterEnumArrayFilter()
            {
                return this.msg.getField("FCharacterEnumArray");
            }

            public ArrayMessage setFCharacterEnumArrayFilter(IFilter filter)
            {
                this.msg.addField("FCharacterEnumArray", filter);
                return this;
            }

            public ArrayMessage removeFCharacterEnumArray()
            {
                this.msg.removeField("FCharacterEnumArray");
                return this;
            }

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

            public boolean isFilterFCharacterEnumArray()
            {
                return this.msg.getField("FCharacterEnumArray") instanceof IFilter;
            }
		
			
				public ArrayMessage addFShortEnumArray(com.exactpro.sf.messages.testaml.components.TShortEnum value)
				{
					List list = this.msg.>getField("FShortEnumArray");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("FShortEnumArray" ,list);
					}
	
					
					list.add(value.getValue());
					return this;
					
				}
	
				public List getFShortEnumArray()
				{
					List value = this.msg.>getField("FShortEnumArray");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" FShortEnumArray ");
                    }
    
                    List list = new ArrayList();
	
					for( Short element : value )
					{
						list.add(com.exactpro.sf.messages.testaml.components.TShortEnum.getEnumValue((Short)element));
					}
	
					return list;
				}
				
                public List getRawFShortEnumArray()
                {
                    List value = this.msg.>getField("FShortEnumArray");

                    if(value == null)
                    {
                        throw new FieldNotFoundException(" FShortEnumArray ");
                    }

                    return new ArrayList<>(value);
                }
                

                
                public List getUntypedFShortEnumArray()
                {
                    List values = this.msg.getField("FShortEnumArray");

                    if(values == null)
                    {
                        throw new FieldNotFoundException(" FShortEnumArray ");
                    }

                    List result = new ArrayList<>(values.size());
                    result.addAll(values);
                    return result;
                }
                
	
			
			
            public IFilter getFShortEnumArrayFilter()
            {
                return this.msg.getField("FShortEnumArray");
            }

            public ArrayMessage setFShortEnumArrayFilter(IFilter filter)
            {
                this.msg.addField("FShortEnumArray", filter);
                return this;
            }

            public ArrayMessage removeFShortEnumArray()
            {
                this.msg.removeField("FShortEnumArray");
                return this;
            }

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

            public boolean isFilterFShortEnumArray()
            {
                return this.msg.getField("FShortEnumArray") instanceof IFilter;
            }
		
			
				public ArrayMessage addFIntegerEnumArray(com.exactpro.sf.messages.testaml.components.TIntegerEnum value)
				{
					List list = this.msg.>getField("FIntegerEnumArray");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("FIntegerEnumArray" ,list);
					}
	
					
					list.add(value.getValue());
					return this;
					
				}
	
				public List getFIntegerEnumArray()
				{
					List value = this.msg.>getField("FIntegerEnumArray");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" FIntegerEnumArray ");
                    }
    
                    List list = new ArrayList();
	
					for( Integer element : value )
					{
						list.add(com.exactpro.sf.messages.testaml.components.TIntegerEnum.getEnumValue((Integer)element));
					}
	
					return list;
				}
				
                public List getRawFIntegerEnumArray()
                {
                    List value = this.msg.>getField("FIntegerEnumArray");

                    if(value == null)
                    {
                        throw new FieldNotFoundException(" FIntegerEnumArray ");
                    }

                    return new ArrayList<>(value);
                }
                

                
                public List getUntypedFIntegerEnumArray()
                {
                    List values = this.msg.getField("FIntegerEnumArray");

                    if(values == null)
                    {
                        throw new FieldNotFoundException(" FIntegerEnumArray ");
                    }

                    List result = new ArrayList<>(values.size());
                    result.addAll(values);
                    return result;
                }
                
	
			
			
            public IFilter getFIntegerEnumArrayFilter()
            {
                return this.msg.getField("FIntegerEnumArray");
            }

            public ArrayMessage setFIntegerEnumArrayFilter(IFilter filter)
            {
                this.msg.addField("FIntegerEnumArray", filter);
                return this;
            }

            public ArrayMessage removeFIntegerEnumArray()
            {
                this.msg.removeField("FIntegerEnumArray");
                return this;
            }

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

            public boolean isFilterFIntegerEnumArray()
            {
                return this.msg.getField("FIntegerEnumArray") instanceof IFilter;
            }
		
			
				public ArrayMessage addFStringEnumArray(com.exactpro.sf.messages.testaml.components.TStringEnum value)
				{
					List list = this.msg.>getField("FStringEnumArray");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("FStringEnumArray" ,list);
					}
	
					
					list.add(value.getValue());
					return this;
					
				}
	
				public List getFStringEnumArray()
				{
					List value = this.msg.>getField("FStringEnumArray");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" FStringEnumArray ");
                    }
    
                    List list = new ArrayList();
	
					for( String element : value )
					{
						list.add(com.exactpro.sf.messages.testaml.components.TStringEnum.getEnumValue((String)element));
					}
	
					return list;
				}
				
                public List getRawFStringEnumArray()
                {
                    List value = this.msg.>getField("FStringEnumArray");

                    if(value == null)
                    {
                        throw new FieldNotFoundException(" FStringEnumArray ");
                    }

                    return new ArrayList<>(value);
                }
                

                
                public List getUntypedFStringEnumArray()
                {
                    List values = this.msg.getField("FStringEnumArray");

                    if(values == null)
                    {
                        throw new FieldNotFoundException(" FStringEnumArray ");
                    }

                    List result = new ArrayList<>(values.size());
                    result.addAll(values);
                    return result;
                }
                
	
			
			
            public IFilter getFStringEnumArrayFilter()
            {
                return this.msg.getField("FStringEnumArray");
            }

            public ArrayMessage setFStringEnumArrayFilter(IFilter filter)
            {
                this.msg.addField("FStringEnumArray", filter);
                return this;
            }

            public ArrayMessage removeFStringEnumArray()
            {
                this.msg.removeField("FStringEnumArray");
                return this;
            }

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

            public boolean isFilterFStringEnumArray()
            {
                return this.msg.getField("FStringEnumArray") instanceof IFilter;
            }
		
			
				public ArrayMessage addServiceNames(String value)
				{
					List list = this.msg.>getField("ServiceNames");
	
					if(list == null){
						list = new ArrayList();
						this.msg.addField("ServiceNames" ,list);
					}
	
					
					list.add(value);
					return this;
					
				}
	
				public List getServiceNames()
				{
					List value = this.msg.>getField("ServiceNames");
    
                    if(value == null)
                    {
                        throw new FieldNotFoundException(" ServiceNames ");
                    }
    
                    List list = new ArrayList();
	
					for( String element : value )
					{
						list.add((String)element);
					}
	
					return list;
				}
				

                
                public List getUntypedServiceNames()
                {
                    List values = this.msg.getField("ServiceNames");

                    if(values == null)
                    {
                        throw new FieldNotFoundException(" ServiceNames ");
                    }

                    List result = new ArrayList<>(values.size());
                    result.addAll(values);
                    return result;
                }
                
	
			
			
            public IFilter getServiceNamesFilter()
            {
                return this.msg.getField("ServiceNames");
            }

            public ArrayMessage setServiceNamesFilter(IFilter filter)
            {
                this.msg.addField("ServiceNames", filter);
                return this;
            }

            public ArrayMessage removeServiceNames()
            {
                this.msg.removeField("ServiceNames");
                return this;
            }

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

            public boolean isFilterServiceNames()
            {
                return this.msg.getField("ServiceNames") instanceof IFilter;
            }
		
	
}