Subversion Repositories SmartDukaan

Rev

Rev 12573 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12573 Rev 12576
Line 1... Line -...
1
Unexpected error.  File contents could not be restored from local history during undo/redo.
-
 
2
1
 
-
 
2
package com.amazonservices.mws.orders.model;
-
 
3
 
-
 
4
import javax.xml.bind.annotation.XmlAccessType;
-
 
5
import javax.xml.bind.annotation.XmlAccessorType;
-
 
6
import javax.xml.bind.annotation.XmlElement;
-
 
7
import javax.xml.bind.annotation.XmlRootElement;
-
 
8
import javax.xml.bind.annotation.XmlType;
-
 
9
 
-
 
10
 
-
 
11
/**
-
 
12
 * <p>Java class for anonymous complex type.
-
 
13
 * 
-
 
14
 * <p>The following schema fragment specifies the expected content contained within this class.
-
 
15
 * 
-
 
16
 * <pre>
-
 
17
 * &lt;complexType>
-
 
18
 *   &lt;complexContent>
-
 
19
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
-
 
20
 *       &lt;sequence>
-
 
21
 *         &lt;element name="SellerId" type="{http://www.w3.org/2001/XMLSchema}string"/>
-
 
22
 *       &lt;/sequence>
-
 
23
 *     &lt;/restriction>
-
 
24
 *   &lt;/complexContent>
-
 
25
 * &lt;/complexType>
-
 
26
 * </pre>
-
 
27
 * 
-
 
28
 * 
-
 
29
 */
-
 
30
@XmlAccessorType(XmlAccessType.FIELD)
-
 
31
@XmlType(name = "", propOrder = {
-
 
32
    "sellerId"
-
 
33
})
-
 
34
@XmlRootElement(name = "GetServiceStatusRequest")
-
 
35
public class GetServiceStatusRequest {
-
 
36
 
-
 
37
    @XmlElement(name = "SellerId", required = true)
-
 
38
    protected String sellerId;
-
 
39
 
-
 
40
    /**
-
 
41
     * Default constructor
-
 
42
     * 
-
 
43
     */
-
 
44
    public GetServiceStatusRequest() {
-
 
45
        super();
-
 
46
    }
-
 
47
 
-
 
48
    /**
-
 
49
     * Value constructor
-
 
50
     * 
-
 
51
     */
-
 
52
    public GetServiceStatusRequest(final String sellerId) {
-
 
53
        this.sellerId = sellerId;
-
 
54
    }
-
 
55
 
-
 
56
    /**
-
 
57
     * Gets the value of the sellerId property.
-
 
58
     * 
-
 
59
     * @return
-
 
60
     *     possible object is
-
 
61
     *     {@link String }
-
 
62
     *     
-
 
63
     */
-
 
64
    public String getSellerId() {
-
 
65
        return sellerId;
-
 
66
    }
-
 
67
 
-
 
68
    /**
-
 
69
     * Sets the value of the sellerId property.
-
 
70
     * 
-
 
71
     * @param value
-
 
72
     *     allowed object is
-
 
73
     *     {@link String }
-
 
74
     *     
-
 
75
     */
-
 
76
    public void setSellerId(String value) {
-
 
77
        this.sellerId = value;
-
 
78
    }
-
 
79
 
-
 
80
    public boolean isSetSellerId() {
-
 
81
        return (this.sellerId!= null);
-
 
82
    }
-
 
83
 
-
 
84
    /**
-
 
85
     * Sets the value of the SellerId property.
-
 
86
     * 
-
 
87
     * @param value
-
 
88
     * @return
-
 
89
     *     this instance
-
 
90
     */
-
 
91
    public GetServiceStatusRequest withSellerId(String value) {
-
 
92
        setSellerId(value);
-
 
93
        return this;
-
 
94
    }
-
 
95
    
-
 
96
 
-
 
97
 
-
 
98
 
-
 
99
    /**
-
 
100
     *
-
 
101
     * JSON fragment representation of this object
-
 
102
     *
-
 
103
     * @return JSON fragment for this object. Name for outer
-
 
104
     * object expected to be set by calling method. This fragment
-
 
105
     * returns inner properties representation only
-
 
106
     *
-
 
107
     */
-
 
108
    protected String toJSONFragment() {
-
 
109
        StringBuffer json = new StringBuffer();
-
 
110
        boolean first = true;
-
 
111
        if (isSetSellerId()) {
-
 
112
            if (!first) json.append(", ");
-
 
113
            json.append(quoteJSON("SellerId"));
-
 
114
            json.append(" : ");
-
 
115
            json.append(quoteJSON(getSellerId()));
-
 
116
            first = false;
-
 
117
        }
-
 
118
        return json.toString();
-
 
119
    }
-
 
120
 
-
 
121
    /**
-
 
122
     *
-
 
123
     * Quote JSON string
-
 
124
     */
-
 
125
    private String quoteJSON(String string) {
-
 
126
        if (string == null)
-
 
127
            return "null";
-
 
128
        StringBuffer sb = new StringBuffer();
-
 
129
        sb.append("\"");
-
 
130
        int length = string.length();
-
 
131
        for (int i = 0; i < length; ++i) {
-
 
132
            char c = string.charAt(i);
-
 
133
            switch (c) {
-
 
134
            case '"':
-
 
135
                sb.append("\\\"");
-
 
136
                break;
-
 
137
            case '\\':
-
 
138
                sb.append("\\\\");
-
 
139
                break;
-
 
140
            case '/':
-
 
141
                sb.append("\\/");
-
 
142
                break;
-
 
143
            case '\b':
-
 
144
                sb.append("\\b");
-
 
145
                break;
-
 
146
            case '\f':
-
 
147
                sb.append("\\f");
-
 
148
                break;
-
 
149
            case '\n':
-
 
150
                sb.append("\\n");
-
 
151
                break;
-
 
152
            case '\r':
-
 
153
                sb.append("\\r");
-
 
154
                break;
-
 
155
            case '\t':
-
 
156
                sb.append("\\t");
-
 
157
                break;
-
 
158
            default:
-
 
159
                if (c <  ' ') {
-
 
160
                    sb.append("\\u" + String.format("%03x", Integer.valueOf(c)));
-
 
161
                } else {
-
 
162
                sb.append(c);
-
 
163
            }
-
 
164
        }
-
 
165
        }
-
 
166
        sb.append("\"");
-
 
167
        return sb.toString();
-
 
168
    }
-
 
169
 
-
 
170
 
-
 
171
}
-
 
172