Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions

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="" xmlns:xs="" name="TransactionStatusType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="Cancelled"/>
     <xs:enumeration value="Unsuccessful"/>
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