com.exactpro.sf.messages.testaml.LINK Maven / Gradle / Ivy
/******************************************************************************
* 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 LINK extends BaseMessage
{
public static final String MESSAGE_NAME = "LINK";
public LINK(IMessageFactory messageFactory)
{
this(messageFactory.createMessage(MESSAGE_NAME, (messageFactory.getNamespace() == null) ? "TestAML" : messageFactory.getNamespace()));
}
/**
* @deprecated Please use {@link #LINK(IMessageFactory)}
*/
@Deprecated
public LINK()
{
this(DefaultMessageFactory.getFactory());
}
/**
* @deprecated Please use {@link #LINK(IMessageFactory)}
*/
@Deprecated
public LINK(String name, String namespace)
{
super(DefaultMessageFactory.getFactory().createMessage(name, namespace));
}
public LINK(IMessage msg)
{
super(msg);
}
@Override
public LINK clone() {
return (LINK)super.clone();
}
public LINK setLinkedMessage(String value)
{
this.msg.addField("LinkedMessage", value);
return this;
}
public String getLinkedMessage()
{
Object value = this.msg.getField("LinkedMessage");
return (String)value;
}
public Object getUntypedLinkedMessage()
{
return this.msg.getField("LinkedMessage");
}
public IFilter getLinkedMessageFilter()
{
return this.msg.getField("LinkedMessage");
}
public LINK setLinkedMessageFilter(IFilter filter)
{
this.msg.addField("LinkedMessage", filter);
return this;
}
public LINK removeLinkedMessage()
{
this.msg.removeField("LinkedMessage");
return this;
}
public boolean isSetLinkedMessage()
{
return this.msg.getField("LinkedMessage") != null;
}
public boolean isFilterLinkedMessage()
{
return this.msg.getField("LinkedMessage") instanceof IFilter;
}
public LINK setVenueTradeReference(String value)
{
this.msg.addField("VenueTradeReference", value);
return this;
}
public String getVenueTradeReference()
{
Object value = this.msg.getField("VenueTradeReference");
return (String)value;
}
public Object getUntypedVenueTradeReference()
{
return this.msg.getField("VenueTradeReference");
}
public IFilter getVenueTradeReferenceFilter()
{
return this.msg.getField("VenueTradeReference");
}
public LINK setVenueTradeReferenceFilter(IFilter filter)
{
this.msg.addField("VenueTradeReference", filter);
return this;
}
public LINK removeVenueTradeReference()
{
this.msg.removeField("VenueTradeReference");
return this;
}
public boolean isSetVenueTradeReference()
{
return this.msg.getField("VenueTradeReference") != null;
}
public boolean isFilterVenueTradeReference()
{
return this.msg.getField("VenueTradeReference") instanceof IFilter;
}
public LINK setTradeReference(String value)
{
this.msg.addField("TradeReference", value);
return this;
}
public String getTradeReference()
{
Object value = this.msg.getField("TradeReference");
return (String)value;
}
public Object getUntypedTradeReference()
{
return this.msg.getField("TradeReference");
}
public IFilter getTradeReferenceFilter()
{
return this.msg.getField("TradeReference");
}
public LINK setTradeReferenceFilter(IFilter filter)
{
this.msg.addField("TradeReference", filter);
return this;
}
public LINK removeTradeReference()
{
this.msg.removeField("TradeReference");
return this;
}
public boolean isSetTradeReference()
{
return this.msg.getField("TradeReference") != null;
}
public boolean isFilterTradeReference()
{
return this.msg.getField("TradeReference") instanceof IFilter;
}
public LINK setPreviousReference(String value)
{
this.msg.addField("PreviousReference", value);
return this;
}
public String getPreviousReference()
{
Object value = this.msg.getField("PreviousReference");
return (String)value;
}
public Object getUntypedPreviousReference()
{
return this.msg.getField("PreviousReference");
}
public IFilter getPreviousReferenceFilter()
{
return this.msg.getField("PreviousReference");
}
public LINK setPreviousReferenceFilter(IFilter filter)
{
this.msg.addField("PreviousReference", filter);
return this;
}
public LINK removePreviousReference()
{
this.msg.removeField("PreviousReference");
return this;
}
public boolean isSetPreviousReference()
{
return this.msg.getField("PreviousReference") != null;
}
public boolean isFilterPreviousReference()
{
return this.msg.getField("PreviousReference") instanceof IFilter;
}
}