Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.jibx.schema.org.opentravel._2012A.fastrez;

To specify a status to the transaction, usually in the response message, of the action specifed in the request message. Schema fragment(s) for this class:
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="TransactionStatusType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="Cancelled"/>
     <xs:enumeration value="Unsuccessful"/>
   </xs:restriction>
 </xs:simpleType>
 
public enum TransactionStatus {
    CANCELLED("Cancelled"), UNSUCCESSFUL("Unsuccessful");
    private final String value;
    private TransactionStatus(String value) {
        this. = value;
    }
    public String xmlValue() {
        return ;
    }
    public static TransactionStatus convert(String value) {
        for (TransactionStatus inst : values()) {
            if (inst.xmlValue().equals(value)) {
                return inst;
            }
        }
        return null;
    }
New to GrepCode? Check out our FAQ X