gt:         if (fixml.getSettlSessID() != null) {
context: /*
   *   Copyright (c) 2006-2016 Marvisan Pty. Ltd. All rights reserved.
   *               Use is subject to license terms.
   */
  
  /*
   * CollateralReportMsg50SP1.java
   *
   * $Id: AllocationInstructionMsg44.java,v 1.3 2011-04-14 23:44:38 vrotaru Exp $
   */
  package net.hades.fix.message.impl.v50sp1;
  
  import net.hades.fix.message.CollateralReportMsg;
  import net.hades.fix.message.FragmentContext;
  import net.hades.fix.message.Header;
  import net.hades.fix.message.exception.InvalidMsgException;
  import net.hades.fix.message.exception.TagNotPresentException;
  import net.hades.fix.message.group.StipulationsGroup;
  import net.hades.fix.message.group.TrdCollGroup;
  import net.hades.fix.message.group.TrdRegTimestampsGroup;
  import net.hades.fix.message.group.impl.v50sp1.MiscFeeGroup50SP1;
  import net.hades.fix.message.group.impl.v50sp1.TrdCollGroup50SP1;
  import net.hades.fix.message.group.impl.v50sp1.TrdRegTimestampsGroup50SP1;
  import net.hades.fix.message.struct.Tag;
  import net.hades.fix.message.xml.codec.jaxb.adapter.FixBooleanAdapter;
  
  import java.nio.ByteBuffer;
  import java.util.ArrayList;
  import java.util.Arrays;
  import java.util.Date;
  import java.util.HashSet;
  import java.util.List;
  import java.util.Set;
  
  import javax.xml.bind.annotation.XmlAccessType;
  import javax.xml.bind.annotation.XmlAccessorType;
  import javax.xml.bind.annotation.XmlAttribute;
  import javax.xml.bind.annotation.XmlElementRef;
  import javax.xml.bind.annotation.XmlRootElement;
  import javax.xml.bind.annotation.XmlType;
  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
  
  import net.hades.fix.message.FIXFragment;
  import net.hades.fix.message.comp.FinancingDetails;
  import net.hades.fix.message.comp.Instrument;
  import net.hades.fix.message.comp.InstrumentLeg;
  import net.hades.fix.message.comp.Parties;
  import net.hades.fix.message.comp.SettlInstructionsData;
  import net.hades.fix.message.comp.SpreadOrBenchmarkCurveData;
  import net.hades.fix.message.comp.Stipulations;
  import net.hades.fix.message.comp.UnderlyingInstrument;
  import net.hades.fix.message.comp.impl.v50sp1.FinancingDetails50SP1;
  import net.hades.fix.message.comp.impl.v50sp1.Instrument50SP1;
  import net.hades.fix.message.comp.impl.v50sp1.InstrumentLeg50SP1;
  import net.hades.fix.message.comp.impl.v50sp1.Parties50SP1;
  import net.hades.fix.message.comp.impl.v50sp1.SettlInstructionsData50SP1;
  import net.hades.fix.message.comp.impl.v50sp1.SpreadOrBenchmarkCurveData50SP1;
  import net.hades.fix.message.comp.impl.v50sp1.Stipulations50SP1;
  import net.hades.fix.message.comp.impl.v50sp1.UnderlyingInstrument50SP1;
  import net.hades.fix.message.exception.BadFormatMsgException;
  import net.hades.fix.message.group.ExecCollGroup;
  import net.hades.fix.message.group.MiscFeeGroup;
  import net.hades.fix.message.group.PartyGroup;
  import net.hades.fix.message.group.impl.v50sp1.ExecCollGroup50SP1;
  import net.hades.fix.message.type.AccountType;
  import net.hades.fix.message.type.ApplVerID;
  import net.hades.fix.message.type.BeginString;
  import net.hades.fix.message.type.CollApplType;
  import net.hades.fix.message.type.CollStatus;
  import net.hades.fix.message.type.Currency;
  import net.hades.fix.message.type.PriceType;
  import net.hades.fix.message.type.QtyType;
  import net.hades.fix.message.type.Side;
  import net.hades.fix.message.xml.codec.jaxb.adapter.FixDateAdapter;
  import net.hades.fix.message.xml.codec.jaxb.adapter.FixDateTimeAdapter;
  
  /**
   * FIX version 5.0SP1 CollateralReportMsg implementation.
   *
   * @author <a href="mailto:support@marvisan.com">Support Team</a>
   * @version $Revision: 1.3 $
   * @created 19/12/2011, 9:32:41 AM
   */
  @XmlRootElement(name="CollRpt")
  @XmlType(propOrder = {"header", "partyIDGroups", "execCollGroups", "trdCollGroups", "instrument", "financingDetails", "instrumentLegs", "underlyingInstruments",
      "trdRegTimestampsGroups", "miscFeeGroups", "spreadOrBenchmarkCurveData", "stipulationsGroups", "settlInstructionsData"})
  @XmlAccessorType(XmlAccessType.NONE)
  public class CollateralReportMsg50SP1 extends CollateralReportMsg {
  
      // <editor-fold defaultstate="collapsed" desc="Constants">
  
      private static final long serialVersionUID = 1L;
  
      protected static final Set<Integer> PARTIES_COMP_TAGS = new Parties50SP1().getFragmentAllTags();
      protected static final Set<Integer> EXEC_COLL_GROUP_TAGS = new ExecCollGroup50SP1().getFragmentAllTags();
      protected static final Set<Integer> TRD_COLL_GROUP_TAGS = new TrdCollGroup50SP1().getFragmentAllTags();
      protected static final Set<Integer> INSTRUMENT_COMP_TAGS = new Instrument50SP1().getFragmentAllTags();
      protected static final Set<Integer> FINANCING_DETAILS_COMP_TAGS = new FinancingDetails50SP1().getFragmentAllTags();
      protected static final Set<Integer> INSTRUMENT_LEG_COMP_TAGS = new InstrumentLeg50SP1().getFragmentAllTags();
      protected static final Set<Integer> UNDERLYING_INSTRUMENT_COMP_TAGS = new UnderlyingInstrument50SP1().getFragmentAllTags();
      protected static final Set<Integer> TRD_REG_TSTAMP_GROUP_TAGS = new TrdRegTimestampsGroup50SP1().getFragmentAllTags();
      protected static final Set<Integer> MISC_FEE_GROUP_TAGS = new MiscFeeGroup50SP1().getFragmentAllTags();
      protected static final Set<Integer> SPREAD_COMP_TAGS = new SpreadOrBenchmarkCurveData50SP1().getFragmentAllTags();
      protected static final Set<Integer> STIPULATIONS_COMP_TAGS = new Stipulations50SP1().getFragmentAllTags();
      protected static final Set<Integer> SETTL_INST_COMP_TAGS = new SettlInstructionsData50SP1().getFragmentAllTags();
  
      protected static final Set<Integer> START_COMP_TAGS;
  
      protected static final Set<Integer> ALL_TAGS;
  
      // </editor-fold>
  
      // <editor-fold defaultstate="collapsed" desc="Static Block">
  
      static {
          ALL_TAGS = new HashSet<Integer>(TAGS);
          ALL_TAGS.addAll(START_DATA_TAGS);
          ALL_TAGS.addAll(PARTIES_COMP_TAGS);
          ALL_TAGS.addAll(EXEC_COLL_GROUP_TAGS);
          ALL_TAGS.addAll(TRD_COLL_GROUP_TAGS);
          ALL_TAGS.addAll(INSTRUMENT_COMP_TAGS);
          ALL_TAGS.addAll(FINANCING_DETAILS_COMP_TAGS);
          ALL_TAGS.addAll(INSTRUMENT_LEG_COMP_TAGS);
          ALL_TAGS.addAll(UNDERLYING_INSTRUMENT_COMP_TAGS);
          ALL_TAGS.addAll(TRD_REG_TSTAMP_GROUP_TAGS);
          ALL_TAGS.addAll(MISC_FEE_GROUP_TAGS);
          ALL_TAGS.addAll(SPREAD_COMP_TAGS);
          ALL_TAGS.addAll(STIPULATIONS_COMP_TAGS);
          ALL_TAGS.addAll(SETTL_INST_COMP_TAGS);
          START_COMP_TAGS = new HashSet<Integer>(PARTIES_COMP_TAGS);
          START_COMP_TAGS.addAll(EXEC_COLL_GROUP_TAGS);
          START_COMP_TAGS.addAll(TRD_COLL_GROUP_TAGS);
          START_COMP_TAGS.addAll(INSTRUMENT_COMP_TAGS);
          START_COMP_TAGS.addAll(FINANCING_DETAILS_COMP_TAGS);
          START_COMP_TAGS.addAll(INSTRUMENT_LEG_COMP_TAGS);
          START_COMP_TAGS.addAll(UNDERLYING_INSTRUMENT_COMP_TAGS);
          START_COMP_TAGS.addAll(TRD_REG_TSTAMP_GROUP_TAGS);
          START_COMP_TAGS.addAll(MISC_FEE_GROUP_TAGS);
          START_COMP_TAGS.addAll(SPREAD_COMP_TAGS);
          START_COMP_TAGS.addAll(STIPULATIONS_COMP_TAGS);
          START_COMP_TAGS.addAll(SETTL_INST_COMP_TAGS);
      }
  
      // </editor-fold>
  
      // <editor-fold defaultstate="collapsed" desc="Attributes">
      // </editor-fold>
  
      // <editor-fold defaultstate="collapsed" desc="Constructors">
  
      public CollateralReportMsg50SP1() {
          super();
      }
  
      public CollateralReportMsg50SP1(Header header, ByteBuffer rawMsg)
      throws InvalidMsgException, TagNotPresentException, BadFormatMsgException {
          super(header, rawMsg);
      }
  
      public CollateralReportMsg50SP1(BeginString beginString) throws InvalidMsgException {
          super(beginString);
      }
  
      public CollateralReportMsg50SP1(BeginString beginString, ApplVerID applVerID) throws InvalidMsgException {
          super(beginString, applVerID);
      }
  
      // </editor-fold>
  
      // <editor-fold defaultstate="collapsed" desc="Public Methods">
  
      @Override
      public Set<Integer> getFragmentTags() {
          return TAGS;
      }
  
      @Override
      public Set<Integer> getFragmentAllTags() {
          return ALL_TAGS;
      }
  
      @Override
      public void copyFixmlData(FIXFragment fragment) {
          CollateralReportMsg50SP1 fixml = (CollateralReportMsg50SP1) fragment;
          if (fixml.getCollRptID() != null) {
              collRptID = fixml.getCollRptID();
          }
          if (fixml.getCollInquiryID() != null) {
              collInquiryID = fixml.getCollInquiryID();
          }
          if (fixml.getTransactTime() != null) {
              transactTime = fixml.getTransactTime();
          }
          if (fixml.getCollApplType() != null) {
              collApplType = fixml.getCollApplType();
          }
          if (fixml.getFinancialStatus() != null) {
              financialStatus = fixml.getFinancialStatus();
          }
          if (fixml.getCollStatus() != null) {
              collStatus = fixml.getCollStatus();
          }
          if (fixml.getTotNumReports() != null) {
              totNumReports = fixml.getTotNumReports();
          }
          if (fixml.getLastRptRequested() != null) {
              lastRptRequested = fixml.getLastRptRequested();
          }
          if (fixml.getParties() != null) {
              setParties(fixml.getParties());
          }
          if (fixml.getAccount() != null) {
              account = fixml.getAccount();
          }
          if (fixml.getAccountType() != null) {
              accountType = fixml.getAccountType();
          }
          if (fixml.getClOrdID() != null) {
              clOrdID = fixml.getClOrdID();
          }
          if (fixml.getOrderID() != null) {
              orderID = fixml.getOrderID();
          }
          if (fixml.getSecondaryOrderID() != null) {
              secondaryOrderID = fixml.getSecondaryOrderID();
          }
          if (fixml.getSecondaryClOrdID() != null) {
              secondaryClOrdID = fixml.getSecondaryClOrdID();
          }
          if (fixml.getExecCollGroups() != null) {
              setExecCollGroups(fixml.getExecCollGroups());
          }
          if (fixml.getTrdCollGroups() != null) {
              setTrdCollGroups(fixml.getTrdCollGroups());
          }
          if (fixml.getInstrument() != null) {
              setInstrument(fixml.getInstrument());
          }
          if (fixml.getFinancingDetails() != null) {
              setFinancingDetails(fixml.getFinancingDetails());
          }
          if (fixml.getSettlDate() != null) {
              settlDate = fixml.getSettlDate();
          }
          if (fixml.getQuantity() != null) {
              quantity = fixml.getQuantity();
          }
          if (fixml.getQtyType() != null) {
              qtyType = fixml.getQtyType();
          }
          if (fixml.getCurrency() != null) {
              currency = fixml.getCurrency();
          }
          if (fixml.getInstrumentLegs() != null && fixml.getInstrumentLegs().length > 0) {
              setInstrumentLegs(fixml.getInstrumentLegs());
          }
          if (fixml.getUnderlyingInstruments() != null && fixml.getUnderlyingInstruments().length > 0) {
              setUnderlyingInstruments(fixml.getUnderlyingInstruments());
          }
          if (fixml.getMarginExcess() != null) {
              marginExcess = fixml.getMarginExcess();
          }
          if (fixml.getTotalNetValue() != null) {
              totalNetValue = fixml.getTotalNetValue();
          }
          if (fixml.getCashOutstanding() != null) {
              cashOutstanding = fixml.getCashOutstanding();
          }
          if (fixml.getTrdRegTimestampsGroups() != null && fixml.getTrdRegTimestampsGroups().length > 0) {
              setTrdRegTimestampsGroups(fixml.getTrdRegTimestampsGroups());
          }
          if (fixml.getSide() != null) {
              side = fixml.getSide();
          }
          if (fixml.getMiscFeeGroups() != null) {
              setMiscFeeGroups(fixml.getMiscFeeGroups());
          }
          if (fixml.getPrice() != null) {
              price = fixml.getPrice();
          }
          if (fixml.getPriceType() != null) {
              priceType = fixml.getPriceType();
          }
          if (fixml.getAccruedInterestAmt() != null) {
              accruedInterestAmt = fixml.getAccruedInterestAmt();
          }
          if (fixml.getEndAccruedInterestAmt() != null) {
              endAccruedInterestAmt = fixml.getEndAccruedInterestAmt();
          }
          if (fixml.getStartCash() != null) {
              startCash = fixml.getStartCash();
          }
          if (fixml.getEndCash() != null) {
              endCash = fixml.getEndCash();
          }
          if (fixml.getSpreadOrBenchmarkCurveData() != null) {
              setSpreadOrBenchmarkCurveData(fixml.getSpreadOrBenchmarkCurveData());
          }
          if (fixml.getStipulations() != null) {
              setStipulations(fixml.getStipulations());
          }
          if (fixml.getSettlInstructionsData() != null) {
              setSettlInstructionsData(fixml.getSettlInstructionsData());
          }
          if (fixml.getTradingSessionID() != null) {
              tradingSessionID = fixml.getTradingSessionID();
          }
          if (fixml.getTradingSessionSubID() != null) {
              tradingSessionSubID = fixml.getTradingSessionSubID();
          }
  