|
@@ -1,123 +1,123 @@ |
1 |
|
- |
|
2 |
|
- |
package org.litesoft.rest.quotes.v1; |
3 |
|
- |
|
4 |
|
- |
import java.io.Serializable; |
5 |
|
- |
import javax.xml.bind.annotation.XmlAccessType; |
6 |
|
- |
import javax.xml.bind.annotation.XmlAccessorType; |
7 |
|
- |
import javax.xml.bind.annotation.XmlAttribute; |
8 |
|
- |
import javax.xml.bind.annotation.XmlElement; |
9 |
|
- |
import javax.xml.bind.annotation.XmlType; |
10 |
|
- |
import org.litesoft.rest.adapters.JAXBgeneratedClassSuperClass; |
11 |
|
- |
|
12 |
|
- |
|
13 |
|
- |
/** |
14 |
|
- |
* <p>Java class for Quote complex type. |
15 |
|
- |
* |
16 |
|
- |
* <p>The following schema fragment specifies the expected content contained within this class. |
17 |
|
- |
* |
18 |
|
- |
* <pre> |
19 |
|
- |
* <complexType name="Quote"> |
20 |
|
- |
* <complexContent> |
21 |
|
- |
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
22 |
|
- |
* <sequence> |
23 |
|
- |
* <element name="Text" type="{http://www.w3.org/2001/XMLSchema}string"/> |
24 |
|
- |
* </sequence> |
25 |
|
- |
* <attribute name="AttributedTo" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> |
26 |
|
- |
* </restriction> |
27 |
|
- |
* </complexContent> |
28 |
|
- |
* </complexType> |
29 |
|
- |
* </pre> |
30 |
|
- |
* |
31 |
|
- |
* |
32 |
|
- |
*/ |
33 |
|
- |
@XmlAccessorType(XmlAccessType.FIELD) |
34 |
|
- |
@XmlType(name = "Quote", propOrder = { |
35 |
|
- |
"text" |
36 |
|
- |
}) |
37 |
|
- |
public class Quote |
38 |
|
- |
extends JAXBgeneratedClassSuperClass |
39 |
|
- |
implements Serializable |
40 |
|
- |
{ |
41 |
|
- |
|
42 |
|
- |
@XmlElement(name = "Text", required = true) |
43 |
|
- |
protected String text; |
44 |
|
- |
@XmlAttribute(name = "AttributedTo", required = true) |
45 |
|
- |
protected String attributedTo; |
46 |
|
- |
|
47 |
|
- |
/** |
48 |
|
- |
* Default no-arg constructor |
49 |
|
- |
* |
50 |
|
- |
*/ |
51 |
|
- |
public Quote() { |
52 |
|
- |
super(); |
53 |
|
- |
} |
54 |
|
- |
|
55 |
|
- |
/** |
56 |
|
- |
* Fully-initialising value constructor |
57 |
|
- |
* |
58 |
|
- |
*/ |
59 |
|
- |
public Quote(final String text, final String attributedTo) { |
60 |
|
- |
super(); |
61 |
|
- |
this.text = text; |
62 |
|
- |
this.attributedTo = attributedTo; |
63 |
|
- |
} |
64 |
|
- |
|
65 |
|
- |
/** |
66 |
|
- |
* Gets the value of the text property. |
67 |
|
- |
* |
68 |
|
- |
* @return |
69 |
|
- |
* possible object is |
70 |
|
- |
* {@link String } |
71 |
|
- |
* |
72 |
|
- |
*/ |
73 |
|
- |
public String getText() { |
74 |
|
- |
return text; |
75 |
|
- |
} |
76 |
|
- |
|
77 |
|
- |
/** |
78 |
|
- |
* Sets the value of the text property. |
79 |
|
- |
* |
80 |
|
- |
* @param value |
81 |
|
- |
* allowed object is |
82 |
|
- |
* {@link String } |
83 |
|
- |
* |
84 |
|
- |
*/ |
85 |
|
- |
public void setText(String value) { |
86 |
|
- |
this.text = value; |
87 |
|
- |
} |
88 |
|
- |
|
89 |
|
- |
/** |
90 |
|
- |
* Gets the value of the attributedTo property. |
91 |
|
- |
* |
92 |
|
- |
* @return |
93 |
|
- |
* possible object is |
94 |
|
- |
* {@link String } |
95 |
|
- |
* |
96 |
|
- |
*/ |
97 |
|
- |
public String getAttributedTo() { |
98 |
|
- |
return attributedTo; |
99 |
|
- |
} |
100 |
|
- |
|
101 |
|
- |
/** |
102 |
|
- |
* Sets the value of the attributedTo property. |
103 |
|
- |
* |
104 |
|
- |
* @param value |
105 |
|
- |
* allowed object is |
106 |
|
- |
* {@link String } |
107 |
|
- |
* |
108 |
|
- |
*/ |
109 |
|
- |
public void setAttributedTo(String value) { |
110 |
|
- |
this.attributedTo = value; |
111 |
|
- |
} |
112 |
|
- |
|
113 |
|
- |
public Quote withText(String value) { |
114 |
|
- |
setText(value); |
115 |
|
- |
return this; |
116 |
|
- |
} |
117 |
|
- |
|
118 |
|
- |
public Quote withAttributedTo(String value) { |
119 |
|
- |
setAttributedTo(value); |
120 |
|
- |
return this; |
121 |
|
- |
} |
122 |
|
- |
|
123 |
|
- |
} |
|
1 |
+ |
|
|
2 |
+ |
package org.litesoft.rest.quotes.v1; |
|
3 |
+ |
|
|
4 |
+ |
import java.io.Serializable; |
|
5 |
+ |
import javax.xml.bind.annotation.XmlAccessType; |
|
6 |
+ |
import javax.xml.bind.annotation.XmlAccessorType; |
|
7 |
+ |
import javax.xml.bind.annotation.XmlAttribute; |
|
8 |
+ |
import javax.xml.bind.annotation.XmlElement; |
|
9 |
+ |
import javax.xml.bind.annotation.XmlType; |
|
10 |
+ |
import org.litesoft.rest.adapters.JAXBgeneratedClassSuperClass; |
|
11 |
+ |
|
|
12 |
+ |
|
|
13 |
+ |
/** |
|
14 |
+ |
* <p>Java class for Quote complex type. |
|
15 |
+ |
* |
|
16 |
+ |
* <p>The following schema fragment specifies the expected content contained within this class. |
|
17 |
+ |
* |
|
18 |
+ |
* <pre> |
|
19 |
+ |
* <complexType name="Quote"> |
|
20 |
+ |
* <complexContent> |
|
21 |
+ |
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|
22 |
+ |
* <sequence> |
|
23 |
+ |
* <element name="Text" type="{http://www.w3.org/2001/XMLSchema}string"/> |
|
24 |
+ |
* </sequence> |
|
25 |
+ |
* <attribute name="AttributedTo" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|
26 |
+ |
* </restriction> |
|
27 |
+ |
* </complexContent> |
|
28 |
+ |
* </complexType> |
|
29 |
+ |
* </pre> |
|
30 |
+ |
* |
|
31 |
+ |
* |
|
32 |
+ |
*/ |
|
33 |
+ |
@XmlAccessorType(XmlAccessType.FIELD) |
|
34 |
+ |
@XmlType(name = "Quote", propOrder = { |
|
35 |
+ |
"text" |
|
36 |
+ |
}) |
|
37 |
+ |
public class Quote |
|
38 |
+ |
extends JAXBgeneratedClassSuperClass |
|
39 |
+ |
implements Serializable |
|
40 |
+ |
{ |
|
41 |
+ |
|
|
42 |
+ |
@XmlElement(name = "Text", required = true) |
|
43 |
+ |
protected String text; |
|
44 |
+ |
@XmlAttribute(name = "AttributedTo", required = true) |
|
45 |
+ |
protected String attributedTo; |
|
46 |
+ |
|
|
47 |
+ |
/** |
|
48 |
+ |
* Default no-arg constructor |
|
49 |
+ |
* |
|
50 |
+ |
*/ |
|
51 |
+ |
public Quote() { |
|
52 |
+ |
super(); |
|
53 |
+ |
} |
|
54 |
+ |
|
|
55 |
+ |
/** |
|
56 |
+ |
* Fully-initialising value constructor |
|
57 |
+ |
* |
|
58 |
+ |
*/ |
|
59 |
+ |
public Quote(final String text, final String attributedTo) { |
|
60 |
+ |
super(); |
|
61 |
+ |
this.text = text; |
|
62 |
+ |
this.attributedTo = attributedTo; |
|
63 |
+ |
} |
|
64 |
+ |
|
|
65 |
+ |
/** |
|
66 |
+ |
* Gets the value of the text property. |
|
67 |
+ |
* |
|
68 |
+ |
* @return |
|
69 |
+ |
* possible object is |
|
70 |
+ |
* {@link String } |
|
71 |
+ |
* |
|
72 |
+ |
*/ |
|
73 |
+ |
public String getText() { |
|
74 |
+ |
return text; |
|
75 |
+ |
} |
|
76 |
+ |
|
|
77 |
+ |
/** |
|
78 |
+ |
* Sets the value of the text property. |
|
79 |
+ |
* |
|
80 |
+ |
* @param value |
|
81 |
+ |
* allowed object is |
|
82 |
+ |
* {@link String } |
|
83 |
+ |
* |
|
84 |
+ |
*/ |
|
85 |
+ |
public void setText(String value) { |
|
86 |
+ |
this.text = value; |
|
87 |
+ |
} |
|
88 |
+ |
|
|
89 |
+ |
/** |
|
90 |
+ |
* Gets the value of the attributedTo property. |
|
91 |
+ |
* |
|
92 |
+ |
* @return |
|
93 |
+ |
* possible object is |
|
94 |
+ |
* {@link String } |
|
95 |
+ |
* |
|
96 |
+ |
*/ |
|
97 |
+ |
public String getAttributedTo() { |
|
98 |
+ |
return attributedTo; |
|
99 |
+ |
} |
|
100 |
+ |
|
|
101 |
+ |
/** |
|
102 |
+ |
* Sets the value of the attributedTo property. |
|
103 |
+ |
* |
|
104 |
+ |
* @param value |
|
105 |
+ |
* allowed object is |
|
106 |
+ |
* {@link String } |
|
107 |
+ |
* |
|
108 |
+ |
*/ |
|
109 |
+ |
public void setAttributedTo(String value) { |
|
110 |
+ |
this.attributedTo = value; |
|
111 |
+ |
} |
|
112 |
+ |
|
|
113 |
+ |
public Quote withText(String value) { |
|
114 |
+ |
setText(value); |
|
115 |
+ |
return this; |
|
116 |
+ |
} |
|
117 |
+ |
|
|
118 |
+ |
public Quote withAttributedTo(String value) { |
|
119 |
+ |
setAttributedTo(value); |
|
120 |
+ |
return this; |
|
121 |
+ |
} |
|
122 |
+ |
|
|
123 |
+ |
} |