Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

Golfer types with an "Other" value to support open enumeration list. Schema fragment(s) for this class:
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="GolferTypeEnum">
   <xs:restriction base="xs:string">
     <xs:enumeration value="ClubMember"/>
     <xs:enumeration value="GuestOfMember"/>
     <xs:enumeration value="GuestOfResort"/>
     <xs:enumeration value="LocalResident"/>
     <xs:enumeration value="LoyaltyProgramMember"/>
     <xs:enumeration value="Other_"/>
   </xs:restriction>
 </xs:simpleType>
 
public enum GolferTypeEnum {
    
TBC...
    CLUB_MEMBER("ClubMember"), 
TBC...
    GUEST_OF_MEMBER("GuestOfMember"), 
TBC...
    GUEST_OF_RESORT("GuestOfResort"), 
TBC...
    LOCAL_RESIDENT("LocalResident"), 
TBC...
    LOYALTY_PROGRAM_MEMBER("LoyaltyProgramMember"), 
This is an OpenTravel reserved word used to support an open enumeration that is known between trading partners. If you select this value, enter your golfer type into the

Extension:
attribute.
    OTHER_("Other_");
    private final String value;
    private GolferTypeEnum(String value) {
        this. = value;
    }
    public String xmlValue() {
        return ;
    }
    public static GolferTypeEnum convert(String value) {
        for (GolferTypeEnum inst : values()) {
            if (inst.xmlValue().equals(value)) {
                return inst;
            }
        }
        return null;
    }
New to GrepCode? Check out our FAQ X