Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<binding xmlns:ns1="http://www.opentravel.org/OTA/2003/05" name="binding" package="org.jibx.schema.org.opentravel._2012A.travelitinerary" trim-whitespace="true">
  <namespace uri="http://www.opentravel.org/OTA/2003/05" default="elements"/>
  <include path="../../../base.cruise/target/generated-sources/binding.xml" precompiled="true"/>
  <include path="../../../hotel/target/generated-sources/binding.xml" precompiled="true"/>
  <mapping class="org.jibx.schema.org.opentravel._2012A.travelitinerary.RS" name="OTA_TravelItineraryRS">
    <format type="org.jibx.schema.org.opentravel._2012A.travelitinerary.RS$Remarks$Remark" enum-value-method="xmlValue"/>
    <structure ordered="false" choice="true">
      <structure test-method="ifSuccess" usage="optional">
        <structure map-as="ns1:SuccessType" get-method="getSuccess" set-method="setSuccess" name="Success"/>
        <structure map-as="ns1:WarningsType" get-method="getWarnings" set-method="setWarnings" usage="optional" name="Warnings"/>
        <structure name="TravelItinerary">
          <structure map-as="ns1:UniqueID_Type" get-method="getTravelItineraryItineraryRef" set-method="setTravelItineraryItineraryRef" name="ItineraryRef"/>
          <structure name="CustomerInfos">
            <collection get-method="getTravelItineraryCustomerInfoList" set-method="setTravelItineraryCustomerInfoList" create-type="java.util.ArrayList">
              <structure map-as="ns1:CustomerInfoType" name="CustomerInfo"/>
            </collection>
            <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getTravelItineraryTPAExtensions" set-method="setTravelItineraryTPAExtensions" usage="optional"/>
          </structure>
          <structure map-as="ns1:ItineraryInfoType" get-method="getTravelItineraryItineraryInfo" set-method="setTravelItineraryItineraryInfo" name="ItineraryInfo"/>
          <structure map-as="ns1:AssociatedContentType" get-method="getTravelItineraryAssociatedContent" set-method="setTravelItineraryAssociatedContent" usage="optional" name="AssociatedContent"/>
          <structure map-as="ns1:TravelCostType" get-method="getTravelItineraryTravelCost" set-method="setTravelItineraryTravelCost" usage="optional" name="TravelCost"/>
          <structure get-method="getRemarks" set-method="setRemarks" usage="optional" name="Remarks">
            <collection get-method="getRemarkList" set-method="setRemarkList" create-type="java.util.ArrayList">
              <value style="element" name="Remark" type="java.lang.String"/>
            </collection>
            <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getTPAExtensions" set-method="setTPAExtensions" usage="optional"/>
            <value style="attribute" name="RemarkType" get-method="getRemark" set-method="setRemark" usage="optional"/>
          </structure>
          <structure map-as="ns1:AccessesType" get-method="getTravelItineraryUpdatedBy" set-method="setTravelItineraryUpdatedBy" name="UpdatedBy"/>
          <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getTravelItineraryTPAExtensions1" set-method="setTravelItineraryTPAExtensions1" usage="optional"/>
        </structure>
      </structure>
      <structure map-as="ns1:ErrorsType" test-method="ifErrors" get-method="getErrors" set-method="setErrors" usage="optional" name="Errors"/>
    </structure>
    <structure map-as="ns1:OTA_PayloadStdAttributes-AttributeGroup" get-method="getOTAPayloadStdAttributes" set-method="setOTAPayloadStdAttributes"/>
  </mapping>
  <mapping abstract="true" type-name="ns1:AssociatedContentType" class="org.jibx.schema.org.opentravel._2012A.travelitinerary.AssociatedContent">
    <structure name="AssocItems">
      <collection get-method="getAssocItemList" set-method="setAssocItemList" create-type="java.util.ArrayList">
        <structure type="org.jibx.schema.org.opentravel._2012A.travelitinerary.AssociatedContent$AssocItem" name="AssocItem">
          <structure map-as="ns1:UniqueID_Type" get-method="getAssocItemRef" set-method="setAssocItemRef" name="AssocItemRef"/>
          <value style="attribute" name="RPH" get-method="getRPH" set-method="setRPH"/>
          <value style="attribute" name="DateTime" get-method="getDateTime" set-method="setDateTime" usage="optional"/>
          <value style="attribute" name="Type" get-method="getType" set-method="setType"/>
        </structure>
      </collection>
      <structure map-as="ns1:ItinPricingType" get-method="getAssocItemsPricing" set-method="setAssocItemsPricing" usage="optional" name="Pricing"/>
      <structure map-as="ns1:SpecialReqDetailsType" get-method="getAssocItemsSpecialRequestDetails" set-method="setAssocItemsSpecialRequestDetails" name="SpecialRequestDetails"/>
    </structure>
    <structure map-as="ns1:ItinPricingType" get-method="getPricing" set-method="setPricing" usage="optional" name="Pricing"/>
    <structure name="SpecialRequestDetails">
      <structure map-as="ns1:SpecialReqDetailsType" get-method="getSpecialRequestDetailsSpecialReqDetails" set-method="setSpecialRequestDetailsSpecialReqDetails" usage="optional"/>
      <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getSpecialRequestDetailsTPAExtensions" set-method="setSpecialRequestDetailsTPAExtensions" usage="optional"/>
    </structure>
    <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getTPAExtensions" set-method="setTPAExtensions" usage="optional"/>
  </mapping>
  <mapping abstract="true" type-name="ns1:CustomerInfoType" class="org.jibx.schema.org.opentravel._2012A.travelitinerary.CustomerInfo">
    <structure map-as="ns1:CustomerType" get-method="getCustomer" set-method="setCustomer" usage="optional" name="Customer"/>
    <structure map-as="ns1:UniqueID_Type" get-method="getProfileRef" set-method="setProfileRef" usage="optional" name="ProfileRef"/>
    <collection get-method="getRemarkList" set-method="setRemarkList" usage="optional" create-type="java.util.ArrayList">
      <value style="element" name="Remarks" type="java.lang.String"/>
    </collection>
    <structure map-as="ns1:UniqueID_Type" get-method="getAgencyAcctNumber" set-method="setAgencyAcctNumber" name="AgencyAcctNumber"/>
    <value style="attribute" name="RPH" get-method="getRPH" set-method="setRPH" usage="optional"/>
  </mapping>
  <mapping abstract="true" type-name="ns1:ItinPricingType" class="org.jibx.schema.org.opentravel._2012A.travelitinerary.ItinPricing">
    <structure name="Cost">
      <structure map-as="ns1:TotalType" get-method="getCostTotal" set-method="setCostTotal" usage="optional"/>
      <value style="attribute" name="FormOfPaymentRPH" get-method="getCostFormOfPaymentRPH" set-method="setCostFormOfPaymentRPH" usage="optional"/>
    </structure>
    <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getTPAExtensions" set-method="setTPAExtensions" usage="optional"/>
    <value style="attribute" name="ItemRPH_List" get-method="getItemRPHList" set-method="setItemRPHList" usage="optional" serializer="org.jibx.schema.org.opentravel._2012A.travelitinerary.ItinPricing.serializeItemRPHList" deserializer="org.jibx.schema.org.opentravel._2012A.travelitinerary.ItinPricing.deserializeItemRPHList"/>
    <value style="attribute" name="AssociatedItemRPH" get-method="getAssociatedItemRPHs" set-method="setAssociatedItemRPHs" usage="optional" serializer="org.jibx.schema.org.opentravel._2012A.travelitinerary.ItinPricing.serializeAssociatedItemRPHs" deserializer="org.jibx.schema.org.opentravel._2012A.travelitinerary.ItinPricing.deserializeAssociatedItemRPHs"/>
  </mapping>
  <mapping abstract="true" type-name="ns1:ItineraryInfoType" class="org.jibx.schema.org.opentravel._2012A.travelitinerary.ItineraryInfo">
    <structure map-as="ns1:ContactPersonType" get-method="getContactInfo" set-method="setContactInfo" usage="optional" name="ContactInfo"/>
    <structure map-as="ns1:ReservationItemsType" get-method="getReservationItems" set-method="setReservationItems" usage="optional" name="ReservationItems"/>
    <structure get-method="getTicketing" set-method="setTicketing" usage="optional" name="Ticketing">
      <structure map-as="ns1:TicketingInfoRS_Type"/>
      <value style="attribute" name="PlatingCarrier" get-method="getPlatingCarrier" set-method="setPlatingCarrier" usage="optional"/>
    </structure>
    <collection get-method="getItineraryPricingList" set-method="setItineraryPricingList" usage="optional" create-type="java.util.ArrayList">
      <structure map-as="ns1:ItinPricingType" name="ItineraryPricing"/>
    </collection>
    <structure name="SpecialRequestDetails">
      <structure map-as="ns1:SpecialReqDetailsType" get-method="getSpecialRequestDetailsSpecialReqDetails" set-method="setSpecialRequestDetailsSpecialReqDetails" usage="optional"/>
      <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getSpecialRequestDetailsTPAExtensions" set-method="setSpecialRequestDetailsTPAExtensions" usage="optional"/>
    </structure>
    <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getTPAExtensions" set-method="setTPAExtensions" usage="optional"/>
  </mapping>
  <mapping abstract="true" type-name="ns1:ReservationItemsType" class="org.jibx.schema.org.opentravel._2012A.travelitinerary.ReservationItems">
    <collection get-method="getItemList" set-method="setItemList" create-type="java.util.ArrayList">
      <structure type="org.jibx.schema.org.opentravel._2012A.travelitinerary.ReservationItems$Item" name="Item">
        <structure map-as="ns1:TravelSegmentType"/>
        <value style="attribute" name="ItinSeqNumber" get-method="getItinSeqNumber" set-method="setItinSeqNumber" usage="optional"/>
        <value style="attribute" name="IsPassive" get-method="getIsPassive" set-method="setIsPassive" usage="optional"/>
        <value style="attribute" name="IssueBoardingPass" get-method="getIssueBoardingPass" set-method="setIssueBoardingPass" usage="optional"/>
        <value style="attribute" name="BoardingPassIssued" get-method="getBoardingPassIssued" set-method="setBoardingPassIssued" usage="optional"/>
      </structure>
    </collection>
    <collection get-method="getItemPricingList" set-method="setItemPricingList" usage="optional" create-type="java.util.ArrayList">
      <structure type="org.jibx.schema.org.opentravel._2012A.travelitinerary.ReservationItems$ItemPricing" name="ItemPricing">
        <structure map-as="ns1:ItinPricingType"/>
        <structure map-as="ns1:BookingPriceInfoType" get-method="getAirFareInfo" set-method="setAirFareInfo" name="AirFareInfo"/>
      </structure>
    </collection>
    <structure get-method="getSpecialRequestDetails" set-method="setSpecialRequestDetails" usage="optional" name="SpecialRequestDetails">
      <structure map-as="ns1:SpecialReqDetailsType"/>
      <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getTPAExtensions" set-method="setTPAExtensions" usage="optional"/>
    </structure>
    <value style="attribute" name="ChronoOrdered" get-method="getChronoOrdered" set-method="setChronoOrdered" usage="optional"/>
  </mapping>
  <mapping abstract="true" type-name="ns1:TravelCostType" class="org.jibx.schema.org.opentravel._2012A.travelitinerary.TravelCost">
    <collection get-method="getFormOfPaymentList" set-method="setFormOfPaymentList" create-type="java.util.ArrayList">
      <structure map-as="ns1:PaymentFormType" name="FormOfPayment"/>
    </collection>
    <structure get-method="getCostTotals" set-method="setCostTotals" usage="optional" name="CostTotals">
      <structure map-as="ns1:TotalType"/>
      <value style="attribute" name="FormOfPaymentRPH" get-method="getFormOfPaymentRPH" set-method="setFormOfPaymentRPH" usage="optional"/>
    </structure>
    <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getTPAExtensions" set-method="setTPAExtensions" usage="optional"/>
  </mapping>
  <mapping abstract="true" type-name="ns1:TravelSegmentType" class="org.jibx.schema.org.opentravel._2012A.travelitinerary.TravelSegment">
    <format type="org.jibx.schema.org.opentravel._2012A.travelitinerary.TravelSegment$OrginDest" enum-value-method="xmlValue"/>
    <format type="org.jibx.schema.org.opentravel._2012A.travelitinerary.TravelSegment$Type" enum-value-method="xmlValue"/>
    <structure ordered="false" choice="true">
      <structure test-method="ifAir" usage="optional" name="Air">
        <structure ordered="false" choice="true">
          <structure test-method="ifAirReservation" usage="optional" name="Reservation">
            <structure map-as="ns1:BookFlightSegmentType" get-method="getAirReservationBookFlightSegment" set-method="setAirReservationBookFlightSegment" usage="optional"/>
            <structure get-method="getSeats" set-method="setSeats" usage="optional" name="Seats">
              <collection get-method="getSeatList" set-method="setSeatList" create-type="java.util.ArrayList">
                <structure type="org.jibx.schema.org.opentravel._2012A.travelitinerary.TravelSegment$Seats$Seat" name="Seat">
                  <value style="attribute" name="CustomerRPH" get-method="getCustomerRPH" set-method="setCustomerRPH" usage="optional"/>
                  <value style="attribute" name="Number" get-method="getNumber" set-method="setNumber" usage="optional"/>
                  <value style="attribute" name="Characteristic" get-method="getCharacteristic" set-method="setCharacteristic" usage="optional"/>
                  <value style="attribute" name="SeatLocation" get-method="getSeatLocation" set-method="setSeatLocation" usage="optional"/>
                </structure>
              </collection>
            </structure>
            <value style="attribute" name="OrginDestType" get-method="getAirReservationOrginDest" set-method="setAirReservationOrginDest" usage="optional"/>
          </structure>
          <structure map-as="ns1:AirReservationType" test-method="ifAirDetailedReservation" get-method="getAirDetailedReservation" set-method="setAirDetailedReservation" usage="optional" name="DetailedReservation"/>
        </structure>
      </structure>
      <structure map-as="ns1:VehicleSegmentCoreType" test-method="ifVehicle" get-method="getVehicle" set-method="setVehicle" usage="optional" name="Vehicle"/>
      <structure test-method="ifHotel" usage="optional" name="Hotel">
        <structure ordered="false" choice="true">
          <structure map-as="ns1:RoomStayLiteType" test-method="ifHotelReservation" get-method="getHotelReservation" set-method="setHotelReservation" usage="optional" name="Reservation"/>
          <structure map-as="ns1:HotelReservationType" test-method="ifHotelDetailedReservation" get-method="getHotelDetailedReservation" set-method="setHotelDetailedReservation" usage="optional" name="DetailedReservation"/>
        </structure>
        <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getHotelTPAExtensions" set-method="setHotelTPAExtensions" usage="optional"/>
      </structure>
      <structure test-method="ifRail" usage="optional" name="Rail">
        <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getRail" set-method="setRail" usage="optional"/>
      </structure>
      <structure test-method="ifCruise" usage="optional" name="Cruise">
        <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getCruise" set-method="setCruise" usage="optional"/>
      </structure>
      <structure test-method="ifTour" usage="optional" name="Tour">
        <structure map-as="ns1:FreeTextType" get-method="getTourDescription" set-method="setTourDescription" name="Description"/>
        <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getTourTPAExtensions" set-method="setTourTPAExtensions" usage="optional"/>
        <value style="attribute" name="ID_Type" get-method="getTourID" set-method="setTourID" usage="optional"/>
        <structure map-as="ns1:DateTimeSpanGroup-AttributeGroup" get-method="getTourDateTimeSpanGroup" set-method="setTourDateTimeSpanGroup" usage="optional"/>
      </structure>
      <structure test-method="ifGeneral" usage="optional" name="General">
        <structure map-as="ns1:FreeTextType" get-method="getGeneralDescription" set-method="setGeneralDescription" name="Description"/>
        <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getGeneralTPAExtensions" set-method="setGeneralTPAExtensions" usage="optional"/>
        <value style="attribute" name="Type" get-method="getGeneralType" set-method="setGeneralType" usage="optional"/>
        <structure map-as="ns1:DateTimeSpanGroup-AttributeGroup" get-method="getGeneralDateTimeSpanGroup" set-method="setGeneralDateTimeSpanGroup" usage="optional"/>
      </structure>
      <structure test-method="ifPackage" get-method="getPackage" set-method="setPackage" usage="optional" name="Package">
        <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" get-method="getTPAExtensions" set-method="setTPAExtensions" usage="optional"/>
        <value style="attribute" name="ItemRPH_List" get-method="getItemRPHList" set-method="setItemRPHList" usage="optional" serializer="org.jibx.schema.org.opentravel._2012A.travelitinerary.TravelSegment$_Package.serializeItemRPHList" deserializer="org.jibx.schema.org.opentravel._2012A.travelitinerary.TravelSegment$_Package.deserializeItemRPHList"/>
        <value style="attribute" name="AssocItemRPH_List" get-method="getAssocItemRPHList" set-method="setAssocItemRPHList" usage="optional" serializer="org.jibx.schema.org.opentravel._2012A.travelitinerary.TravelSegment$_Package.serializeAssocItemRPHList" deserializer="org.jibx.schema.org.opentravel._2012A.travelitinerary.TravelSegment$_Package.deserializeAssocItemRPHList"/>
      </structure>
      <structure type="org.jibx.schema.org.opentravel._2012A.base.TPAExtensions" test-method="ifTPAExtensions" get-method="getTPAExtensions" set-method="setTPAExtensions" usage="optional"/>
    </structure>
    <value style="attribute" name="RPH" get-method="getRPH" set-method="setRPH" usage="optional"/>
    <value style="attribute" name="Status" get-method="getStatus" set-method="setStatus" usage="optional"/>
  </mapping>
  <mapping class="org.jibx.schema.org.opentravel._2012A.travelitinerary.ReadRQ" name="OTA_TravelItineraryReadRQ">
    <structure map-as="ns1:POS_Type" get-method="getPOS" set-method="setPOS" usage="optional" name="POS"/>
    <structure map-as="ns1:UniqueID_Type" get-method="getUniqueID" set-method="setUniqueID" usage="optional" name="UniqueID"/>
    <structure map-as="ns1:VerificationType" get-method="getVerification" set-method="setVerification" usage="optional" name="Verification"/>
    <structure map-as="ns1:OTA_PayloadStdAttributes-AttributeGroup" get-method="getOTAPayloadStdAttributes" set-method="setOTAPayloadStdAttributes"/>
  </mapping>
</binding>
New to GrepCode? Check out our FAQ X