com.exactpro.sf.messages.testaml.OrderEntry 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 OrderEntry extends BaseMessage
{
public static final String MESSAGE_NAME = "OrderEntry";
public OrderEntry(IMessageFactory messageFactory)
{
this(messageFactory.createMessage(MESSAGE_NAME, (messageFactory.getNamespace() == null) ? "TestAML" : messageFactory.getNamespace()));
}
/**
* @deprecated Please use {@link #OrderEntry(IMessageFactory)}
*/
@Deprecated
public OrderEntry()
{
this(DefaultMessageFactory.getFactory());
}
/**
* @deprecated Please use {@link #OrderEntry(IMessageFactory)}
*/
@Deprecated
public OrderEntry(String name, String namespace)
{
super(DefaultMessageFactory.getFactory().createMessage(name, namespace));
}
public OrderEntry(IMessage msg)
{
super(msg);
}
@Override
public OrderEntry clone() {
return (OrderEntry)super.clone();
}
public OrderEntry setClearingData(com.exactpro.sf.messages.testaml.ClearingData value)
{
this.msg.addField("ClearingData", value.getMessage());
return this;
}
public com.exactpro.sf.messages.testaml.ClearingData getClearingData()
{
Object value = this.msg.getField("ClearingData");
return new com.exactpro.sf.messages.testaml.ClearingData((IMessage)value);
}
public IFilter getClearingDataFilter()
{
return this.msg.getField("ClearingData");
}
public OrderEntry setClearingDataFilter(IFilter filter)
{
this.msg.addField("ClearingData", filter);
return this;
}
public OrderEntry removeClearingData()
{
this.msg.removeField("ClearingData");
return this;
}
public boolean isSetClearingData()
{
return this.msg.getField("ClearingData") != null;
}
public boolean isFilterClearingData()
{
return this.msg.getField("ClearingData") instanceof IFilter;
}
public OrderEntry setGroup(String value)
{
this.msg.addField("Group", value);
return this;
}
public String getGroup()
{
Object value = this.msg.getField("Group");
return (String)value;
}
public Object getUntypedGroup()
{
return this.msg.getField("Group");
}
public IFilter getGroupFilter()
{
return this.msg.getField("Group");
}
public OrderEntry setGroupFilter(IFilter filter)
{
this.msg.addField("Group", filter);
return this;
}
public OrderEntry removeGroup()
{
this.msg.removeField("Group");
return this;
}
public boolean isSetGroup()
{
return this.msg.getField("Group") != null;
}
public boolean isFilterGroup()
{
return this.msg.getField("Group") instanceof IFilter;
}
public OrderEntry setQuantity(long value)
{
this.msg.addField("Quantity", value);
return this;
}
public long getQuantity()
{
Object value = this.msg.getField("Quantity");
if(value == null)
{
throw new FieldNotFoundException(" Quantity ");
}
return (Long)value;
}
public Object getUntypedQuantity()
{
return this.msg.getField("Quantity");
}
public IFilter getQuantityFilter()
{
return this.msg.getField("Quantity");
}
public OrderEntry setQuantityFilter(IFilter filter)
{
this.msg.addField("Quantity", filter);
return this;
}
public OrderEntry removeQuantity()
{
this.msg.removeField("Quantity");
return this;
}
public boolean isSetQuantity()
{
return this.msg.getField("Quantity") != null;
}
public boolean isFilterQuantity()
{
return this.msg.getField("Quantity") instanceof IFilter;
}
public OrderEntry setPrice(double value)
{
this.msg.addField("Price", value);
return this;
}
public double getPrice()
{
Object value = this.msg.getField("Price");
if(value == null)
{
throw new FieldNotFoundException(" Price ");
}
return (Double)value;
}
public Object getUntypedPrice()
{
return this.msg.getField("Price");
}
public IFilter getPriceFilter()
{
return this.msg.getField("Price");
}
public OrderEntry setPriceFilter(IFilter filter)
{
this.msg.addField("Price", filter);
return this;
}
public OrderEntry removePrice()
{
this.msg.removeField("Price");
return this;
}
public boolean isSetPrice()
{
return this.msg.getField("Price") != null;
}
public boolean isFilterPrice()
{
return this.msg.getField("Price") instanceof IFilter;
}
public OrderEntry setPriceType(String value)
{
this.msg.addField("PriceType", value);
return this;
}
public String getPriceType()
{
Object value = this.msg.getField("PriceType");
return (String)value;
}
public Object getUntypedPriceType()
{
return this.msg.getField("PriceType");
}
public IFilter getPriceTypeFilter()
{
return this.msg.getField("PriceType");
}
public OrderEntry setPriceTypeFilter(IFilter filter)
{
this.msg.addField("PriceType", filter);
return this;
}
public OrderEntry removePriceType()
{
this.msg.removeField("PriceType");
return this;
}
public boolean isSetPriceType()
{
return this.msg.getField("PriceType") != null;
}
public boolean isFilterPriceType()
{
return this.msg.getField("PriceType") instanceof IFilter;
}
public OrderEntry setGTDDate(String value)
{
this.msg.addField("GTDDate", value);
return this;
}
public String getGTDDate()
{
Object value = this.msg.getField("GTDDate");
return (String)value;
}
public Object getUntypedGTDDate()
{
return this.msg.getField("GTDDate");
}
public IFilter getGTDDateFilter()
{
return this.msg.getField("GTDDate");
}
public OrderEntry setGTDDateFilter(IFilter filter)
{
this.msg.addField("GTDDate", filter);
return this;
}
public OrderEntry removeGTDDate()
{
this.msg.removeField("GTDDate");
return this;
}
public boolean isSetGTDDate()
{
return this.msg.getField("GTDDate") != null;
}
public boolean isFilterGTDDate()
{
return this.msg.getField("GTDDate") instanceof IFilter;
}
}