コード例 #1
0
 public AcEdiSegmentAbstract createLocalizedSegment(JwEdiSegment s) {
   if (s.hasTag(AcEdiUspsD1Resdit2ConstantsIF.TAG_BEGINNING_OF_MESSAGE))
     return new AcEdiUspsD1Resdit2Bgm(s);
   if (s.hasTag(AcEdiUspsD1Resdit2ConstantsIF.TAG_CONSIGNMENT_INFORMATION))
     return new AcEdiUspsD1Resdit2Cni(s);
   if (s.hasTag(AcEdiUspsD1Resdit2ConstantsIF.TAG_STATUS)) return new AcEdiUspsD1Resdit2Sts(s);
   if (s.hasTag(AcEdiUspsD1Resdit2ConstantsIF.TAG_DATE_TIME_PERIOD))
     return new AcEdiUspsD1Resdit2Dtm(s);
   if (s.hasTag(AcEdiUspsD1Resdit2ConstantsIF.TAG_PLACE_LOCATION_IDENTIFICATION))
     return new AcEdiUspsD1Resdit2Loc(s);
   if (s.hasTag(AcEdiUspsD1Resdit2ConstantsIF.TAG_PACKAGE_IDENTIFICATION))
     return new AcEdiUspsD1Resdit2Pci(s);
   if (s.hasTag(AcEdiUspsD1Resdit2ConstantsIF.TAG_DETAILS_OF_TRANSPORT))
     return new AcEdiUspsD1Resdit2Tdt(s);
   if (s.hasTag(JwEdiConstantsIF.TAG_MESSAGE_HEADER)) return new AcEdiUspsD1Resdit2Unh(s);
   if (s.hasTag(JwEdiConstantsIF.TAG_MESSAGE_TRAILER)) return new AcEdiUspsD1Resdit2Unt(s);
   AcEdiUnknownSegmentException ex = new AcEdiUnknownSegmentException();
   ex.setTag(s.getTag());
   throw ex;
 }
コード例 #2
0
 public AcEdiSegmentAbstract createLocalizedSegment(JwEdiSegment s) {
   if (s.hasTag(AcEdiUpuResdit10ConstantsIF.TAG_BEGINNING_OF_MESSAGE))
     return new AcEdiUpuResdit10Bgm(s);
   if (s.hasTag(AcEdiUpuResdit10ConstantsIF.TAG_CONSIGNMENT_INFORMATION))
     return new AcEdiUpuResdit10Cni(s);
   if (s.hasTag(AcEdiUpuResdit10ConstantsIF.TAG_STATUS)) return new AcEdiUpuResdit10Sts(s);
   if (s.hasTag(AcEdiUpuResdit10ConstantsIF.TAG_DATE_TIME_PERIOD))
     return new AcEdiUpuResdit10Dtm(s);
   if (s.hasTag(AcEdiUpuResdit10ConstantsIF.TAG_NAME_AND_ADDRESS))
     return new AcEdiUpuResdit10Nad(s);
   if (s.hasTag(AcEdiUpuResdit10ConstantsIF.TAG_EQUIPMENT_DETAILS))
     return new AcEdiUpuResdit10Eqd(s);
   if (s.hasTag(AcEdiUpuResdit10ConstantsIF.TAG_GOODS_ITEM_DETAILS))
     return new AcEdiUpuResdit10Gid(s);
   if (s.hasTag(AcEdiUpuResdit10ConstantsIF.TAG_PLACE_LOCATION_IDENTIFICATION))
     return new AcEdiUpuResdit10Loc(s);
   if (s.hasTag(AcEdiUpuResdit10ConstantsIF.TAG_PACKAGE_IDENTIFICATION))
     return new AcEdiUpuResdit10Pci(s);
   if (s.hasTag(AcEdiUpuResdit10ConstantsIF.TAG_DETAILS_OF_TRANSPORT))
     return new AcEdiUpuResdit10Tdt(s);
   if (s.hasTag(JwEdiConstantsIF.TAG_MESSAGE_HEADER)) return new AcEdiUpuResdit10Unh(s);
   if (s.hasTag(JwEdiConstantsIF.TAG_MESSAGE_TRAILER)) return new AcEdiUpuResdit10Unt(s);
   AcEdiUnknownSegmentException ex = new AcEdiUnknownSegmentException();
   ex.setTag(s.getTag());
   throw ex;
 }
コード例 #3
0
  public AcEdiSegmentAbstract createLocalizedSegment(JwEdiSegment s) {
    if (s.hasTag(AcEdiUspsD1Cardit2r1ConstantsIF.TAG_BEGINNING_OF_MESSAGE))
      return new AcEdiUspsD1Cardit2r1Bgm(s);
    if (s.hasTag(AcEdiUspsD1Cardit2r1ConstantsIF.TAG_CONTROL_TOTALS))
      return new AcEdiUspsD1Cardit2r1Cnt(s);
    if (s.hasTag(AcEdiUspsD1Cardit2r1ConstantsIF.TAG_DATE_TIME_PERIOD))
      return new AcEdiUspsD1Cardit2r1Dtm(s);
    if (s.hasTag(AcEdiUspsD1Cardit2r1ConstantsIF.TAG_FREE_TEXT))
      return new AcEdiUspsD1Cardit2r1Ftx(s);
    if (s.hasTag(AcEdiUspsD1Cardit2r1ConstantsIF.TAG_GOODS_ITEM_DETAILS))
      return new AcEdiUspsD1Cardit2r1Gid(s);
    if (s.hasTag(AcEdiUspsD1Cardit2r1ConstantsIF.TAG_PLACE_LOCATION_IDENTIFICATION))
      return new AcEdiUspsD1Cardit2r1Loc(s);
    if (s.hasTag(AcEdiUspsD1Cardit2r1ConstantsIF.TAG_MEASUREMENTS))
      return new AcEdiUspsD1Cardit2r1Mea(s);
    if (s.hasTag(AcEdiUspsD1Cardit2r1ConstantsIF.TAG_PACKAGE_IDENTIFICATION))
      return new AcEdiUspsD1Cardit2r1Pci(s);
    if (s.hasTag(AcEdiUspsD1Cardit2r1ConstantsIF.TAG_DETAILS_OF_TRANSPORT))
      return new AcEdiUspsD1Cardit2r1Tdt(s);
    if (s.hasTag(JwEdiConstantsIF.TAG_MESSAGE_HEADER)) return new AcEdiUspsD1Cardit2r1Unh(s);
    if (s.hasTag(JwEdiConstantsIF.TAG_MESSAGE_TRAILER)) return new AcEdiUspsD1Cardit2r1Unt(s);

    AcEdiUnknownSegmentException ex = new AcEdiUnknownSegmentException();
    ex.setTag(s.getTag());
    throw ex;
  }