Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

Contains the cabin-specific 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="CruiseCabinGroup">
   <xs:attribute type="xs:string" use="required" name="CabinNumber"/>
   <xs:attribute type="xs:int" use="optional" name="MaxOccupancy"/>
   <xs:attribute type="xs:boolean" use="optional" name="DeclineIndicator"/>
   <xs:attribute type="xs:boolean" use="optional" name="HeldIndicator"/>
 </xs:attributeGroup>
 
public class CruiseCabinGroup
    private String cabinNumber;
    private Integer maxOccupancy;
    private Boolean declineIndicator;
    private Boolean heldIndicator;

    
Get the 'CabinNumber' attribute value. The number identifying the cabin.

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

    
Set the 'CabinNumber' attribute value. The number identifying the cabin.

Parameters:
cabinNumber
    public void setCabinNumber(String cabinNumber) {
        this. = cabinNumber;
    }

    
Get the 'MaxOccupancy' attribute value. Specifies the Max occupancy of the Cabin.

Returns:
value
    public Integer getMaxOccupancy() {
        return ;
    }

    
Set the 'MaxOccupancy' attribute value. Specifies the Max occupancy of the Cabin.

Parameters:
maxOccupancy
    public void setMaxOccupancy(Integer maxOccupancy) {
        this. = maxOccupancy;
    }

    
Get the 'DeclineIndicator' attribute value. Can be true in event that wait list category is cleared at booking retrieval time. (Possibly used by CabinUnhold.)

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

    
Set the 'DeclineIndicator' attribute value. Can be true in event that wait list category is cleared at booking retrieval time. (Possibly used by CabinUnhold.)

Parameters:
declineIndicator
    public void setDeclineIndicator(Boolean declineIndicator) {
        this. = declineIndicator;
    }

    
Get the 'HeldIndicator' attribute value. When true, the cabin is held. When false, the cabin is not being held.

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

    
Set the 'HeldIndicator' attribute value. When true, the cabin is held. When false, the cabin is not being held.

Parameters:
heldIndicator
    public void setHeldIndicator(Boolean heldIndicator) {
        this. = heldIndicator;
    }
New to GrepCode? Check out our FAQ X