Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
Specifies the Guest information. Schema fragment(s) for this class:
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="GuestInfoGroup">
   <xs:attribute type="xs:string" use="optional" name="GuestRefNumber"/>
   <xs:attribute type="xs:int" use="optional" name="Age"/>
   <xs:attribute type="xs:string" use="optional" name="Nationality"/>
   <xs:attribute type="xs:string" use="optional" name="GuestOccupation"/>
   <xs:attribute type="xs:date" use="optional" name="PersonBirthDate"/>
   <xs:attribute use="optional" name="Gender">
     <xs:simpleType>
       <!-- Reference to inner class Gender -->
     </xs:simpleType>
   </xs:attribute>
   <xs:attribute type="xs:string" use="optional" name="LoyaltyMembershipID"/>
   <xs:attribute type="xs:string" use="optional" name="LoyalLevel"/>
   <xs:attribute type="xs:int" use="optional" name="LoyalLevelCode"/>
 </xs:attributeGroup>
 
 
 public class GuestInfoGroup
 {
     private String guestRefNumber;
     private Integer age;
     private String nationality;
     private String guestOccupation;
     private LocalDate personBirthDate;
     private Gender gender;
     private String loyaltyMembershipID;
     private String loyalLevel;
     private Integer loyalLevelCode;

    
Get the 'GuestRefNumber' attribute value. Provides a reference number for the guest.

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

    
Set the 'GuestRefNumber' attribute value. Provides a reference number for the guest.

Parameters:
guestRefNumber
 
     public void setGuestRefNumber(String guestRefNumber) {
         this. = guestRefNumber;
     }

    
Get the 'Age' attribute value. Specifies the Guest's Age.

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

    
Set the 'Age' attribute value. Specifies the Guest's Age.

Parameters:
age
 
     public void setAge(Integer age) {
         this. = age;
     }

    
Get the 'Nationality' attribute value. Specifies the Nationality.

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

    
Set the 'Nationality' attribute value. Specifies the Nationality.

Parameters:
nationality
 
     public void setNationality(String nationality) {
         this. = nationality;
     }

    
Get the 'GuestOccupation' attribute value. Specifies occupation of the guest.

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

    
Set the 'GuestOccupation' attribute value. Specifies occupation of the guest.

Parameters:
guestOccupation
    public void setGuestOccupation(String guestOccupation) {
        this. = guestOccupation;
    }

    
Get the 'PersonBirthDate' attribute value. Specifies the Guest Birth Date.

Returns:
value
    public LocalDate getPersonBirthDate() {
        return ;
    }

    
Set the 'PersonBirthDate' attribute value. Specifies the Guest Birth Date.

Parameters:
personBirthDate
    public void setPersonBirthDate(LocalDate personBirthDate) {
        this. = personBirthDate;
    }

    
Get the 'Gender' attribute value. Identifies the gender.

Returns:
value
    public Gender getGender() {
        return ;
    }

    
Set the 'Gender' attribute value. Identifies the gender.

Parameters:
gender
    public void setGender(Gender gender) {
        this. = gender;
    }

    
Get the 'LoyaltyMembershipID' attribute value. Unique identifier of the member in the program (membership number, account number, etc.).

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

    
Set the 'LoyaltyMembershipID' attribute value. Unique identifier of the member in the program (membership number, account number, etc.).

Parameters:
loyaltyMembershipID
    public void setLoyaltyMembershipID(String loyaltyMembershipID) {
        this. = loyaltyMembershipID;
    }

    
Get the 'LoyalLevel' attribute value. Indicates special privileges in program assigned to individual.

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

    
Set the 'LoyalLevel' attribute value. Indicates special privileges in program assigned to individual.

Parameters:
loyalLevel
    public void setLoyalLevel(String loyalLevel) {
        this. = loyalLevel;
    }

    
Get the 'LoyalLevelCode' attribute value. Provides a numeric code assigned to a particular loyalty level.

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

    
Set the 'LoyalLevelCode' attribute value. Provides a numeric code assigned to a particular loyalty level.

Parameters:
loyalLevelCode
    public void setLoyalLevelCode(Integer loyalLevelCode) {
        this. = loyalLevelCode;
    }
    
Schema fragment(s) for this class:
 <xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:restriction base="xs:string">
     <xs:enumeration value="Male"/>
     <xs:enumeration value="Female"/>
     <xs:enumeration value="Unknown"/>
     <xs:enumeration value="Male_NoShare"/>
     <xs:enumeration value="Female_NoShare"/>
   </xs:restriction>
 </xs:simpleType>
 
    public static enum Gender {
        MALE("Male"), FEMALE("Female"), UNKNOWN("Unknown"), MALE_NO_SHARE(
                "Male_NoShare"), FEMALE_NO_SHARE("Female_NoShare");
        private final String value;
        private Gender(String value) {
            this. = value;
        }
        public String xmlValue() {
            return ;
        }
        public static Gender convert(String value) {
            for (Gender inst : values()) {
                if (inst.xmlValue().equals(value)) {
                    return inst;
                }
            }
            return null;
        }
    }
New to GrepCode? Check out our FAQ X