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

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

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

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

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

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

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

	

	
		
			
				public SimpleMessage setFBoolean(boolean value)
				{
					this.msg.addField("FBoolean", value);
					return this;
				}
	
				
	
				public boolean getFBoolean()
				{
					Object value = this.msg.getField("FBoolean");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" FBoolean ");
						}
					
	
					return (Boolean)value;
				}

                
                public Object getUntypedFBoolean()
                {
                    return this.msg.getField("FBoolean");
                }
                
			
			
            public IFilter getFBooleanFilter()
            {
                return this.msg.getField("FBoolean");
            }

            public SimpleMessage setFBooleanFilter(IFilter filter)
            {
                this.msg.addField("FBoolean", filter);
                return this;
            }

            public SimpleMessage removeFBoolean()
            {
                this.msg.removeField("FBoolean");
                return this;
            }

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

            public boolean isFilterFBoolean()
            {
                return this.msg.getField("FBoolean") instanceof IFilter;
            }
		
			
				public SimpleMessage setFByte(byte value)
				{
					this.msg.addField("FByte", value);
					return this;
				}
	
				
	
				public byte getFByte()
				{
					Object value = this.msg.getField("FByte");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" FByte ");
						}
					
	
					return (Byte)value;
				}

                
                public Object getUntypedFByte()
                {
                    return this.msg.getField("FByte");
                }
                
			
			
            public IFilter getFByteFilter()
            {
                return this.msg.getField("FByte");
            }

            public SimpleMessage setFByteFilter(IFilter filter)
            {
                this.msg.addField("FByte", filter);
                return this;
            }

            public SimpleMessage removeFByte()
            {
                this.msg.removeField("FByte");
                return this;
            }

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

            public boolean isFilterFByte()
            {
                return this.msg.getField("FByte") instanceof IFilter;
            }
		
			
				public SimpleMessage setFCharacter(char value)
				{
					this.msg.addField("FCharacter", value);
					return this;
				}
	
				
	
				public char getFCharacter()
				{
					Object value = this.msg.getField("FCharacter");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" FCharacter ");
						}
					
	
					return (Character)value;
				}

                
                public Object getUntypedFCharacter()
                {
                    return this.msg.getField("FCharacter");
                }
                
			
			
            public IFilter getFCharacterFilter()
            {
                return this.msg.getField("FCharacter");
            }

            public SimpleMessage setFCharacterFilter(IFilter filter)
            {
                this.msg.addField("FCharacter", filter);
                return this;
            }

            public SimpleMessage removeFCharacter()
            {
                this.msg.removeField("FCharacter");
                return this;
            }

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

            public boolean isFilterFCharacter()
            {
                return this.msg.getField("FCharacter") instanceof IFilter;
            }
		
			
				public SimpleMessage setFShort(short value)
				{
					this.msg.addField("FShort", value);
					return this;
				}
	
				
	
				public short getFShort()
				{
					Object value = this.msg.getField("FShort");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" FShort ");
						}
					
	
					return (Short)value;
				}

                
                public Object getUntypedFShort()
                {
                    return this.msg.getField("FShort");
                }
                
			
			
            public IFilter getFShortFilter()
            {
                return this.msg.getField("FShort");
            }

            public SimpleMessage setFShortFilter(IFilter filter)
            {
                this.msg.addField("FShort", filter);
                return this;
            }

            public SimpleMessage removeFShort()
            {
                this.msg.removeField("FShort");
                return this;
            }

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

            public boolean isFilterFShort()
            {
                return this.msg.getField("FShort") instanceof IFilter;
            }
		
			
				public SimpleMessage setFInteger(int value)
				{
					this.msg.addField("FInteger", value);
					return this;
				}
	
				
	
				public int getFInteger()
				{
					Object value = this.msg.getField("FInteger");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" FInteger ");
						}
					
	
					return (Integer)value;
				}

                
                public Object getUntypedFInteger()
                {
                    return this.msg.getField("FInteger");
                }
                
			
			
            public IFilter getFIntegerFilter()
            {
                return this.msg.getField("FInteger");
            }

            public SimpleMessage setFIntegerFilter(IFilter filter)
            {
                this.msg.addField("FInteger", filter);
                return this;
            }

            public SimpleMessage removeFInteger()
            {
                this.msg.removeField("FInteger");
                return this;
            }

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

            public boolean isFilterFInteger()
            {
                return this.msg.getField("FInteger") instanceof IFilter;
            }
		
			
				public SimpleMessage setFLong(long value)
				{
					this.msg.addField("FLong", value);
					return this;
				}
	
				
	
				public long getFLong()
				{
					Object value = this.msg.getField("FLong");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" FLong ");
						}
					
	
					return (Long)value;
				}

                
                public Object getUntypedFLong()
                {
                    return this.msg.getField("FLong");
                }
                
			
			
            public IFilter getFLongFilter()
            {
                return this.msg.getField("FLong");
            }

            public SimpleMessage setFLongFilter(IFilter filter)
            {
                this.msg.addField("FLong", filter);
                return this;
            }

            public SimpleMessage removeFLong()
            {
                this.msg.removeField("FLong");
                return this;
            }

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

            public boolean isFilterFLong()
            {
                return this.msg.getField("FLong") instanceof IFilter;
            }
		
			
				public SimpleMessage setFFloat(float value)
				{
					this.msg.addField("FFloat", value);
					return this;
				}
	
				
	
				public float getFFloat()
				{
					Object value = this.msg.getField("FFloat");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" FFloat ");
						}
					
	
					return (Float)value;
				}

                
                public Object getUntypedFFloat()
                {
                    return this.msg.getField("FFloat");
                }
                
			
			
            public IFilter getFFloatFilter()
            {
                return this.msg.getField("FFloat");
            }

            public SimpleMessage setFFloatFilter(IFilter filter)
            {
                this.msg.addField("FFloat", filter);
                return this;
            }

            public SimpleMessage removeFFloat()
            {
                this.msg.removeField("FFloat");
                return this;
            }

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

            public boolean isFilterFFloat()
            {
                return this.msg.getField("FFloat") instanceof IFilter;
            }
		
			
				public SimpleMessage setFDouble(double value)
				{
					this.msg.addField("FDouble", value);
					return this;
				}
	
				
	
				public double getFDouble()
				{
					Object value = this.msg.getField("FDouble");
	
					
						if(value == null)
						{
							throw new FieldNotFoundException(" FDouble ");
						}
					
	
					return (Double)value;
				}

                
                public Object getUntypedFDouble()
                {
                    return this.msg.getField("FDouble");
                }
                
			
			
            public IFilter getFDoubleFilter()
            {
                return this.msg.getField("FDouble");
            }

            public SimpleMessage setFDoubleFilter(IFilter filter)
            {
                this.msg.addField("FDouble", filter);
                return this;
            }

            public SimpleMessage removeFDouble()
            {
                this.msg.removeField("FDouble");
                return this;
            }

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

            public boolean isFilterFDouble()
            {
                return this.msg.getField("FDouble") instanceof IFilter;
            }
		
			
				public SimpleMessage setFBigDecimal(BigDecimal value)
				{
					this.msg.addField("FBigDecimal", value);
					return this;
				}
	
				
	
				public BigDecimal getFBigDecimal()
				{
					Object value = this.msg.getField("FBigDecimal");
	
					
	
					return (BigDecimal)value;
				}

                
                public Object getUntypedFBigDecimal()
                {
                    return this.msg.getField("FBigDecimal");
                }
                
			
			
            public IFilter getFBigDecimalFilter()
            {
                return this.msg.getField("FBigDecimal");
            }

            public SimpleMessage setFBigDecimalFilter(IFilter filter)
            {
                this.msg.addField("FBigDecimal", filter);
                return this;
            }

            public SimpleMessage removeFBigDecimal()
            {
                this.msg.removeField("FBigDecimal");
                return this;
            }

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

            public boolean isFilterFBigDecimal()
            {
                return this.msg.getField("FBigDecimal") instanceof IFilter;
            }
		
			
				public SimpleMessage setFString(String value)
				{
					this.msg.addField("FString", value);
					return this;
				}
	
				
	
				public String getFString()
				{
					Object value = this.msg.getField("FString");
	
					
	
					return (String)value;
				}

                
                public Object getUntypedFString()
                {
                    return this.msg.getField("FString");
                }
                
			
			
            public IFilter getFStringFilter()
            {
                return this.msg.getField("FString");
            }

            public SimpleMessage setFStringFilter(IFilter filter)
            {
                this.msg.addField("FString", filter);
                return this;
            }

            public SimpleMessage removeFString()
            {
                this.msg.removeField("FString");
                return this;
            }

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

            public boolean isFilterFString()
            {
                return this.msg.getField("FString") instanceof IFilter;
            }
		
			
				public SimpleMessage setFByteEnum(com.exactpro.sf.messages.testaml.components.TByteEnum value)
				{
					this.msg.addField("FByteEnum", value.getValue());
					return this;
				}
	
				
					public SimpleMessage setFByteEnum(Byte value)
					{
						this.msg.addField("FByteEnum", value);
						return this;
					}

                    public Byte getRawFByteEnum()
                    {
                        Byte value = this.msg.getField("FByteEnum");
                        if(value == null)
                        {
                            throw new FieldNotFoundException(" FByteEnum ");
                        }
                        return value;
                    }
				
	
				public com.exactpro.sf.messages.testaml.components.TByteEnum getFByteEnum()
				{
					Object value = this.msg.getField("FByteEnum");
	
					
	
					return com.exactpro.sf.messages.testaml.components.TByteEnum.getEnumValue((Byte)value);
				}

                
                public Object getUntypedFByteEnum()
                {
                    return this.msg.getField("FByteEnum");
                }
                
			
			
            public IFilter getFByteEnumFilter()
            {
                return this.msg.getField("FByteEnum");
            }

            public SimpleMessage setFByteEnumFilter(IFilter filter)
            {
                this.msg.addField("FByteEnum", filter);
                return this;
            }

            public SimpleMessage removeFByteEnum()
            {
                this.msg.removeField("FByteEnum");
                return this;
            }

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

            public boolean isFilterFByteEnum()
            {
                return this.msg.getField("FByteEnum") instanceof IFilter;
            }
		
			
				public SimpleMessage setFCharacterEnum(com.exactpro.sf.messages.testaml.components.TCharacterEnum value)
				{
					this.msg.addField("FCharacterEnum", value.getValue());
					return this;
				}
	
				
					public SimpleMessage setFCharacterEnum(Character value)
					{
						this.msg.addField("FCharacterEnum", value);
						return this;
					}

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

                
                public Object getUntypedFCharacterEnum()
                {
                    return this.msg.getField("FCharacterEnum");
                }
                
			
			
            public IFilter getFCharacterEnumFilter()
            {
                return this.msg.getField("FCharacterEnum");
            }

            public SimpleMessage setFCharacterEnumFilter(IFilter filter)
            {
                this.msg.addField("FCharacterEnum", filter);
                return this;
            }

            public SimpleMessage removeFCharacterEnum()
            {
                this.msg.removeField("FCharacterEnum");
                return this;
            }

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

            public boolean isFilterFCharacterEnum()
            {
                return this.msg.getField("FCharacterEnum") instanceof IFilter;
            }
		
			
				public SimpleMessage setFShortEnum(com.exactpro.sf.messages.testaml.components.TShortEnum value)
				{
					this.msg.addField("FShortEnum", value.getValue());
					return this;
				}
	
				
					public SimpleMessage setFShortEnum(Short value)
					{
						this.msg.addField("FShortEnum", value);
						return this;
					}

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

                
                public Object getUntypedFShortEnum()
                {
                    return this.msg.getField("FShortEnum");
                }
                
			
			
            public IFilter getFShortEnumFilter()
            {
                return this.msg.getField("FShortEnum");
            }

            public SimpleMessage setFShortEnumFilter(IFilter filter)
            {
                this.msg.addField("FShortEnum", filter);
                return this;
            }

            public SimpleMessage removeFShortEnum()
            {
                this.msg.removeField("FShortEnum");
                return this;
            }

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

            public boolean isFilterFShortEnum()
            {
                return this.msg.getField("FShortEnum") instanceof IFilter;
            }
		
			
				public SimpleMessage setFIntegerEnum(com.exactpro.sf.messages.testaml.components.TIntegerEnum value)
				{
					this.msg.addField("FIntegerEnum", value.getValue());
					return this;
				}
	
				
					public SimpleMessage setFIntegerEnum(Integer value)
					{
						this.msg.addField("FIntegerEnum", value);
						return this;
					}

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

                
                public Object getUntypedFIntegerEnum()
                {
                    return this.msg.getField("FIntegerEnum");
                }
                
			
			
            public IFilter getFIntegerEnumFilter()
            {
                return this.msg.getField("FIntegerEnum");
            }

            public SimpleMessage setFIntegerEnumFilter(IFilter filter)
            {
                this.msg.addField("FIntegerEnum", filter);
                return this;
            }

            public SimpleMessage removeFIntegerEnum()
            {
                this.msg.removeField("FIntegerEnum");
                return this;
            }

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

            public boolean isFilterFIntegerEnum()
            {
                return this.msg.getField("FIntegerEnum") instanceof IFilter;
            }
		
			
				public SimpleMessage setFStringEnum(com.exactpro.sf.messages.testaml.components.TStringEnum value)
				{
					this.msg.addField("FStringEnum", value.getValue());
					return this;
				}
	
				
					public SimpleMessage setFStringEnum(String value)
					{
						this.msg.addField("FStringEnum", value);
						return this;
					}

                    public String getRawFStringEnum()
                    {
                        String value = this.msg.getField("FStringEnum");
                        if(value == null)
                        {
                            throw new FieldNotFoundException(" FStringEnum ");
                        }
                        return value;
                    }
				
	
				public com.exactpro.sf.messages.testaml.components.TStringEnum getFStringEnum()
				{
					Object value = this.msg.getField("FStringEnum");
	
					
	
					return com.exactpro.sf.messages.testaml.components.TStringEnum.getEnumValue((String)value);
				}

                
                public Object getUntypedFStringEnum()
                {
                    return this.msg.getField("FStringEnum");
                }
                
			
			
            public IFilter getFStringEnumFilter()
            {
                return this.msg.getField("FStringEnum");
            }

            public SimpleMessage setFStringEnumFilter(IFilter filter)
            {
                this.msg.addField("FStringEnum", filter);
                return this;
            }

            public SimpleMessage removeFStringEnum()
            {
                this.msg.removeField("FStringEnum");
                return this;
            }

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

            public boolean isFilterFStringEnum()
            {
                return this.msg.getField("FStringEnum") instanceof IFilter;
            }
		
			
				public SimpleMessage setServiceName(String value)
				{
					this.msg.addField("ServiceName", value);
					return this;
				}
	
				
	
				public String getServiceName()
				{
					Object value = this.msg.getField("ServiceName");
	
					
	
					return (String)value;
				}

                
                public Object getUntypedServiceName()
                {
                    return this.msg.getField("ServiceName");
                }
                
			
			
            public IFilter getServiceNameFilter()
            {
                return this.msg.getField("ServiceName");
            }

            public SimpleMessage setServiceNameFilter(IFilter filter)
            {
                this.msg.addField("ServiceName", filter);
                return this;
            }

            public SimpleMessage removeServiceName()
            {
                this.msg.removeField("ServiceName");
                return this;
            }

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

            public boolean isFilterServiceName()
            {
                return this.msg.getField("ServiceName") instanceof IFilter;
            }
		
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy