Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.travelitinerary;
  
  import java.util.List;
Customer information, including name, contact information, citizenship, profiles, free text remarks and agenecy reference information 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="CustomerInfoType">
   <xs:sequence>
     <xs:element type="ns:CustomerType" name="Customer" minOccurs="0"/>
     <xs:element type="ns:UniqueID_Type" name="ProfileRef" minOccurs="0"/>
     <xs:element type="xs:string" name="Remarks" minOccurs="0" maxOccurs="unbounded"/>
     <xs:element type="ns:UniqueID_Type" name="AgencyAcctNumber"/>
   </xs:sequence>
   <xs:attribute type="xs:string" name="RPH"/>
 </xs:complexType>
 
 
 public class CustomerInfo
 {
     private Customer customer;
     private UniqueID profileRef;
     private List<StringremarkList = new ArrayList<String>();
     private UniqueID agencyAcctNumber;
     private String RPH;

    
Get the 'Customer' element value. Detailed customer information.

Returns:
value
 
     public Customer getCustomer() {
         return ;
     }

    
Set the 'Customer' element value. Detailed customer information.

Parameters:
customer
 
     public void setCustomer(Customer customer) {
         this. = customer;
     }

    
Get the 'ProfileRef' element value. Reference to customer's profile.

Returns:
value
 
     public UniqueID getProfileRef() {
         return ;
     }

    
Set the 'ProfileRef' element value. Reference to customer's profile.

Parameters:
profileRef
 
     public void setProfileRef(UniqueID profileRef) {
         this. = profileRef;
     }

    
Get the list of 'Remarks' element items. Free text remarks associated with this customer.

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

    
Set the list of 'Remarks' element items. Free text remarks associated with this customer.

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

    
Get the number of 'Remarks' element items.

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

    
Add a 'Remarks' element item.

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

    
Get 'Remarks' element item by position.

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

    
Remove all 'Remarks' element items.
    public void clearRemarkList() {
        .clear();
    }

    
Get the 'AgencyAcctNumber' element value. Agency's reference to this customer.

Returns:
value
    public UniqueID getAgencyAcctNumber() {
        return ;
    }

    
Set the 'AgencyAcctNumber' element value. Agency's reference to this customer.

Parameters:
agencyAcctNumber
    public void setAgencyAcctNumber(UniqueID agencyAcctNumber) {
        this. = agencyAcctNumber;
    }

    
Get the 'RPH' attribute value. Reference to this customer.

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

    
Set the 'RPH' attribute value. Reference to this customer.

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