Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.travelitinerary;
  
  import java.util.List;
Form of payment and entire itinerary pricing. Schema fragment(s) for this class:
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="TravelCostType">
   <xs:sequence>
     <xs:element type="ns:PaymentFormType" name="FormOfPayment" maxOccurs="unbounded"/>
     <xs:element name="CostTotals" minOccurs="0">
       <!-- Reference to inner class CostTotals -->
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
 </xs:complexType>
 
 
 public class TravelCost
 {
     private List<PaymentFormformOfPaymentList = new ArrayList<PaymentForm>();
     private CostTotals costTotals;
     private TPAExtensions TPAExtensions;

    
Get the list of 'FormOfPayment' element items. Form of payment information (e.g. VISA, Debit Card, Check).

Returns:
list
 
     public List<PaymentFormgetFormOfPaymentList() {
         return ;
     }

    
Set the list of 'FormOfPayment' element items. Form of payment information (e.g. VISA, Debit Card, Check).

Parameters:
list
 
     public void setFormOfPaymentList(List<PaymentFormlist) {
          = list;
     }

    
Get the number of 'FormOfPayment' element items.

Returns:
count
 
     public int sizeFormOfPaymentList() {
         return .size();
     }

    
Add a 'FormOfPayment' element item.

Parameters:
item
 
     public void addFormOfPayment(PaymentForm item) {
         .add(item);
     }

    
Get 'FormOfPayment' element item by position.

Parameters:
index
Returns:
item
 
     public PaymentForm getFormOfPayment(int index) {
         return .get(index);
     }

    
Remove all 'FormOfPayment' element items.
 
     public void clearFormOfPaymentList() {
         .clear();
     }

    
Get the 'CostTotals' element value.

Returns:
value
 
     public CostTotals getCostTotals() {
         return ;
     }

    
Set the 'CostTotals' element value.

Parameters:
costTotals
 
     public void setCostTotals(CostTotals costTotals) {
         this. = costTotals;
     }

    
Get the 'TPA_Extensions' element value.

Returns:
value
    public TPAExtensions getTPAExtensions() {
        return ;
    }

    
Set the 'TPA_Extensions' element value.

Parameters:
TPAExtensions
    public void setTPAExtensions(TPAExtensions TPAExtensions) {
        this. = TPAExtensions;
    }
    
Total cost associated with the ENTIRE itinerary. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CostTotals" minOccurs="0">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:TotalType">
         <xs:attribute type="xs:string" name="FormOfPaymentRPH"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class CostTotals extends Total
    {
        private String formOfPaymentRPH;

        
Get the 'FormOfPaymentRPH' attribute value. Reference to a form of payment.

Returns:
value
        public String getFormOfPaymentRPH() {
            return ;
        }

        
Set the 'FormOfPaymentRPH' attribute value. Reference to a form of payment.

Parameters:
formOfPaymentRPH
        public void setFormOfPaymentRPH(String formOfPaymentRPH) {
            this. = formOfPaymentRPH;
        }
    }
New to GrepCode? Check out our FAQ X