Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   
   package org.jibx.schema.org.opentravel._2012A.travelitinerary;
   
   import java.util.ArrayList;
   import java.util.List;
Travel segment information for air, vehicle, hotel, rail, cruise, tour, general and package. 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="TravelSegmentType">
   <xs:choice>
     <xs:element name="Air">
       <xs:complexType>
         <xs:choice>
           <xs:element name="Reservation">
             <xs:complexType>
               <xs:complexContent>
                 <xs:extension base="ns:BookFlightSegmentType">
                   <xs:sequence>
                     <xs:element name="Seats" minOccurs="0">
                       <!-- Reference to inner class Seats -->
                     </xs:element>
                   </xs:sequence>
                   <xs:attribute name="OrginDestType">
                     <xs:simpleType>
                       <!-- Reference to inner class OrginDest -->
                     </xs:simpleType>
                   </xs:attribute>
                 </xs:extension>
               </xs:complexContent>
             </xs:complexType>
           </xs:element>
           <xs:element type="ns:AirReservationType" name="DetailedReservation"/>
         </xs:choice>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:VehicleSegmentCoreType" name="Vehicle"/>
     <xs:element name="Hotel">
       <xs:complexType>
         <xs:sequence>
           <xs:choice>
             <xs:element type="ns:RoomStayLiteType" name="Reservation"/>
             <xs:element type="ns:HotelReservationType" name="DetailedReservation"/>
           </xs:choice>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element name="Rail">
       <xs:complexType>
         <xs:sequence>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element name="Cruise">
       <xs:complexType>
         <xs:sequence>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element name="Tour">
       <xs:complexType>
         <xs:sequence>
           <xs:element type="ns:FreeTextType" name="Description"/>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute type="xs:string" name="ID_Type"/>
         <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="General">
       <xs:complexType>
         <xs:sequence>
           <xs:element type="ns:FreeTextType" name="Description"/>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute name="Type">
           <xs:simpleType>
             <!-- Reference to inner class Type -->
           </xs:simpleType>
         </xs:attribute>
         <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Package">
       <!-- Reference to inner class _Package -->
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:choice>
   <xs:attribute type="xs:string" name="RPH"/>
   <xs:attribute type="xs:string" name="Status"/>
 </xs:complexType>
 
 
 public class TravelSegment
 {
     private int choiceSelect = -1;
     private static final int AIR_CHOICE = 0;
     private static final int VEHICLE_CHOICE = 1;
     private static final int HOTEL_CHOICE = 2;
     private static final int RAIL_CHOICE = 3;
     private static final int CRUISE_CHOICE = 4;
     private static final int TOUR_CHOICE = 5;
     private static final int GENERAL_CHOICE = 6;
     private static final int PACKAGE_CHOICE = 7;
     private static final int TPA_EXTENSIONS_CHOICE = 8;
     private int airSelect = -1;
     private static final int AIR_RESERVATION_CHOICE = 0;
     private static final int AIR_DETAILED_RESERVATION_CHOICE = 1;
     private Seats seats;
     private VehicleSegmentCore vehicle;
     private int hotelChoiceSelect = -1;
     private static final int HOTEL_RESERVATION_CHOICE = 0;
     private static final int HOTEL_DETAILED_RESERVATION_CHOICE = 1;
     private RoomStayLite hotelReservation;
     private TPAExtensions rail;
     private TPAExtensions cruise;
     private FreeText tourDescription;
     private TPAExtensions tourTPAExtensions;
     private String tourID;
     private FreeText generalDescription;
     private Type general;
     private _Package _package;
     private TPAExtensions TPAExtensions;
     private String RPH;
     private String status;
 
     private void setChoiceSelect(int choice) {
         if ( == -1) {
              = choice;
         } else if ( != choice) {
             throw new IllegalStateException(
                     "Need to call clearChoiceSelect() before changing existing choice");
         }
     }

    
Clear the choice selection.
 
     public void clearChoiceSelect() {
          = -1;
     }

    
Check if Air is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifAir() {
         return  == ;
     }
 
     private void setAirSelect(int choice) {
         setChoiceSelect();
         if ( == -1) {
              = choice;
         } else if ( != choice) {
             throw new IllegalStateException(
                     "Need to call clearAirSelect() before changing existing choice");
         }
     }

    
Clear the choice selection.
 
     public void clearAirSelect() {
          = -1;
     }

    
Check if AirReservation is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifAirReservation() {
         return  == ;
     }

    
Get the extension value.

Returns:
value
 
         return ;
     }

    
Set the extension value.

Parameters:
airReservationBookFlightSegment
 
     public void setAirReservationBookFlightSegment(
             BookFlightSegment airReservationBookFlightSegment) {
         this. = airReservationBookFlightSegment;
     }

    
Get the 'Seats' element value. Flight reservation information.

Returns:
value
 
     public Seats getSeats() {
         return ;
     }

    
Set the 'Seats' element value. Flight reservation information.

Parameters:
seats
 
     public void setSeats(Seats seats) {
         this. = seats;
     }

    
Get the 'OrginDestType' attribute value. Intermediate and last segments contain the RPH of the first segment for an Origin and Destination set.

Returns:
value
 
         return ;
     }

    
Set the 'OrginDestType' attribute value. Intermediate and last segments contain the RPH of the first segment for an Origin and Destination set.

Parameters:
airReservationOrginDest
 
     public void setAirReservationOrginDest(OrginDest airReservationOrginDest) {
         this. = airReservationOrginDest;
     }

    
Check if AirDetailedReservation is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifAirDetailedReservation() {
         return  == ;
     }

    
Get the 'DetailedReservation' element value. Detailed flight reservation information identical to that returned in the OTA air book response message.

Returns:
value
 
         return ;
     }

    
Set the 'DetailedReservation' element value. Detailed flight reservation information identical to that returned in the OTA air book response message.

Parameters:
airDetailedReservation
 
     public void setAirDetailedReservation(AirReservation airDetailedReservation) {
         this. = airDetailedReservation;
     }

    
Check if Vehicle is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifVehicle() {
         return  == ;
     }

    
Get the 'Vehicle' element value. Vehicle rental information.

Returns:
value
 
     public VehicleSegmentCore getVehicle() {
         return ;
     }

    
Set the 'Vehicle' element value. Vehicle rental information.

Parameters:
vehicle
 
     public void setVehicle(VehicleSegmentCore vehicle) {
         this. = vehicle;
     }

    
Check if Hotel is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifHotel() {
         return  == ;
     }
 
     private void setHotelChoiceSelect(int choice) {
         setChoiceSelect();
         if ( == -1) {
              = choice;
         } else if ( != choice) {
             throw new IllegalStateException(
                     "Need to call clearHotelChoiceSelect() before changing existing choice");
         }
     }

    
Clear the choice selection.
 
     public void clearHotelChoiceSelect() {
          = -1;
     }

    
Check if HotelReservation is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifHotelReservation() {
         return  == ;
     }

    
Get the 'Reservation' element value. Hotel reservation information.

Returns:
value
 
     public RoomStayLite getHotelReservation() {
         return ;
     }

    
Set the 'Reservation' element value. Hotel reservation information.

Parameters:
hotelReservation
 
     public void setHotelReservation(RoomStayLite hotelReservation) {
         this. = hotelReservation;
     }

    
Check if HotelDetailedReservation is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifHotelDetailedReservation() {
     }

    
Get the 'DetailedReservation' element value. Detailed hotel reservation information.

Returns:
value
 
         return ;
     }

    
Set the 'DetailedReservation' element value. Detailed hotel reservation information.

Parameters:
hotelDetailedReservation
 
     public void setHotelDetailedReservation(
             HotelReservation hotelDetailedReservation) {
         this. = hotelDetailedReservation;
     }

    
Get the 'TPA_Extensions' element value.

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

    
Set the 'TPA_Extensions' element value.

Parameters:
hotelTPAExtensions
 
     public void setHotelTPAExtensions(TPAExtensions hotelTPAExtensions) {
         setChoiceSelect();
         this. = hotelTPAExtensions;
     }

    
Check if Rail is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifRail() {
         return  == ;
     }

    
Get the 'TPA_Extensions' element value. Rail reservation information.

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

    
Set the 'TPA_Extensions' element value. Rail reservation information.

Parameters:
rail
 
     public void setRail(TPAExtensions rail) {
         setChoiceSelect();
         this. = rail;
     }

    
Check if Cruise is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifCruise() {
         return  == ;
     }

    
Get the 'TPA_Extensions' element value. Cruise reservation information.

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

    
Set the 'TPA_Extensions' element value. Cruise reservation information.

Parameters:
cruise
 
     public void setCruise(TPAExtensions cruise) {
         setChoiceSelect();
         this. = cruise;
     }

    
Check if Tour is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifTour() {
         return  == ;
     }

    
Get the 'Description' element value.

Returns:
value
 
     public FreeText getTourDescription() {
         return ;
     }

    
Set the 'Description' element value.

Parameters:
tourDescription
 
     public void setTourDescription(FreeText tourDescription) {
         setChoiceSelect();
         this. = tourDescription;
     }

    
Get the 'TPA_Extensions' element value.

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

    
Set the 'TPA_Extensions' element value.

Parameters:
tourTPAExtensions
 
     public void setTourTPAExtensions(TPAExtensions tourTPAExtensions) {
         setChoiceSelect();
         this. = tourTPAExtensions;
     }

    
Get the 'ID_Type' attribute value. The Start date and time of this General activity.

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

    
Set the 'ID_Type' attribute value. The Start date and time of this General activity.

Parameters:
tourID
 
     public void setTourID(String tourID) {
         setChoiceSelect();
         this. = tourID;
     }

    
Get the 'DateTimeSpanGroup' attributeGroup value.

Returns:
value
 
         return ;
     }

    
Set the 'DateTimeSpanGroup' attributeGroup value.

Parameters:
tourDateTimeSpanGroup
 
     public void setTourDateTimeSpanGroup(DateTimeSpanGroup tourDateTimeSpanGroup) {
         setChoiceSelect();
         this. = tourDateTimeSpanGroup;
     }

    
Check if General is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifGeneral() {
         return  == ;
     }

    
Get the 'Description' element value.

Returns:
value
 
     public FreeText getGeneralDescription() {
         return ;
     }

    
Set the 'Description' element value.

Parameters:
generalDescription
 
     public void setGeneralDescription(FreeText generalDescription) {
         this. = generalDescription;
     }

    
Get the 'TPA_Extensions' element value.

Returns:
value
 
         return ;
     }

    
Set the 'TPA_Extensions' element value.

Parameters:
generalTPAExtensions
 
     public void setGeneralTPAExtensions(TPAExtensions generalTPAExtensions) {
         this. = generalTPAExtensions;
     }

    
Get the 'Type' attribute value. The Start date and time of this General activity.

Returns:
value
 
     public Type getGeneralType() {
         return ;
     }

    
Set the 'Type' attribute value. The Start date and time of this General activity.

Parameters:
generalType
 
     public void setGeneralType(Type generalType) {
          = generalType;
     }

    
Get the 'DateTimeSpanGroup' attributeGroup value.

Returns:
value
 
         return ;
     }

    
Set the 'DateTimeSpanGroup' attributeGroup value.

Parameters:
generalDateTimeSpanGroup
 
     public void setGeneralDateTimeSpanGroup(
             DateTimeSpanGroup generalDateTimeSpanGroup) {
         this. = generalDateTimeSpanGroup;
     }

    
Check if Package is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifPackage() {
         return  == ;
     }

    
Get the 'Package' element value.

Returns:
value
 
     public _Package getPackage() {
         return ;
     }

    
Set the 'Package' element value.

Parameters:
_package
 
     public void setPackage(_Package _package) {
         this. = _package;
     }

    
Check if TPAExtensions is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifTPAExtensions() {
         return  == ;
     }

    
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 'RPH' attribute value. Reference to this reservation item.

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

    
Set the 'RPH' attribute value. Reference to this reservation item.

Parameters:
RPH
 
     public void setRPH(String RPH) {
         this. = RPH;
     }

    
Get the 'Status' attribute value. Status of the current itinerary item (e.g. confirmed, pending, waitlisted). Refer to OpenTravel Code List Status (STS).

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

    
Set the 'Status' attribute value. Status of the current itinerary item (e.g. confirmed, pending, waitlisted). Refer to OpenTravel Code List Status (STS).

Parameters:
status
 
     public void setStatus(String status) {
         this. = status;
     }
    
All seat information. 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="Seats" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Seat" maxOccurs="unbounded">
         <!-- Reference to inner class Seat -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
 
     public static class Seats
     {
         private List<SeatseatList = new ArrayList<Seat>();

        
Get the list of 'Seat' element items.

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

        
Set the list of 'Seat' element items.

Parameters:
list
 
         public void setSeatList(List<Seatlist) {
              = list;
         }

        
Get the number of 'Seat' element items.

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

        
Add a 'Seat' element item.

Parameters:
item
 
         public void addSeat(Seat item) {
             .add(item);
         }

        
Get 'Seat' element item by position.

Parameters:
index
Returns:
item
 
         public Seat getSeat(int index) {
             return .get(index);
         }

        
Remove all 'Seat' element items.
 
         public void clearSeatList() {
             .clear();
         }
        
Seat information associated with a single reservation item and customer. 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="Seat" maxOccurs="unbounded">
   <xs:complexType>
     <xs:attribute type="xs:string" name="CustomerRPH"/>
     <xs:attribute type="xs:string" name="Number"/>
     <xs:attribute type="xs:string" name="Characteristic"/>
     <xs:attribute type="xs:string" name="SeatLocation"/>
   </xs:complexType>
 </xs:element>
 
 
         public static class Seat
         {
             private String customerRPH;
             private String number;
             private String characteristic;
             private String seatLocation;

            
Get the 'CustomerRPH' attribute value. Reference to customer assigned to this seat.

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

            
Set the 'CustomerRPH' attribute value. Reference to customer assigned to this seat.

Parameters:
customerRPH
 
             public void setCustomerRPH(String customerRPH) {
                 this. = customerRPH;
             }

            
Get the 'Number' attribute value. Seat number (e.g. 20A, 17C, etc.).

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

            
Set the 'Number' attribute value. Seat number (e.g. 20A, 17C, etc.).

Parameters:
number
 
             public void setNumber(String number) {
                 this. = number;
             }

            
Get the 'Characteristic' attribute value. Seat characteristic. Suggested values include: Window, Aisle, EconomyPlus, etc.

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

            
Set the 'Characteristic' attribute value. Seat characteristic. Suggested values include: Window, Aisle, EconomyPlus, etc.

Parameters:
characteristic
 
             public void setCharacteristic(String characteristic) {
                 this. = characteristic;
             }

            
Get the 'SeatLocation' attribute value. Location of seat in cabin of conveyance. Suggested values include: Forward, Middle, Aft, ExitRow, Bulkhead, Right or Left Side, etc.

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

            
Set the 'SeatLocation' attribute value. Location of seat in cabin of conveyance. Suggested values include: Forward, Middle, Aft, ExitRow, Bulkhead, Right or Left Side, etc.

Parameters:
seatLocation
 
             public void setSeatLocation(String seatLocation) {
                 this. = seatLocation;
             }
         }
     }
    
Schema fragment(s) for this class:
 <xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:restriction base="xs:string">
     <xs:enumeration value="First"/>
     <xs:enumeration value="Intermediate"/>
     <xs:enumeration value="Last"/>
     <xs:enumeration value="Only"/>
   </xs:restriction>
 </xs:simpleType>
 
 
     public static enum OrginDest {
         FIRST("First"), INTERMEDIATE("Intermediate"), LAST("Last"), ONLY("Only");
         private final String value;
 
         private OrginDest(String value) {
             this. = value;
         }
 
         public String xmlValue() {
             return ;
         }
 
         public static OrginDest convert(String value) {
             for (OrginDest inst : values()) {
                 if (inst.xmlValue().equals(value)) {
                     return inst;
                 }
             }
             return null;
         }
     }
    
Schema fragment(s) for this class:
 <xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:restriction base="xs:string">
     <xs:enumeration value="Bus"/>
     <xs:enumeration value="Show"/>
     <xs:enumeration value="Unknown"/>
   </xs:restriction>
 </xs:simpleType>
 
 
     public static enum Type {
         BUS("Bus"), SHOW("Show"), UNKNOWN("Unknown");
         private final String value;
 
         private Type(String value) {
             this. = value;
         }
 
         public String xmlValue() {
             return ;
         }
 
         public static Type convert(String value) {
             for (Type inst : values()) {
                 if (inst.xmlValue().equals(value)) {
                     return inst;
                 }
             }
             return null;
         }
     }
    
Package reservation information. 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="Package">
   <xs:complexType>
     <xs:sequence>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attribute type="ns:ListOfRPH" name="ItemRPH_List"/>
     <xs:attribute type="ns:ListOfRPH" name="AssocItemRPH_List"/>
   </xs:complexType>
 </xs:element>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfRPH">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
 
     public static class _Package
     {
         private TPAExtensions TPAExtensions;
         private List<StringitemRPHList = new ArrayList<String>();
         private List<StringassocItemRPHList = new ArrayList<String>();

        
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. References to all itinerary items contained in this package.

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

        
Set the list of 'ItemRPH_List' attribute items. References to all itinerary items contained in this package.

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

        
Serializer for 'ItemRPH_List' attribute list.

Parameters:
values
Returns:
text
        public static String serializeItemRPHList(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 List<StringdeserializeItemRPHList(String text)
                throws org.jibx.runtime.JiBXException {
            org.jibx.runtime.IListItemDeserializer ldser = new org.jibx.runtime.IListItemDeserializer() {
                public java.lang.Object deserialize(String text) {
                    return text;
                }
            };
            return (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 'AssocItemRPH_List' attribute items. References to all associated items contained in this package.

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

        
Set the list of 'AssocItemRPH_List' attribute items. References to all associated items contained in this package.

Parameters:
list
        public void setAssocItemRPHList(List<Stringlist) {
             = list;
        }

        
Serializer for 'AssocItemRPH_List' attribute list.

Parameters:
values
Returns:
text
        public static String serializeAssocItemRPHList(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 'AssocItemRPH_List' attribute list.

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

        
Get the number of 'AssocItemRPH_List' attribute items.

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

        
Add a 'AssocItemRPH_List' attribute item.

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

        
Get 'AssocItemRPH_List' attribute item by position.

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

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