Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.cruise;
  
  import java.util.List;
Specifies the document handling information. 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="DocumentHandlingType">
   <xs:sequence>
     <xs:element name="VendorOption" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class VendorOption -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="DocumentTypeCode"/>
   <xs:attribute type="xs:string" use="optional" name="DeliveryMethodCode"/>
   <xs:attribute type="xs:string" use="optional" name="DocumentDestination"/>
   <xs:attribute type="xs:boolean" use="optional" name="SelectedOptionIndicator"/>
   <xs:attribute type="xs:boolean" use="optional" name="DefaultIndicator"/>
   <xs:attribute type="xs:boolean" use="optional" name="AddressRequiredIndicator"/>
   <xs:attribute type="xs:string" use="optional" name="AddressRPH"/>
   <xs:attribute type="xs:string" use="optional" name="EmailRPH"/>
   <xs:attribute type="xs:string" use="optional" name="TelephoneRPH"/>
   <xs:attribute type="xs:string" use="optional" name="DocumentLanguage"/>
 </xs:complexType>
 
 
 public class DocumentHandling
 {
     private List<VendorOptionvendorOptionList = new ArrayList<VendorOption>();
     private String documentTypeCode;
     private String deliveryMethodCode;
     private String documentDestination;
     private Boolean selectedOptionIndicator;
     private Boolean defaultIndicator;
     private Boolean addressRequiredIndicator;
     private String addressRPH;
     private String emailRPH;
     private String telephoneRPH;
     private String documentLanguage;

    
Get the list of 'VendorOption' element items.

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

    
Set the list of 'VendorOption' element items.

Parameters:
list
 
     public void setVendorOptionList(List<VendorOptionlist) {
          = list;
     }

    
Get the number of 'VendorOption' element items.

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

    
Add a 'VendorOption' element item.

Parameters:
item
 
     public void addVendorOption(VendorOption item) {
         .add(item);
     }

    
Get 'VendorOption' element item by position.

Parameters:
index
Returns:
item
 
     public VendorOption getVendorOption(int index) {
         return .get(index);
     }

    
Remove all 'VendorOption' element items.
 
     public void clearVendorOptionList() {
         .clear();
     }

    
Get the 'DocumentTypeCode' attribute value. Defines the content of the document being referred to. Refer to OpenTravel Code List Cruise Document Type (CRD).

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

    
Set the 'DocumentTypeCode' attribute value. Defines the content of the document being referred to. Refer to OpenTravel Code List Cruise Document Type (CRD).

Parameters:
documentTypeCode
    public void setDocumentTypeCode(String documentTypeCode) {
        this. = documentTypeCode;
    }

    
Get the 'DeliveryMethodCode' attribute value. Indicates the type of delivery method for the document defined in the DocumentTypeCode. Refer to OpenTravel Code List Distribution Type (DTB).

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

    
Set the 'DeliveryMethodCode' attribute value. Indicates the type of delivery method for the document defined in the DocumentTypeCode. Refer to OpenTravel Code List Distribution Type (DTB).

Parameters:
deliveryMethodCode
    public void setDeliveryMethodCode(String deliveryMethodCode) {
        this. = deliveryMethodCode;
    }

    
Get the 'DocumentDestination' attribute value. Specifies the mailing location (e.g , agent address or alternate address).

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

    
Set the 'DocumentDestination' attribute value. Specifies the mailing location (e.g , agent address or alternate address).

Parameters:
documentDestination
    public void setDocumentDestination(String documentDestination) {
        this. = documentDestination;
    }

    
Get the 'SelectedOptionIndicator' attribute value. When true indicates the item is selected. When false, indicates an alternate item exists, but is not currently selected.

Returns:
value
        return ;
    }

    
Set the 'SelectedOptionIndicator' attribute value. When true indicates the item is selected. When false, indicates an alternate item exists, but is not currently selected.

Parameters:
selectedOptionIndicator
    public void setSelectedOptionIndicator(Boolean selectedOptionIndicator) {
        this. = selectedOptionIndicator;
    }

    
Get the 'DefaultIndicator' attribute value. When true, the DocumentDestination is the default. When false, the DocumentDestination is not the default.

Returns:
value
    public Boolean getDefaultIndicator() {
        return ;
    }

    
Set the 'DefaultIndicator' attribute value. When true, the DocumentDestination is the default. When false, the DocumentDestination is not the default.

Parameters:
defaultIndicator
    public void setDefaultIndicator(Boolean defaultIndicator) {
        this. = defaultIndicator;
    }

    
Get the 'AddressRequiredIndicator' attribute value. When true, this indicates the DocumentDestination address is required. When false, a DcoumentDestination address is not required.

Returns:
value
        return ;
    }

    
Set the 'AddressRequiredIndicator' attribute value. When true, this indicates the DocumentDestination address is required. When false, a DcoumentDestination address is not required.

Parameters:
addressRequiredIndicator
    public void setAddressRequiredIndicator(Boolean addressRequiredIndicator) {
        this. = addressRequiredIndicator;
    }

    
Get the 'AddressRPH' attribute value. Provides a reference pointer that links the document destination to the appropriate address in ContactInfo.

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

    
Set the 'AddressRPH' attribute value. Provides a reference pointer that links the document destination to the appropriate address in ContactInfo.

Parameters:
addressRPH
    public void setAddressRPH(String addressRPH) {
        this. = addressRPH;
    }

    
Get the 'EmailRPH' attribute value. Provides a reference pointer that links the document destination to the appropriate email address in ContactInfo.

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

    
Set the 'EmailRPH' attribute value. Provides a reference pointer that links the document destination to the appropriate email address in ContactInfo.

Parameters:
emailRPH
    public void setEmailRPH(String emailRPH) {
        this. = emailRPH;
    }

    
Get the 'TelephoneRPH' attribute value. Provides a reference pointer that links the document destination to the appropriate telephone number in ContactInfo that designates the fax number.

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

    
Set the 'TelephoneRPH' attribute value. Provides a reference pointer that links the document destination to the appropriate telephone number in ContactInfo that designates the fax number.

Parameters:
telephoneRPH
    public void setTelephoneRPH(String telephoneRPH) {
        this. = telephoneRPH;
    }

    
Get the 'DocumentLanguage' attribute value. The language of the travel document.

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

    
Set the 'DocumentLanguage' attribute value. The language of the travel document.

Parameters:
documentLanguage
    public void setDocumentLanguage(String documentLanguage) {
        this. = documentLanguage;
    }
    
Indicates vendors available for document delivery. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="VendorOption" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="VendorName"/>
     <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
   </xs:complexType>
 </xs:element>
 
    public static class VendorOption
    {
        private String vendorName;
        private CurrencyAmountGroup currencyAmountGroup;

        
Get the 'VendorName' attribute value. Specifies the various options for mailing documents (e.g., UPS, FEDEX).

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

        
Set the 'VendorName' attribute value. Specifies the various options for mailing documents (e.g., UPS, FEDEX).

Parameters:
vendorName
        public void setVendorName(String vendorName) {
            this. = vendorName;
        }

        
Get the 'CurrencyAmountGroup' attributeGroup value. Specifies the price for the mailing option.

Returns:
value
        public CurrencyAmountGroup getCurrencyAmountGroup() {
            return ;
        }

        
Set the 'CurrencyAmountGroup' attributeGroup value. Specifies the price for the mailing option.

Parameters:
currencyAmountGroup
        public void setCurrencyAmountGroup(
                CurrencyAmountGroup currencyAmountGroup) {
            this. = currencyAmountGroup;
        }
    }
New to GrepCode? Check out our FAQ X