Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
Specifies the special service requirements. 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="SpecialServiceType">
   <xs:sequence>
     <xs:element type="ns:ParagraphType" name="Comment" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="Type"/>
   <xs:attribute type="xs:string" use="optional" name="Code"/>
   <xs:attribute type="xs:string" use="optional" name="CodeName"/>
   <xs:attribute type="xs:string" use="optional" name="CodeDetail"/>
   <xs:attribute use="optional" name="AssociationType">
     <xs:simpleType>
       <!-- Reference to inner class Association -->
     </xs:simpleType>
   </xs:attribute>
   <xs:attribute type="xs:string" use="optional" name="Date"/>
   <xs:attribute type="xs:string" use="optional" name="NbrOfYears"/>
 </xs:complexType>
 
 
 public class SpecialService
 {
     private Paragraph comment;
     private String type;
     private String code;
     private String codeName;
     private String codeDetail;
     private Association association;
     private String date;
     private String nbrOfYears;

    
Get the 'Comment' element value. Additional comments associated with the service or notes to be attached to the service.

Returns:
value
 
     public Paragraph getComment() {
         return ;
     }

    
Set the 'Comment' element value. Additional comments associated with the service or notes to be attached to the service.

Parameters:
comment
 
     public void setComment(Paragraph comment) {
         this. = comment;
     }

    
Get the 'Type' attribute value. Specifies the special requirement type identification (e.g., occasion, special service, language).

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

    
Set the 'Type' attribute value. Specifies the special requirement type identification (e.g., occasion, special service, language).

Parameters:
type
 
     public void setType(String type) {
         this. = type;
     }

    
Get the 'Code' attribute value. Special service code maintained by individual companies.

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

    
Set the 'Code' attribute value. Special service code maintained by individual companies.

Parameters:
code
 
     public void setCode(String code) {
         this. = code;
     }

    
Get the 'CodeName' attribute value. The name of the special service.

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

    
Set the 'CodeName' attribute value. The name of the special service.

Parameters:
codeName
    public void setCodeName(String codeName) {
        this. = codeName;
    }

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

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

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

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

    
Get the 'AssociationType' attribute value. Specifies the special service association type (i.e., Cabin, Passenger).

Returns:
value
    public Association getAssociation() {
        return ;
    }

    
Set the 'AssociationType' attribute value. Specifies the special service association type (i.e., Cabin, Passenger).

Parameters:
association
    public void setAssociation(Association association) {
        this. = association;
    }

    
Get the 'Date' attribute value. Specifies the date the service is to be rendered.

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

    
Set the 'Date' attribute value. Specifies the date the service is to be rendered.

Parameters:
date
    public void setDate(String date) {
        this. = date;
    }

    
Get the 'NbrOfYears' attribute value. The number of years associated with a special event such as a birthday, an anniversary, etc.

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

    
Set the 'NbrOfYears' attribute value. The number of years associated with a special event such as a birthday, an anniversary, etc.

Parameters:
nbrOfYears
    public void setNbrOfYears(String nbrOfYears) {
        this. = nbrOfYears;
    }
    
Schema fragment(s) for this class:
 <xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:restriction base="xs:string">
     <xs:enumeration value="Cabin"/>
     <xs:enumeration value="Passenger"/>
     <xs:enumeration value="DualOccupancy"/>
   </xs:restriction>
 </xs:simpleType>
 
    public static enum Association {
        CABIN("Cabin"), PASSENGER("Passenger"), 
The special service requires dual occupancy.
        DUAL_OCCUPANCY("DualOccupancy");
        private final String value;
        private Association(String value) {
            this. = value;
        }
        public String xmlValue() {
            return ;
        }
        public static Association convert(String value) {
            for (Association inst : values()) {
                if (inst.xmlValue().equals(value)) {
                    return inst;
                }
            }
            return null;
        }
    }
New to GrepCode? Check out our FAQ X