Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.cruise;

Specifies the pricing information. Schema fragment(s) for this class:
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CruisePriceGroup">
   <xs:attribute type="xs:string" use="required" name="PriceTypeCode"/>
   <xs:attribute type="xs:float" use="optional" name="Amount"/>
   <xs:attribute type="xs:boolean" use="optional" name="RestrictedIndicator"/>
   <xs:attribute type="xs:string" use="optional" name="CodeDetail"/>
   <xs:attribute type="xs:float" use="optional" name="Percent"/>
 </xs:attributeGroup>
 
 
 public class CruisePriceGroup
 {
     private String priceTypeCode;
     private Float amount;
     private Boolean restrictedIndicator;
     private String codeDetail;
     private Float percent;

    
Get the 'PriceTypeCode' attribute value. Specifies what the amount is for. Refer to OpenTravel Code Table Price Type Code (PRI).

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

    
Set the 'PriceTypeCode' attribute value. Specifies what the amount is for. Refer to OpenTravel Code Table Price Type Code (PRI).

Parameters:
priceTypeCode
 
     public void setPriceTypeCode(String priceTypeCode) {
         this. = priceTypeCode;
     }

    
Get the 'Amount' attribute value. The price associated with the specified code.

Returns:
value
 
     public Float getAmount() {
         return ;
     }

    
Set the 'Amount' attribute value. The price associated with the specified code.

Parameters:
amount
 
     public void setAmount(Float amount) {
         this. = amount;
     }

    
Get the 'RestrictedIndicator' attribute value. When true, the display of the price is restricted. When false, the price may be displayed.

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

    
Set the 'RestrictedIndicator' attribute value. When true, the display of the price is restricted. When false, the price may be displayed.

Parameters:
restrictedIndicator
 
     public void setRestrictedIndicator(Boolean restrictedIndicator) {
         this. = restrictedIndicator;
     }

    
Get the 'CodeDetail' attribute value. May be used to give further detail on the PriceTypeCode.

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

    
Set the 'CodeDetail' attribute value. May be used to give further detail on the PriceTypeCode.

Parameters:
codeDetail
 
     public void setCodeDetail(String codeDetail) {
         this. = codeDetail;
     }

    
Get the 'Percent' attribute value. The percentage value used to arrive at the amount associated with this item.

Returns:
value
    public Float getPercent() {
        return ;
    }

    
Set the 'Percent' attribute value. The percentage value used to arrive at the amount associated with this item.

Parameters:
percent
    public void setPercent(Float percent) {
        this. = percent;
    }
New to GrepCode? Check out our FAQ X