Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.travelitinerary;
  
Pricing information for the travel itinerary. Schema fragment(s) for this class:
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ItinPricingType">
   <xs:sequence>
     <xs:element name="Cost">
       <xs:complexType>
         <xs:complexContent>
           <xs:extension base="ns:TotalType">
             <xs:attribute type="xs:string" name="FormOfPaymentRPH"/>
           </xs:extension>
         </xs:complexContent>
       </xs:complexType>
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="ns:ListOfRPH" name="ItemRPH_List"/>
   <xs:attribute name="AssociatedItemRPH">
     <xs:simpleType>
       <xs:list itemType="xs:string"/>
     </xs:simpleType>
   </xs:attribute>
 </xs:complexType>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfRPH">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
 
 public class ItinPricing
 {
     private Total costTotal;
     private String costFormOfPaymentRPH;
     private TPAExtensions TPAExtensions;
     private java.util.List<StringitemRPHList = new java.util.ArrayList<String>();
     private java.util.List<StringassociatedItemRPHs = new java.util.ArrayList<String>();

    
Get the extension value.

Returns:
value
 
     public Total getCostTotal() {
         return ;
     }

    
Set the extension value.

Parameters:
costTotal
 
     public void setCostTotal(Total costTotal) {
         this. = costTotal;
     }

    
Get the 'FormOfPaymentRPH' attribute value. Reference to the Form of Payment used in association to this cost.

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

    
Set the 'FormOfPaymentRPH' attribute value. Reference to the Form of Payment used in association to this cost.

Parameters:
costFormOfPaymentRPH
 
     public void setCostFormOfPaymentRPH(String costFormOfPaymentRPH) {
         this. = costFormOfPaymentRPH;
     }

    
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;
     }

    
Get the list of 'ItemRPH_List' attribute items. Reference to itinerary reservation item (e.g. Car, Hotel, Air, Package).

Returns:
list
    public java.util.List<StringgetItemRPHList() {
        return ;
    }

    
Set the list of 'ItemRPH_List' attribute items. Reference to itinerary reservation item (e.g. Car, Hotel, Air, Package).

Parameters:
list
    public void setItemRPHList(java.util.List<Stringlist) {
         = list;
    }

    
Serializer for 'ItemRPH_List' attribute list.

Parameters:
values
Returns:
text
    public static String serializeItemRPHList(java.util.List<Stringvalues) {
        if (values == null) {
            return null;
        } else {
            java.lang.StringBuffer buff = new java.lang.StringBuffer();
            for (java.util.Iterator<Stringiter = values.iterator(); iter
                    .hasNext();) {
                if (buff.length() > 0) {
                    buff.append(' ');
                }
                String value = iter.next();
                buff.append(value);
            }
            return buff.toString();
        }
    }

    
Deserializer for 'ItemRPH_List' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
    public static java.util.List<StringdeserializeItemRPHList(String text)
            throws org.jibx.runtime.JiBXException {
            public java.lang.Object deserialize(String text) {
                return text;
            }
        };
        return (java.util.List<String>) org.jibx.runtime.Utility
                .deserializeList(textldser);
    }

    
Get the number of 'ItemRPH_List' attribute items.

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

    
Add a 'ItemRPH_List' attribute item.

Parameters:
item
    public void addItemRPH(String item) {
        .add(item);
    }

    
Get 'ItemRPH_List' attribute item by position.

Parameters:
index
Returns:
item
    public String getItemRPH(int index) {
        return .get(index);
    }

    
Remove all 'ItemRPH_List' attribute items.
    public void clearItemRPHList() {
        .clear();
    }

    
Get the list of 'AssociatedItemRPH' attribute items. Reference to associated itinerary item (e.g. Travel Insurance).

Returns:
list
        return ;
    }

    
Set the list of 'AssociatedItemRPH' attribute items. Reference to associated itinerary item (e.g. Travel Insurance).

Parameters:
list
    public void setAssociatedItemRPHs(java.util.List<Stringlist) {
         = list;
    }

    
Serializer for 'AssociatedItemRPH' attribute list.

Parameters:
values
Returns:
text
    public static String serializeAssociatedItemRPHs(
            java.util.List<Stringvalues) {
        if (values == null) {
            return null;
        } else {
            java.lang.StringBuffer buff = new java.lang.StringBuffer();
            for (java.util.Iterator<Stringiter = values.iterator(); iter
                    .hasNext();) {
                if (buff.length() > 0) {
                    buff.append(' ');
                }
                String value = iter.next();
                buff.append(value);
            }
            return buff.toString();
        }
    }

    
Deserializer for 'AssociatedItemRPH' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
            String textthrows org.jibx.runtime.JiBXException {
            public java.lang.Object deserialize(String text) {
                return text;
            }
        };
        return (java.util.List<String>) org.jibx.runtime.Utility
                .deserializeList(textldser);
    }

    
Get the number of 'AssociatedItemRPH' attribute items.

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

    
Add a 'AssociatedItemRPH' attribute item.

Parameters:
item
    public void addAssociatedItemRPH(String item) {
        .add(item);
    }

    
Get 'AssociatedItemRPH' attribute item by position.

Parameters:
index
Returns:
item
    public String getAssociatedItemRPH(int index) {
        return .get(index);
    }

    
Remove all 'AssociatedItemRPH' attribute items.
    public void clearAssociatedItemRPHs() {
        .clear();
    }
New to GrepCode? Check out our FAQ X