();
78 |
79 | /**
80 | *
81 | * The Atom content construct is defined in section 4.1.3 of the format spec.
82 | * Gets the value of the content property.
83 | *
84 | *
85 | * This accessor method returns a reference to the live list,
86 | * not a snapshot. Therefore any modification you make to the
87 | * returned list will be present inside the JAXB object.
88 | * This is why there is not a set
method for the content property.
89 | *
90 | *
91 | * For example, to add a new item, do as follows:
92 | *
93 | * getContent().add(newItem);
94 | *
95 | *
96 | *
97 | *
98 | * Objects of the following type(s) are allowed in the list
99 | * {@link String }
100 | * {@link Object }
101 | *
102 | *
103 | */
104 | public List getContent() {
105 | if (content == null) {
106 | content = new ArrayList();
107 | }
108 | return this.content;
109 | }
110 |
111 | /**
112 | * Gets the value of the type property.
113 | *
114 | * @return
115 | * possible object is
116 | * {@link String }
117 | *
118 | */
119 | public String getType() {
120 | return type;
121 | }
122 |
123 | /**
124 | * Sets the value of the type property.
125 | *
126 | * @param value
127 | * allowed object is
128 | * {@link String }
129 | *
130 | */
131 | public void setType(String value) {
132 | this.type = value;
133 | }
134 |
135 | /**
136 | * Gets the value of the src property.
137 | *
138 | * @return
139 | * possible object is
140 | * {@link String }
141 | *
142 | */
143 | public String getSrc() {
144 | return src;
145 | }
146 |
147 | /**
148 | * Sets the value of the src property.
149 | *
150 | * @param value
151 | * allowed object is
152 | * {@link String }
153 | *
154 | */
155 | public void setSrc(String value) {
156 | this.src = value;
157 | }
158 |
159 | /**
160 | * Gets the value of the base property.
161 | *
162 | * @return
163 | * possible object is
164 | * {@link String }
165 | *
166 | */
167 | public String getBase() {
168 | return base;
169 | }
170 |
171 | /**
172 | * Sets the value of the base property.
173 | *
174 | * @param value
175 | * allowed object is
176 | * {@link String }
177 | *
178 | */
179 | public void setBase(String value) {
180 | this.base = value;
181 | }
182 |
183 | /**
184 | * Gets the value of the lang property.
185 | *
186 | * @return
187 | * possible object is
188 | * {@link String }
189 | *
190 | */
191 | public String getLang() {
192 | return lang;
193 | }
194 |
195 | /**
196 | * Sets the value of the lang property.
197 | *
198 | * @param value
199 | * allowed object is
200 | * {@link String }
201 | *
202 | */
203 | public void setLang(String value) {
204 | this.lang = value;
205 | }
206 |
207 | /**
208 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
209 | *
210 | *
211 | * the map is keyed by the name of the attribute and
212 | * the value is the string value of the attribute.
213 | *
214 | * the map returned by this method is live, and you can add new attribute
215 | * by updating the map directly. Because of this design, there's no setter.
216 | *
217 | *
218 | * @return
219 | * always non-null
220 | */
221 | public Map getOtherAttributes() {
222 | return otherAttributes;
223 | }
224 |
225 | }
226 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/DateTimeType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.util.HashMap;
12 | import java.util.Map;
13 | import javax.xml.bind.annotation.XmlAccessType;
14 | import javax.xml.bind.annotation.XmlAccessorType;
15 | import javax.xml.bind.annotation.XmlAnyAttribute;
16 | import javax.xml.bind.annotation.XmlAttribute;
17 | import javax.xml.bind.annotation.XmlSchemaType;
18 | import javax.xml.bind.annotation.XmlType;
19 | import javax.xml.bind.annotation.XmlValue;
20 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
21 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
22 | import javax.xml.datatype.XMLGregorianCalendar;
23 | import javax.xml.namespace.QName;
24 |
25 |
26 | /**
27 | * Java class for dateTimeType complex type.
28 | *
29 | *
The following schema fragment specifies the expected content contained within this class.
30 | *
31 | *
32 | * <complexType name="dateTimeType">
33 | * <simpleContent>
34 | * <extension base="<http://www.w3.org/2001/XMLSchema>dateTime">
35 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
36 | * <anyAttribute namespace='##other'/>
37 | * </extension>
38 | * </simpleContent>
39 | * </complexType>
40 | *
41 | *
42 | *
43 | */
44 | @XmlAccessorType(XmlAccessType.FIELD)
45 | @XmlType(name = "dateTimeType", propOrder = {
46 | "value"
47 | })
48 | public class DateTimeType {
49 |
50 | @XmlValue
51 | @XmlSchemaType(name = "dateTime")
52 | protected XMLGregorianCalendar value;
53 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
54 | @XmlSchemaType(name = "anyURI")
55 | protected String base;
56 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
57 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
58 | @XmlSchemaType(name = "language")
59 | protected String lang;
60 | @XmlAnyAttribute
61 | private Map otherAttributes = new HashMap();
62 |
63 | /**
64 | * Gets the value of the value property.
65 | *
66 | * @return
67 | * possible object is
68 | * {@link XMLGregorianCalendar }
69 | *
70 | */
71 | public XMLGregorianCalendar getValue() {
72 | return value;
73 | }
74 |
75 | /**
76 | * Sets the value of the value property.
77 | *
78 | * @param value
79 | * allowed object is
80 | * {@link XMLGregorianCalendar }
81 | *
82 | */
83 | public void setValue(XMLGregorianCalendar value) {
84 | this.value = value;
85 | }
86 |
87 | /**
88 | * Gets the value of the base property.
89 | *
90 | * @return
91 | * possible object is
92 | * {@link String }
93 | *
94 | */
95 | public String getBase() {
96 | return base;
97 | }
98 |
99 | /**
100 | * Sets the value of the base property.
101 | *
102 | * @param value
103 | * allowed object is
104 | * {@link String }
105 | *
106 | */
107 | public void setBase(String value) {
108 | this.base = value;
109 | }
110 |
111 | /**
112 | * Gets the value of the lang property.
113 | *
114 | * @return
115 | * possible object is
116 | * {@link String }
117 | *
118 | */
119 | public String getLang() {
120 | return lang;
121 | }
122 |
123 | /**
124 | * Sets the value of the lang property.
125 | *
126 | * @param value
127 | * allowed object is
128 | * {@link String }
129 | *
130 | */
131 | public void setLang(String value) {
132 | this.lang = value;
133 | }
134 |
135 | /**
136 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
137 | *
138 | *
139 | * the map is keyed by the name of the attribute and
140 | * the value is the string value of the attribute.
141 | *
142 | * the map returned by this method is live, and you can add new attribute
143 | * by updating the map directly. Because of this design, there's no setter.
144 | *
145 | *
146 | * @return
147 | * always non-null
148 | */
149 | public Map getOtherAttributes() {
150 | return otherAttributes;
151 | }
152 |
153 | }
154 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/EntryType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.util.ArrayList;
12 | import java.util.HashMap;
13 | import java.util.List;
14 | import java.util.Map;
15 | import javax.xml.bind.JAXBElement;
16 | import javax.xml.bind.annotation.XmlAccessType;
17 | import javax.xml.bind.annotation.XmlAccessorType;
18 | import javax.xml.bind.annotation.XmlAnyAttribute;
19 | import javax.xml.bind.annotation.XmlAnyElement;
20 | import javax.xml.bind.annotation.XmlAttribute;
21 | import javax.xml.bind.annotation.XmlElementRef;
22 | import javax.xml.bind.annotation.XmlElementRefs;
23 | import javax.xml.bind.annotation.XmlSchemaType;
24 | import javax.xml.bind.annotation.XmlType;
25 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
26 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
27 | import javax.xml.namespace.QName;
28 |
29 |
30 | /**
31 | *
32 | * The Atom entry construct is defined in section 4.1.2 of the format spec.
33 | *
34 | *
35 | * Java class for entryType complex type.
36 | *
37 | *
The following schema fragment specifies the expected content contained within this class.
38 | *
39 | *
40 | * <complexType name="entryType">
41 | * <complexContent>
42 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 | * <choice maxOccurs="unbounded">
44 | * <element name="author" type="{http://www.w3.org/2005/Atom}personType" maxOccurs="unbounded" minOccurs="0"/>
45 | * <element name="category" type="{http://www.w3.org/2005/Atom}categoryType" maxOccurs="unbounded" minOccurs="0"/>
46 | * <element name="content" type="{http://www.w3.org/2005/Atom}contentType" minOccurs="0"/>
47 | * <element name="contributor" type="{http://www.w3.org/2005/Atom}personType" maxOccurs="unbounded" minOccurs="0"/>
48 | * <element name="id" type="{http://www.w3.org/2005/Atom}idType"/>
49 | * <element name="link" type="{http://www.w3.org/2005/Atom}linkType" maxOccurs="unbounded" minOccurs="0"/>
50 | * <element name="published" type="{http://www.w3.org/2005/Atom}dateTimeType" minOccurs="0"/>
51 | * <element name="rights" type="{http://www.w3.org/2005/Atom}textType" minOccurs="0"/>
52 | * <element name="source" type="{http://www.w3.org/2005/Atom}textType" minOccurs="0"/>
53 | * <element name="summary" type="{http://www.w3.org/2005/Atom}textType" minOccurs="0"/>
54 | * <element name="title" type="{http://www.w3.org/2005/Atom}textType"/>
55 | * <element name="updated" type="{http://www.w3.org/2005/Atom}dateTimeType"/>
56 | * <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
57 | * </choice>
58 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
59 | * <anyAttribute namespace='##other'/>
60 | * </restriction>
61 | * </complexContent>
62 | * </complexType>
63 | *
64 | *
65 | *
66 | */
67 | @XmlAccessorType(XmlAccessType.FIELD)
68 | @XmlType(name = "entryType", propOrder = {
69 | "authorOrCategoryOrContent"
70 | })
71 | public class EntryType {
72 |
73 | @XmlElementRefs({
74 | @XmlElementRef(name = "contributor", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
75 | @XmlElementRef(name = "source", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
76 | @XmlElementRef(name = "link", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
77 | @XmlElementRef(name = "author", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
78 | @XmlElementRef(name = "summary", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
79 | @XmlElementRef(name = "title", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
80 | @XmlElementRef(name = "content", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
81 | @XmlElementRef(name = "published", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
82 | @XmlElementRef(name = "updated", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
83 | @XmlElementRef(name = "id", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
84 | @XmlElementRef(name = "category", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
85 | @XmlElementRef(name = "rights", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false)
86 | })
87 | @XmlAnyElement(lax = true)
88 | protected List authorOrCategoryOrContent;
89 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
90 | @XmlSchemaType(name = "anyURI")
91 | protected String base;
92 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
93 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
94 | @XmlSchemaType(name = "language")
95 | protected String lang;
96 | @XmlAnyAttribute
97 | private Map otherAttributes = new HashMap();
98 |
99 | /**
100 | * Gets the value of the authorOrCategoryOrContent property.
101 | *
102 | *
103 | * This accessor method returns a reference to the live list,
104 | * not a snapshot. Therefore any modification you make to the
105 | * returned list will be present inside the JAXB object.
106 | * This is why there is not a set
method for the authorOrCategoryOrContent property.
107 | *
108 | *
109 | * For example, to add a new item, do as follows:
110 | *
111 | * getAuthorOrCategoryOrContent().add(newItem);
112 | *
113 | *
114 | *
115 | *
116 | * Objects of the following type(s) are allowed in the list
117 | * {@link JAXBElement }{@code <}{@link PersonType }{@code >}
118 | * {@link JAXBElement }{@code <}{@link PersonType }{@code >}
119 | * {@link JAXBElement }{@code <}{@link TextType }{@code >}
120 | * {@link JAXBElement }{@code <}{@link DateTimeType }{@code >}
121 | * {@link JAXBElement }{@code <}{@link DateTimeType }{@code >}
122 | * {@link JAXBElement }{@code <}{@link CategoryType }{@code >}
123 | * {@link JAXBElement }{@code <}{@link TextType }{@code >}
124 | * {@link Object }
125 | * {@link JAXBElement }{@code <}{@link TextType }{@code >}
126 | * {@link JAXBElement }{@code <}{@link LinkType }{@code >}
127 | * {@link JAXBElement }{@code <}{@link TextType }{@code >}
128 | * {@link JAXBElement }{@code <}{@link ContentType }{@code >}
129 | * {@link JAXBElement }{@code <}{@link IdType }{@code >}
130 | *
131 | *
132 | */
133 | public List getAuthorOrCategoryOrContent() {
134 | if (authorOrCategoryOrContent == null) {
135 | authorOrCategoryOrContent = new ArrayList();
136 | }
137 | return this.authorOrCategoryOrContent;
138 | }
139 |
140 | /**
141 | * Gets the value of the base property.
142 | *
143 | * @return
144 | * possible object is
145 | * {@link String }
146 | *
147 | */
148 | public String getBase() {
149 | return base;
150 | }
151 |
152 | /**
153 | * Sets the value of the base property.
154 | *
155 | * @param value
156 | * allowed object is
157 | * {@link String }
158 | *
159 | */
160 | public void setBase(String value) {
161 | this.base = value;
162 | }
163 |
164 | /**
165 | * Gets the value of the lang property.
166 | *
167 | * @return
168 | * possible object is
169 | * {@link String }
170 | *
171 | */
172 | public String getLang() {
173 | return lang;
174 | }
175 |
176 | /**
177 | * Sets the value of the lang property.
178 | *
179 | * @param value
180 | * allowed object is
181 | * {@link String }
182 | *
183 | */
184 | public void setLang(String value) {
185 | this.lang = value;
186 | }
187 |
188 | /**
189 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
190 | *
191 | *
192 | * the map is keyed by the name of the attribute and
193 | * the value is the string value of the attribute.
194 | *
195 | * the map returned by this method is live, and you can add new attribute
196 | * by updating the map directly. Because of this design, there's no setter.
197 | *
198 | *
199 | * @return
200 | * always non-null
201 | */
202 | public Map getOtherAttributes() {
203 | return otherAttributes;
204 | }
205 |
206 | }
207 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/FeedType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.util.ArrayList;
12 | import java.util.HashMap;
13 | import java.util.List;
14 | import java.util.Map;
15 | import javax.xml.bind.JAXBElement;
16 | import javax.xml.bind.annotation.XmlAccessType;
17 | import javax.xml.bind.annotation.XmlAccessorType;
18 | import javax.xml.bind.annotation.XmlAnyAttribute;
19 | import javax.xml.bind.annotation.XmlAnyElement;
20 | import javax.xml.bind.annotation.XmlAttribute;
21 | import javax.xml.bind.annotation.XmlElementRef;
22 | import javax.xml.bind.annotation.XmlElementRefs;
23 | import javax.xml.bind.annotation.XmlSchemaType;
24 | import javax.xml.bind.annotation.XmlType;
25 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
26 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
27 | import javax.xml.namespace.QName;
28 |
29 |
30 | /**
31 | *
32 | * The Atom feed construct is defined in section 4.1.1 of the format spec.
33 | *
34 | *
35 | * Java class for feedType complex type.
36 | *
37 | *
The following schema fragment specifies the expected content contained within this class.
38 | *
39 | *
40 | * <complexType name="feedType">
41 | * <complexContent>
42 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 | * <choice maxOccurs="unbounded" minOccurs="3">
44 | * <element name="author" type="{http://www.w3.org/2005/Atom}personType" maxOccurs="unbounded" minOccurs="0"/>
45 | * <element name="category" type="{http://www.w3.org/2005/Atom}categoryType" maxOccurs="unbounded" minOccurs="0"/>
46 | * <element name="contributor" type="{http://www.w3.org/2005/Atom}personType" maxOccurs="unbounded" minOccurs="0"/>
47 | * <element name="generator" type="{http://www.w3.org/2005/Atom}generatorType" minOccurs="0"/>
48 | * <element name="icon" type="{http://www.w3.org/2005/Atom}iconType" minOccurs="0"/>
49 | * <element name="id" type="{http://www.w3.org/2005/Atom}idType"/>
50 | * <element name="link" type="{http://www.w3.org/2005/Atom}linkType" maxOccurs="unbounded" minOccurs="0"/>
51 | * <element name="logo" type="{http://www.w3.org/2005/Atom}logoType" minOccurs="0"/>
52 | * <element name="rights" type="{http://www.w3.org/2005/Atom}textType" minOccurs="0"/>
53 | * <element name="subtitle" type="{http://www.w3.org/2005/Atom}textType" minOccurs="0"/>
54 | * <element name="title" type="{http://www.w3.org/2005/Atom}textType"/>
55 | * <element name="updated" type="{http://www.w3.org/2005/Atom}dateTimeType"/>
56 | * <element name="entry" type="{http://www.w3.org/2005/Atom}entryType" maxOccurs="unbounded" minOccurs="0"/>
57 | * <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
58 | * </choice>
59 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
60 | * <anyAttribute namespace='##other'/>
61 | * </restriction>
62 | * </complexContent>
63 | * </complexType>
64 | *
65 | *
66 | *
67 | */
68 | @XmlAccessorType(XmlAccessType.FIELD)
69 | @XmlType(name = "feedType", propOrder = {
70 | "authorOrCategoryOrContributor"
71 | })
72 | public class FeedType {
73 |
74 | @XmlElementRefs({
75 | @XmlElementRef(name = "title", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
76 | @XmlElementRef(name = "updated", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
77 | @XmlElementRef(name = "author", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
78 | @XmlElementRef(name = "entry", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
79 | @XmlElementRef(name = "category", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
80 | @XmlElementRef(name = "logo", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
81 | @XmlElementRef(name = "id", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
82 | @XmlElementRef(name = "link", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
83 | @XmlElementRef(name = "generator", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
84 | @XmlElementRef(name = "icon", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
85 | @XmlElementRef(name = "subtitle", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
86 | @XmlElementRef(name = "rights", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
87 | @XmlElementRef(name = "contributor", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false)
88 | })
89 | @XmlAnyElement(lax = true)
90 | protected List authorOrCategoryOrContributor;
91 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
92 | @XmlSchemaType(name = "anyURI")
93 | protected String base;
94 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
95 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
96 | @XmlSchemaType(name = "language")
97 | protected String lang;
98 | @XmlAnyAttribute
99 | private Map otherAttributes = new HashMap();
100 |
101 | /**
102 | * Gets the value of the authorOrCategoryOrContributor property.
103 | *
104 | *
105 | * This accessor method returns a reference to the live list,
106 | * not a snapshot. Therefore any modification you make to the
107 | * returned list will be present inside the JAXB object.
108 | * This is why there is not a set
method for the authorOrCategoryOrContributor property.
109 | *
110 | *
111 | * For example, to add a new item, do as follows:
112 | *
113 | * getAuthorOrCategoryOrContributor().add(newItem);
114 | *
115 | *
116 | *
117 | *
118 | * Objects of the following type(s) are allowed in the list
119 | * {@link JAXBElement }{@code <}{@link TextType }{@code >}
120 | * {@link JAXBElement }{@code <}{@link DateTimeType }{@code >}
121 | * {@link JAXBElement }{@code <}{@link PersonType }{@code >}
122 | * {@link JAXBElement }{@code <}{@link EntryType }{@code >}
123 | * {@link JAXBElement }{@code <}{@link CategoryType }{@code >}
124 | * {@link JAXBElement }{@code <}{@link LogoType }{@code >}
125 | * {@link JAXBElement }{@code <}{@link IdType }{@code >}
126 | * {@link JAXBElement }{@code <}{@link LinkType }{@code >}
127 | * {@link JAXBElement }{@code <}{@link GeneratorType }{@code >}
128 | * {@link JAXBElement }{@code <}{@link IconType }{@code >}
129 | * {@link JAXBElement }{@code <}{@link TextType }{@code >}
130 | * {@link Object }
131 | * {@link JAXBElement }{@code <}{@link TextType }{@code >}
132 | * {@link JAXBElement }{@code <}{@link PersonType }{@code >}
133 | *
134 | *
135 | */
136 | public List getAuthorOrCategoryOrContributor() {
137 | if (authorOrCategoryOrContributor == null) {
138 | authorOrCategoryOrContributor = new ArrayList();
139 | }
140 | return this.authorOrCategoryOrContributor;
141 | }
142 |
143 | /**
144 | * Gets the value of the base property.
145 | *
146 | * @return
147 | * possible object is
148 | * {@link String }
149 | *
150 | */
151 | public String getBase() {
152 | return base;
153 | }
154 |
155 | /**
156 | * Sets the value of the base property.
157 | *
158 | * @param value
159 | * allowed object is
160 | * {@link String }
161 | *
162 | */
163 | public void setBase(String value) {
164 | this.base = value;
165 | }
166 |
167 | /**
168 | * Gets the value of the lang property.
169 | *
170 | * @return
171 | * possible object is
172 | * {@link String }
173 | *
174 | */
175 | public String getLang() {
176 | return lang;
177 | }
178 |
179 | /**
180 | * Sets the value of the lang property.
181 | *
182 | * @param value
183 | * allowed object is
184 | * {@link String }
185 | *
186 | */
187 | public void setLang(String value) {
188 | this.lang = value;
189 | }
190 |
191 | /**
192 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
193 | *
194 | *
195 | * the map is keyed by the name of the attribute and
196 | * the value is the string value of the attribute.
197 | *
198 | * the map returned by this method is live, and you can add new attribute
199 | * by updating the map directly. Because of this design, there's no setter.
200 | *
201 | *
202 | * @return
203 | * always non-null
204 | */
205 | public Map getOtherAttributes() {
206 | return otherAttributes;
207 | }
208 |
209 | }
210 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/GeneratorType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.util.HashMap;
12 | import java.util.Map;
13 | import javax.xml.bind.annotation.XmlAccessType;
14 | import javax.xml.bind.annotation.XmlAccessorType;
15 | import javax.xml.bind.annotation.XmlAnyAttribute;
16 | import javax.xml.bind.annotation.XmlAttribute;
17 | import javax.xml.bind.annotation.XmlSchemaType;
18 | import javax.xml.bind.annotation.XmlType;
19 | import javax.xml.bind.annotation.XmlValue;
20 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
21 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
22 | import javax.xml.namespace.QName;
23 |
24 |
25 | /**
26 | *
27 | * The Atom generator element is defined in section 4.2.4 of the format spec.
28 | *
29 | *
30 | * Java class for generatorType complex type.
31 | *
32 | *
The following schema fragment specifies the expected content contained within this class.
33 | *
34 | *
35 | * <complexType name="generatorType">
36 | * <simpleContent>
37 | * <extension base="<http://www.w3.org/2001/XMLSchema>string">
38 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
39 | * <attribute name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
40 | * <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" />
41 | * <anyAttribute namespace='##other'/>
42 | * </extension>
43 | * </simpleContent>
44 | * </complexType>
45 | *
46 | *
47 | *
48 | */
49 | @XmlAccessorType(XmlAccessType.FIELD)
50 | @XmlType(name = "generatorType", propOrder = {
51 | "value"
52 | })
53 | public class GeneratorType {
54 |
55 | @XmlValue
56 | protected String value;
57 | @XmlAttribute(name = "uri")
58 | @XmlSchemaType(name = "anyURI")
59 | protected String uri;
60 | @XmlAttribute(name = "version")
61 | protected String version;
62 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
63 | @XmlSchemaType(name = "anyURI")
64 | protected String base;
65 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
66 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
67 | @XmlSchemaType(name = "language")
68 | protected String lang;
69 | @XmlAnyAttribute
70 | private Map otherAttributes = new HashMap();
71 |
72 | /**
73 | * Gets the value of the value property.
74 | *
75 | * @return
76 | * possible object is
77 | * {@link String }
78 | *
79 | */
80 | public String getValue() {
81 | return value;
82 | }
83 |
84 | /**
85 | * Sets the value of the value property.
86 | *
87 | * @param value
88 | * allowed object is
89 | * {@link String }
90 | *
91 | */
92 | public void setValue(String value) {
93 | this.value = value;
94 | }
95 |
96 | /**
97 | * Gets the value of the uri property.
98 | *
99 | * @return
100 | * possible object is
101 | * {@link String }
102 | *
103 | */
104 | public String getUri() {
105 | return uri;
106 | }
107 |
108 | /**
109 | * Sets the value of the uri property.
110 | *
111 | * @param value
112 | * allowed object is
113 | * {@link String }
114 | *
115 | */
116 | public void setUri(String value) {
117 | this.uri = value;
118 | }
119 |
120 | /**
121 | * Gets the value of the version property.
122 | *
123 | * @return
124 | * possible object is
125 | * {@link String }
126 | *
127 | */
128 | public String getVersion() {
129 | return version;
130 | }
131 |
132 | /**
133 | * Sets the value of the version property.
134 | *
135 | * @param value
136 | * allowed object is
137 | * {@link String }
138 | *
139 | */
140 | public void setVersion(String value) {
141 | this.version = value;
142 | }
143 |
144 | /**
145 | * Gets the value of the base property.
146 | *
147 | * @return
148 | * possible object is
149 | * {@link String }
150 | *
151 | */
152 | public String getBase() {
153 | return base;
154 | }
155 |
156 | /**
157 | * Sets the value of the base property.
158 | *
159 | * @param value
160 | * allowed object is
161 | * {@link String }
162 | *
163 | */
164 | public void setBase(String value) {
165 | this.base = value;
166 | }
167 |
168 | /**
169 | * Gets the value of the lang property.
170 | *
171 | * @return
172 | * possible object is
173 | * {@link String }
174 | *
175 | */
176 | public String getLang() {
177 | return lang;
178 | }
179 |
180 | /**
181 | * Sets the value of the lang property.
182 | *
183 | * @param value
184 | * allowed object is
185 | * {@link String }
186 | *
187 | */
188 | public void setLang(String value) {
189 | this.lang = value;
190 | }
191 |
192 | /**
193 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
194 | *
195 | *
196 | * the map is keyed by the name of the attribute and
197 | * the value is the string value of the attribute.
198 | *
199 | * the map returned by this method is live, and you can add new attribute
200 | * by updating the map directly. Because of this design, there's no setter.
201 | *
202 | *
203 | * @return
204 | * always non-null
205 | */
206 | public Map getOtherAttributes() {
207 | return otherAttributes;
208 | }
209 |
210 | }
211 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/IconType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.util.HashMap;
12 | import java.util.Map;
13 | import javax.xml.bind.annotation.XmlAccessType;
14 | import javax.xml.bind.annotation.XmlAccessorType;
15 | import javax.xml.bind.annotation.XmlAnyAttribute;
16 | import javax.xml.bind.annotation.XmlAttribute;
17 | import javax.xml.bind.annotation.XmlSchemaType;
18 | import javax.xml.bind.annotation.XmlType;
19 | import javax.xml.bind.annotation.XmlValue;
20 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
21 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
22 | import javax.xml.namespace.QName;
23 |
24 |
25 | /**
26 | *
27 | * The Atom icon construct is defined in section 4.2.5 of the format spec.
28 | *
29 | *
30 | * Java class for iconType complex type.
31 | *
32 | *
The following schema fragment specifies the expected content contained within this class.
33 | *
34 | *
35 | * <complexType name="iconType">
36 | * <simpleContent>
37 | * <extension base="<http://www.w3.org/2001/XMLSchema>anyURI">
38 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
39 | * <anyAttribute namespace='##other'/>
40 | * </extension>
41 | * </simpleContent>
42 | * </complexType>
43 | *
44 | *
45 | *
46 | */
47 | @XmlAccessorType(XmlAccessType.FIELD)
48 | @XmlType(name = "iconType", propOrder = {
49 | "value"
50 | })
51 | public class IconType {
52 |
53 | @XmlValue
54 | @XmlSchemaType(name = "anyURI")
55 | protected String value;
56 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
57 | @XmlSchemaType(name = "anyURI")
58 | protected String base;
59 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
60 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
61 | @XmlSchemaType(name = "language")
62 | protected String lang;
63 | @XmlAnyAttribute
64 | private Map otherAttributes = new HashMap();
65 |
66 | /**
67 | * Gets the value of the value property.
68 | *
69 | * @return
70 | * possible object is
71 | * {@link String }
72 | *
73 | */
74 | public String getValue() {
75 | return value;
76 | }
77 |
78 | /**
79 | * Sets the value of the value property.
80 | *
81 | * @param value
82 | * allowed object is
83 | * {@link String }
84 | *
85 | */
86 | public void setValue(String value) {
87 | this.value = value;
88 | }
89 |
90 | /**
91 | * Gets the value of the base property.
92 | *
93 | * @return
94 | * possible object is
95 | * {@link String }
96 | *
97 | */
98 | public String getBase() {
99 | return base;
100 | }
101 |
102 | /**
103 | * Sets the value of the base property.
104 | *
105 | * @param value
106 | * allowed object is
107 | * {@link String }
108 | *
109 | */
110 | public void setBase(String value) {
111 | this.base = value;
112 | }
113 |
114 | /**
115 | * Gets the value of the lang property.
116 | *
117 | * @return
118 | * possible object is
119 | * {@link String }
120 | *
121 | */
122 | public String getLang() {
123 | return lang;
124 | }
125 |
126 | /**
127 | * Sets the value of the lang property.
128 | *
129 | * @param value
130 | * allowed object is
131 | * {@link String }
132 | *
133 | */
134 | public void setLang(String value) {
135 | this.lang = value;
136 | }
137 |
138 | /**
139 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
140 | *
141 | *
142 | * the map is keyed by the name of the attribute and
143 | * the value is the string value of the attribute.
144 | *
145 | * the map returned by this method is live, and you can add new attribute
146 | * by updating the map directly. Because of this design, there's no setter.
147 | *
148 | *
149 | * @return
150 | * always non-null
151 | */
152 | public Map getOtherAttributes() {
153 | return otherAttributes;
154 | }
155 |
156 | }
157 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/IdType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.util.HashMap;
12 | import java.util.Map;
13 | import javax.xml.bind.annotation.XmlAccessType;
14 | import javax.xml.bind.annotation.XmlAccessorType;
15 | import javax.xml.bind.annotation.XmlAnyAttribute;
16 | import javax.xml.bind.annotation.XmlAttribute;
17 | import javax.xml.bind.annotation.XmlSchemaType;
18 | import javax.xml.bind.annotation.XmlType;
19 | import javax.xml.bind.annotation.XmlValue;
20 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
21 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
22 | import javax.xml.namespace.QName;
23 |
24 |
25 | /**
26 | *
27 | * The Atom id construct is defined in section 4.2.6 of the format spec.
28 | *
29 | *
30 | * Java class for idType complex type.
31 | *
32 | *
The following schema fragment specifies the expected content contained within this class.
33 | *
34 | *
35 | * <complexType name="idType">
36 | * <simpleContent>
37 | * <extension base="<http://www.w3.org/2001/XMLSchema>anyURI">
38 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
39 | * <anyAttribute namespace='##other'/>
40 | * </extension>
41 | * </simpleContent>
42 | * </complexType>
43 | *
44 | *
45 | *
46 | */
47 | @XmlAccessorType(XmlAccessType.FIELD)
48 | @XmlType(name = "idType", propOrder = {
49 | "value"
50 | })
51 | public class IdType {
52 |
53 | @XmlValue
54 | @XmlSchemaType(name = "anyURI")
55 | protected String value;
56 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
57 | @XmlSchemaType(name = "anyURI")
58 | protected String base;
59 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
60 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
61 | @XmlSchemaType(name = "language")
62 | protected String lang;
63 | @XmlAnyAttribute
64 | private Map otherAttributes = new HashMap();
65 |
66 | /**
67 | * Gets the value of the value property.
68 | *
69 | * @return
70 | * possible object is
71 | * {@link String }
72 | *
73 | */
74 | public String getValue() {
75 | return value;
76 | }
77 |
78 | /**
79 | * Sets the value of the value property.
80 | *
81 | * @param value
82 | * allowed object is
83 | * {@link String }
84 | *
85 | */
86 | public void setValue(String value) {
87 | this.value = value;
88 | }
89 |
90 | /**
91 | * Gets the value of the base property.
92 | *
93 | * @return
94 | * possible object is
95 | * {@link String }
96 | *
97 | */
98 | public String getBase() {
99 | return base;
100 | }
101 |
102 | /**
103 | * Sets the value of the base property.
104 | *
105 | * @param value
106 | * allowed object is
107 | * {@link String }
108 | *
109 | */
110 | public void setBase(String value) {
111 | this.base = value;
112 | }
113 |
114 | /**
115 | * Gets the value of the lang property.
116 | *
117 | * @return
118 | * possible object is
119 | * {@link String }
120 | *
121 | */
122 | public String getLang() {
123 | return lang;
124 | }
125 |
126 | /**
127 | * Sets the value of the lang property.
128 | *
129 | * @param value
130 | * allowed object is
131 | * {@link String }
132 | *
133 | */
134 | public void setLang(String value) {
135 | this.lang = value;
136 | }
137 |
138 | /**
139 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
140 | *
141 | *
142 | * the map is keyed by the name of the attribute and
143 | * the value is the string value of the attribute.
144 | *
145 | * the map returned by this method is live, and you can add new attribute
146 | * by updating the map directly. Because of this design, there's no setter.
147 | *
148 | *
149 | * @return
150 | * always non-null
151 | */
152 | public Map getOtherAttributes() {
153 | return otherAttributes;
154 | }
155 |
156 | }
157 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/LinkType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.math.BigInteger;
12 | import java.util.HashMap;
13 | import java.util.Map;
14 | import javax.xml.bind.annotation.XmlAccessType;
15 | import javax.xml.bind.annotation.XmlAccessorType;
16 | import javax.xml.bind.annotation.XmlAnyAttribute;
17 | import javax.xml.bind.annotation.XmlAttribute;
18 | import javax.xml.bind.annotation.XmlSchemaType;
19 | import javax.xml.bind.annotation.XmlType;
20 | import javax.xml.bind.annotation.XmlValue;
21 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
22 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
23 | import javax.xml.namespace.QName;
24 |
25 |
26 | /**
27 | *
28 | * The Atom link construct is defined in section 3.4 of the format spec.
29 | *
30 | *
31 | * Java class for linkType complex type.
32 | *
33 | *
The following schema fragment specifies the expected content contained within this class.
34 | *
35 | *
36 | * <complexType name="linkType">
37 | * <complexContent>
38 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
39 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
40 | * <attribute name="href" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
41 | * <attribute name="rel" type="{http://www.w3.org/2001/XMLSchema}string" />
42 | * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
43 | * <attribute name="hreflang" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
44 | * <attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" />
45 | * <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
46 | * <anyAttribute namespace='##other'/>
47 | * </restriction>
48 | * </complexContent>
49 | * </complexType>
50 | *
51 | *
52 | *
53 | */
54 | @XmlAccessorType(XmlAccessType.FIELD)
55 | @XmlType(name = "linkType", propOrder = {
56 | "content"
57 | })
58 | public class LinkType {
59 |
60 | @XmlValue
61 | protected String content;
62 | @XmlAttribute(name = "href", required = true)
63 | @XmlSchemaType(name = "anyURI")
64 | protected String href;
65 | @XmlAttribute(name = "rel")
66 | protected String rel;
67 | @XmlAttribute(name = "type")
68 | protected String type;
69 | @XmlAttribute(name = "hreflang")
70 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
71 | @XmlSchemaType(name = "NMTOKEN")
72 | protected String hreflang;
73 | @XmlAttribute(name = "title")
74 | protected String title;
75 | @XmlAttribute(name = "length")
76 | @XmlSchemaType(name = "positiveInteger")
77 | protected BigInteger length;
78 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
79 | @XmlSchemaType(name = "anyURI")
80 | protected String base;
81 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
82 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
83 | @XmlSchemaType(name = "language")
84 | protected String lang;
85 | @XmlAnyAttribute
86 | private Map otherAttributes = new HashMap();
87 |
88 | /**
89 | *
90 | * The Atom link construct is defined in section 3.4 of the format spec.
91 | *
92 | *
93 | * @return
94 | * possible object is
95 | * {@link String }
96 | *
97 | */
98 | public String getContent() {
99 | return content;
100 | }
101 |
102 | /**
103 | * Sets the value of the content property.
104 | *
105 | * @param value
106 | * allowed object is
107 | * {@link String }
108 | *
109 | */
110 | public void setContent(String value) {
111 | this.content = value;
112 | }
113 |
114 | /**
115 | * Gets the value of the href property.
116 | *
117 | * @return
118 | * possible object is
119 | * {@link String }
120 | *
121 | */
122 | public String getHref() {
123 | return href;
124 | }
125 |
126 | /**
127 | * Sets the value of the href property.
128 | *
129 | * @param value
130 | * allowed object is
131 | * {@link String }
132 | *
133 | */
134 | public void setHref(String value) {
135 | this.href = value;
136 | }
137 |
138 | /**
139 | * Gets the value of the rel property.
140 | *
141 | * @return
142 | * possible object is
143 | * {@link String }
144 | *
145 | */
146 | public String getRel() {
147 | return rel;
148 | }
149 |
150 | /**
151 | * Sets the value of the rel property.
152 | *
153 | * @param value
154 | * allowed object is
155 | * {@link String }
156 | *
157 | */
158 | public void setRel(String value) {
159 | this.rel = value;
160 | }
161 |
162 | /**
163 | * Gets the value of the type property.
164 | *
165 | * @return
166 | * possible object is
167 | * {@link String }
168 | *
169 | */
170 | public String getType() {
171 | return type;
172 | }
173 |
174 | /**
175 | * Sets the value of the type property.
176 | *
177 | * @param value
178 | * allowed object is
179 | * {@link String }
180 | *
181 | */
182 | public void setType(String value) {
183 | this.type = value;
184 | }
185 |
186 | /**
187 | * Gets the value of the hreflang property.
188 | *
189 | * @return
190 | * possible object is
191 | * {@link String }
192 | *
193 | */
194 | public String getHreflang() {
195 | return hreflang;
196 | }
197 |
198 | /**
199 | * Sets the value of the hreflang property.
200 | *
201 | * @param value
202 | * allowed object is
203 | * {@link String }
204 | *
205 | */
206 | public void setHreflang(String value) {
207 | this.hreflang = value;
208 | }
209 |
210 | /**
211 | * Gets the value of the title property.
212 | *
213 | * @return
214 | * possible object is
215 | * {@link String }
216 | *
217 | */
218 | public String getTitle() {
219 | return title;
220 | }
221 |
222 | /**
223 | * Sets the value of the title property.
224 | *
225 | * @param value
226 | * allowed object is
227 | * {@link String }
228 | *
229 | */
230 | public void setTitle(String value) {
231 | this.title = value;
232 | }
233 |
234 | /**
235 | * Gets the value of the length property.
236 | *
237 | * @return
238 | * possible object is
239 | * {@link BigInteger }
240 | *
241 | */
242 | public BigInteger getLength() {
243 | return length;
244 | }
245 |
246 | /**
247 | * Sets the value of the length property.
248 | *
249 | * @param value
250 | * allowed object is
251 | * {@link BigInteger }
252 | *
253 | */
254 | public void setLength(BigInteger value) {
255 | this.length = value;
256 | }
257 |
258 | /**
259 | * Gets the value of the base property.
260 | *
261 | * @return
262 | * possible object is
263 | * {@link String }
264 | *
265 | */
266 | public String getBase() {
267 | return base;
268 | }
269 |
270 | /**
271 | * Sets the value of the base property.
272 | *
273 | * @param value
274 | * allowed object is
275 | * {@link String }
276 | *
277 | */
278 | public void setBase(String value) {
279 | this.base = value;
280 | }
281 |
282 | /**
283 | * Gets the value of the lang property.
284 | *
285 | * @return
286 | * possible object is
287 | * {@link String }
288 | *
289 | */
290 | public String getLang() {
291 | return lang;
292 | }
293 |
294 | /**
295 | * Sets the value of the lang property.
296 | *
297 | * @param value
298 | * allowed object is
299 | * {@link String }
300 | *
301 | */
302 | public void setLang(String value) {
303 | this.lang = value;
304 | }
305 |
306 | /**
307 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
308 | *
309 | *
310 | * the map is keyed by the name of the attribute and
311 | * the value is the string value of the attribute.
312 | *
313 | * the map returned by this method is live, and you can add new attribute
314 | * by updating the map directly. Because of this design, there's no setter.
315 | *
316 | *
317 | * @return
318 | * always non-null
319 | */
320 | public Map getOtherAttributes() {
321 | return otherAttributes;
322 | }
323 |
324 | }
325 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/LogoType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.util.HashMap;
12 | import java.util.Map;
13 | import javax.xml.bind.annotation.XmlAccessType;
14 | import javax.xml.bind.annotation.XmlAccessorType;
15 | import javax.xml.bind.annotation.XmlAnyAttribute;
16 | import javax.xml.bind.annotation.XmlAttribute;
17 | import javax.xml.bind.annotation.XmlSchemaType;
18 | import javax.xml.bind.annotation.XmlType;
19 | import javax.xml.bind.annotation.XmlValue;
20 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
21 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
22 | import javax.xml.namespace.QName;
23 |
24 |
25 | /**
26 | *
27 | * The Atom logo construct is defined in section 4.2.8 of the format spec.
28 | *
29 | *
30 | * Java class for logoType complex type.
31 | *
32 | *
The following schema fragment specifies the expected content contained within this class.
33 | *
34 | *
35 | * <complexType name="logoType">
36 | * <simpleContent>
37 | * <extension base="<http://www.w3.org/2001/XMLSchema>anyURI">
38 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
39 | * <anyAttribute namespace='##other'/>
40 | * </extension>
41 | * </simpleContent>
42 | * </complexType>
43 | *
44 | *
45 | *
46 | */
47 | @XmlAccessorType(XmlAccessType.FIELD)
48 | @XmlType(name = "logoType", propOrder = {
49 | "value"
50 | })
51 | public class LogoType {
52 |
53 | @XmlValue
54 | @XmlSchemaType(name = "anyURI")
55 | protected String value;
56 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
57 | @XmlSchemaType(name = "anyURI")
58 | protected String base;
59 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
60 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
61 | @XmlSchemaType(name = "language")
62 | protected String lang;
63 | @XmlAnyAttribute
64 | private Map otherAttributes = new HashMap();
65 |
66 | /**
67 | * Gets the value of the value property.
68 | *
69 | * @return
70 | * possible object is
71 | * {@link String }
72 | *
73 | */
74 | public String getValue() {
75 | return value;
76 | }
77 |
78 | /**
79 | * Sets the value of the value property.
80 | *
81 | * @param value
82 | * allowed object is
83 | * {@link String }
84 | *
85 | */
86 | public void setValue(String value) {
87 | this.value = value;
88 | }
89 |
90 | /**
91 | * Gets the value of the base property.
92 | *
93 | * @return
94 | * possible object is
95 | * {@link String }
96 | *
97 | */
98 | public String getBase() {
99 | return base;
100 | }
101 |
102 | /**
103 | * Sets the value of the base property.
104 | *
105 | * @param value
106 | * allowed object is
107 | * {@link String }
108 | *
109 | */
110 | public void setBase(String value) {
111 | this.base = value;
112 | }
113 |
114 | /**
115 | * Gets the value of the lang property.
116 | *
117 | * @return
118 | * possible object is
119 | * {@link String }
120 | *
121 | */
122 | public String getLang() {
123 | return lang;
124 | }
125 |
126 | /**
127 | * Sets the value of the lang property.
128 | *
129 | * @param value
130 | * allowed object is
131 | * {@link String }
132 | *
133 | */
134 | public void setLang(String value) {
135 | this.lang = value;
136 | }
137 |
138 | /**
139 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
140 | *
141 | *
142 | * the map is keyed by the name of the attribute and
143 | * the value is the string value of the attribute.
144 | *
145 | * the map returned by this method is live, and you can add new attribute
146 | * by updating the map directly. Because of this design, there's no setter.
147 | *
148 | *
149 | * @return
150 | * always non-null
151 | */
152 | public Map getOtherAttributes() {
153 | return otherAttributes;
154 | }
155 |
156 | }
157 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/ObjectFactory.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import javax.xml.bind.JAXBElement;
12 | import javax.xml.bind.annotation.XmlElementDecl;
13 | import javax.xml.bind.annotation.XmlRegistry;
14 | import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
15 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
16 | import javax.xml.namespace.QName;
17 |
18 |
19 | /**
20 | * This object contains factory methods for each
21 | * Java content interface and Java element interface
22 | * generated in the org.w3._2005.atom package.
23 | * An ObjectFactory allows you to programatically
24 | * construct new instances of the Java representation
25 | * for XML content. The Java representation of XML
26 | * content can consist of schema derived interfaces
27 | * and classes representing the binding of schema
28 | * type definitions, element declarations and model
29 | * groups. Factory methods for each of these are
30 | * provided in this class.
31 | *
32 | */
33 | @XmlRegistry
34 | public class ObjectFactory {
35 |
36 | private final static QName _PersonTypeName_QNAME = new QName("http://www.w3.org/2005/Atom", "name");
37 | private final static QName _PersonTypeEmail_QNAME = new QName("http://www.w3.org/2005/Atom", "email");
38 | private final static QName _PersonTypeUri_QNAME = new QName("http://www.w3.org/2005/Atom", "uri");
39 | private final static QName _Entry_QNAME = new QName("http://www.w3.org/2005/Atom", "entry");
40 | private final static QName _Feed_QNAME = new QName("http://www.w3.org/2005/Atom", "feed");
41 | private final static QName _EntryTypeTitle_QNAME = new QName("http://www.w3.org/2005/Atom", "title");
42 | private final static QName _EntryTypeCategory_QNAME = new QName("http://www.w3.org/2005/Atom", "category");
43 | private final static QName _EntryTypeAuthor_QNAME = new QName("http://www.w3.org/2005/Atom", "author");
44 | private final static QName _EntryTypeSummary_QNAME = new QName("http://www.w3.org/2005/Atom", "summary");
45 | private final static QName _EntryTypeId_QNAME = new QName("http://www.w3.org/2005/Atom", "id");
46 | private final static QName _EntryTypeContent_QNAME = new QName("http://www.w3.org/2005/Atom", "content");
47 | private final static QName _EntryTypeLink_QNAME = new QName("http://www.w3.org/2005/Atom", "link");
48 | private final static QName _EntryTypeContributor_QNAME = new QName("http://www.w3.org/2005/Atom", "contributor");
49 | private final static QName _EntryTypeUpdated_QNAME = new QName("http://www.w3.org/2005/Atom", "updated");
50 | private final static QName _EntryTypeSource_QNAME = new QName("http://www.w3.org/2005/Atom", "source");
51 | private final static QName _EntryTypeRights_QNAME = new QName("http://www.w3.org/2005/Atom", "rights");
52 | private final static QName _EntryTypePublished_QNAME = new QName("http://www.w3.org/2005/Atom", "published");
53 | private final static QName _FeedTypeGenerator_QNAME = new QName("http://www.w3.org/2005/Atom", "generator");
54 | private final static QName _FeedTypeSubtitle_QNAME = new QName("http://www.w3.org/2005/Atom", "subtitle");
55 | private final static QName _FeedTypeIcon_QNAME = new QName("http://www.w3.org/2005/Atom", "icon");
56 | private final static QName _FeedTypeLogo_QNAME = new QName("http://www.w3.org/2005/Atom", "logo");
57 |
58 | /**
59 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.w3._2005.atom
60 | *
61 | */
62 | public ObjectFactory() {
63 | }
64 |
65 | /**
66 | * Create an instance of {@link EntryType }
67 | *
68 | */
69 | public EntryType createEntryType() {
70 | return new EntryType();
71 | }
72 |
73 | /**
74 | * Create an instance of {@link FeedType }
75 | *
76 | */
77 | public FeedType createFeedType() {
78 | return new FeedType();
79 | }
80 |
81 | /**
82 | * Create an instance of {@link SourceType }
83 | *
84 | */
85 | public SourceType createSourceType() {
86 | return new SourceType();
87 | }
88 |
89 | /**
90 | * Create an instance of {@link IdType }
91 | *
92 | */
93 | public IdType createIdType() {
94 | return new IdType();
95 | }
96 |
97 | /**
98 | * Create an instance of {@link GeneratorType }
99 | *
100 | */
101 | public GeneratorType createGeneratorType() {
102 | return new GeneratorType();
103 | }
104 |
105 | /**
106 | * Create an instance of {@link CategoryType }
107 | *
108 | */
109 | public CategoryType createCategoryType() {
110 | return new CategoryType();
111 | }
112 |
113 | /**
114 | * Create an instance of {@link LinkType }
115 | *
116 | */
117 | public LinkType createLinkType() {
118 | return new LinkType();
119 | }
120 |
121 | /**
122 | * Create an instance of {@link UriType }
123 | *
124 | */
125 | public UriType createUriType() {
126 | return new UriType();
127 | }
128 |
129 | /**
130 | * Create an instance of {@link ContentType }
131 | *
132 | */
133 | public ContentType createContentType() {
134 | return new ContentType();
135 | }
136 |
137 | /**
138 | * Create an instance of {@link LogoType }
139 | *
140 | */
141 | public LogoType createLogoType() {
142 | return new LogoType();
143 | }
144 |
145 | /**
146 | * Create an instance of {@link DateTimeType }
147 | *
148 | */
149 | public DateTimeType createDateTimeType() {
150 | return new DateTimeType();
151 | }
152 |
153 | /**
154 | * Create an instance of {@link TextType }
155 | *
156 | */
157 | public TextType createTextType() {
158 | return new TextType();
159 | }
160 |
161 | /**
162 | * Create an instance of {@link PersonType }
163 | *
164 | */
165 | public PersonType createPersonType() {
166 | return new PersonType();
167 | }
168 |
169 | /**
170 | * Create an instance of {@link IconType }
171 | *
172 | */
173 | public IconType createIconType() {
174 | return new IconType();
175 | }
176 |
177 | /**
178 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
179 | *
180 | */
181 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "name", scope = PersonType.class)
182 | public JAXBElement createPersonTypeName(String value) {
183 | return new JAXBElement(_PersonTypeName_QNAME, String.class, PersonType.class, value);
184 | }
185 |
186 | /**
187 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
188 | *
189 | */
190 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "email", scope = PersonType.class)
191 | @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
192 | public JAXBElement createPersonTypeEmail(String value) {
193 | return new JAXBElement(_PersonTypeEmail_QNAME, String.class, PersonType.class, value);
194 | }
195 |
196 | /**
197 | * Create an instance of {@link JAXBElement }{@code <}{@link UriType }{@code >}}
198 | *
199 | */
200 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "uri", scope = PersonType.class)
201 | public JAXBElement createPersonTypeUri(UriType value) {
202 | return new JAXBElement(_PersonTypeUri_QNAME, UriType.class, PersonType.class, value);
203 | }
204 |
205 | /**
206 | * Create an instance of {@link JAXBElement }{@code <}{@link EntryType }{@code >}}
207 | *
208 | */
209 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "entry")
210 | public JAXBElement createEntry(EntryType value) {
211 | return new JAXBElement(_Entry_QNAME, EntryType.class, null, value);
212 | }
213 |
214 | /**
215 | * Create an instance of {@link JAXBElement }{@code <}{@link FeedType }{@code >}}
216 | *
217 | */
218 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "feed")
219 | public JAXBElement createFeed(FeedType value) {
220 | return new JAXBElement(_Feed_QNAME, FeedType.class, null, value);
221 | }
222 |
223 | /**
224 | * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}}
225 | *
226 | */
227 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "title", scope = EntryType.class)
228 | public JAXBElement createEntryTypeTitle(TextType value) {
229 | return new JAXBElement(_EntryTypeTitle_QNAME, TextType.class, EntryType.class, value);
230 | }
231 |
232 | /**
233 | * Create an instance of {@link JAXBElement }{@code <}{@link CategoryType }{@code >}}
234 | *
235 | */
236 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "category", scope = EntryType.class)
237 | public JAXBElement createEntryTypeCategory(CategoryType value) {
238 | return new JAXBElement(_EntryTypeCategory_QNAME, CategoryType.class, EntryType.class, value);
239 | }
240 |
241 | /**
242 | * Create an instance of {@link JAXBElement }{@code <}{@link PersonType }{@code >}}
243 | *
244 | */
245 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "author", scope = EntryType.class)
246 | public JAXBElement createEntryTypeAuthor(PersonType value) {
247 | return new JAXBElement(_EntryTypeAuthor_QNAME, PersonType.class, EntryType.class, value);
248 | }
249 |
250 | /**
251 | * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}}
252 | *
253 | */
254 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "summary", scope = EntryType.class)
255 | public JAXBElement createEntryTypeSummary(TextType value) {
256 | return new JAXBElement(_EntryTypeSummary_QNAME, TextType.class, EntryType.class, value);
257 | }
258 |
259 | /**
260 | * Create an instance of {@link JAXBElement }{@code <}{@link IdType }{@code >}}
261 | *
262 | */
263 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "id", scope = EntryType.class)
264 | public JAXBElement createEntryTypeId(IdType value) {
265 | return new JAXBElement(_EntryTypeId_QNAME, IdType.class, EntryType.class, value);
266 | }
267 |
268 | /**
269 | * Create an instance of {@link JAXBElement }{@code <}{@link ContentType }{@code >}}
270 | *
271 | */
272 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "content", scope = EntryType.class)
273 | public JAXBElement createEntryTypeContent(ContentType value) {
274 | return new JAXBElement(_EntryTypeContent_QNAME, ContentType.class, EntryType.class, value);
275 | }
276 |
277 | /**
278 | * Create an instance of {@link JAXBElement }{@code <}{@link LinkType }{@code >}}
279 | *
280 | */
281 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "link", scope = EntryType.class)
282 | public JAXBElement createEntryTypeLink(LinkType value) {
283 | return new JAXBElement(_EntryTypeLink_QNAME, LinkType.class, EntryType.class, value);
284 | }
285 |
286 | /**
287 | * Create an instance of {@link JAXBElement }{@code <}{@link PersonType }{@code >}}
288 | *
289 | */
290 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "contributor", scope = EntryType.class)
291 | public JAXBElement createEntryTypeContributor(PersonType value) {
292 | return new JAXBElement(_EntryTypeContributor_QNAME, PersonType.class, EntryType.class, value);
293 | }
294 |
295 | /**
296 | * Create an instance of {@link JAXBElement }{@code <}{@link DateTimeType }{@code >}}
297 | *
298 | */
299 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "updated", scope = EntryType.class)
300 | public JAXBElement createEntryTypeUpdated(DateTimeType value) {
301 | return new JAXBElement(_EntryTypeUpdated_QNAME, DateTimeType.class, EntryType.class, value);
302 | }
303 |
304 | /**
305 | * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}}
306 | *
307 | */
308 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "source", scope = EntryType.class)
309 | public JAXBElement createEntryTypeSource(TextType value) {
310 | return new JAXBElement(_EntryTypeSource_QNAME, TextType.class, EntryType.class, value);
311 | }
312 |
313 | /**
314 | * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}}
315 | *
316 | */
317 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "rights", scope = EntryType.class)
318 | public JAXBElement createEntryTypeRights(TextType value) {
319 | return new JAXBElement(_EntryTypeRights_QNAME, TextType.class, EntryType.class, value);
320 | }
321 |
322 | /**
323 | * Create an instance of {@link JAXBElement }{@code <}{@link DateTimeType }{@code >}}
324 | *
325 | */
326 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "published", scope = EntryType.class)
327 | public JAXBElement createEntryTypePublished(DateTimeType value) {
328 | return new JAXBElement(_EntryTypePublished_QNAME, DateTimeType.class, EntryType.class, value);
329 | }
330 |
331 | /**
332 | * Create an instance of {@link JAXBElement }{@code <}{@link CategoryType }{@code >}}
333 | *
334 | */
335 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "category", scope = FeedType.class)
336 | public JAXBElement createFeedTypeCategory(CategoryType value) {
337 | return new JAXBElement(_EntryTypeCategory_QNAME, CategoryType.class, FeedType.class, value);
338 | }
339 |
340 | /**
341 | * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}}
342 | *
343 | */
344 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "title", scope = FeedType.class)
345 | public JAXBElement createFeedTypeTitle(TextType value) {
346 | return new JAXBElement(_EntryTypeTitle_QNAME, TextType.class, FeedType.class, value);
347 | }
348 |
349 | /**
350 | * Create an instance of {@link JAXBElement }{@code <}{@link PersonType }{@code >}}
351 | *
352 | */
353 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "author", scope = FeedType.class)
354 | public JAXBElement createFeedTypeAuthor(PersonType value) {
355 | return new JAXBElement(_EntryTypeAuthor_QNAME, PersonType.class, FeedType.class, value);
356 | }
357 |
358 | /**
359 | * Create an instance of {@link JAXBElement }{@code <}{@link IdType }{@code >}}
360 | *
361 | */
362 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "id", scope = FeedType.class)
363 | public JAXBElement createFeedTypeId(IdType value) {
364 | return new JAXBElement(_EntryTypeId_QNAME, IdType.class, FeedType.class, value);
365 | }
366 |
367 | /**
368 | * Create an instance of {@link JAXBElement }{@code <}{@link EntryType }{@code >}}
369 | *
370 | */
371 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "entry", scope = FeedType.class)
372 | public JAXBElement createFeedTypeEntry(EntryType value) {
373 | return new JAXBElement(_Entry_QNAME, EntryType.class, FeedType.class, value);
374 | }
375 |
376 | /**
377 | * Create an instance of {@link JAXBElement }{@code <}{@link PersonType }{@code >}}
378 | *
379 | */
380 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "contributor", scope = FeedType.class)
381 | public JAXBElement createFeedTypeContributor(PersonType value) {
382 | return new JAXBElement(_EntryTypeContributor_QNAME, PersonType.class, FeedType.class, value);
383 | }
384 |
385 | /**
386 | * Create an instance of {@link JAXBElement }{@code <}{@link DateTimeType }{@code >}}
387 | *
388 | */
389 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "updated", scope = FeedType.class)
390 | public JAXBElement createFeedTypeUpdated(DateTimeType value) {
391 | return new JAXBElement(_EntryTypeUpdated_QNAME, DateTimeType.class, FeedType.class, value);
392 | }
393 |
394 | /**
395 | * Create an instance of {@link JAXBElement }{@code <}{@link GeneratorType }{@code >}}
396 | *
397 | */
398 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "generator", scope = FeedType.class)
399 | public JAXBElement createFeedTypeGenerator(GeneratorType value) {
400 | return new JAXBElement(_FeedTypeGenerator_QNAME, GeneratorType.class, FeedType.class, value);
401 | }
402 |
403 | /**
404 | * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}}
405 | *
406 | */
407 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "subtitle", scope = FeedType.class)
408 | public JAXBElement createFeedTypeSubtitle(TextType value) {
409 | return new JAXBElement(_FeedTypeSubtitle_QNAME, TextType.class, FeedType.class, value);
410 | }
411 |
412 | /**
413 | * Create an instance of {@link JAXBElement }{@code <}{@link IconType }{@code >}}
414 | *
415 | */
416 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "icon", scope = FeedType.class)
417 | public JAXBElement createFeedTypeIcon(IconType value) {
418 | return new JAXBElement(_FeedTypeIcon_QNAME, IconType.class, FeedType.class, value);
419 | }
420 |
421 | /**
422 | * Create an instance of {@link JAXBElement }{@code <}{@link LogoType }{@code >}}
423 | *
424 | */
425 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "logo", scope = FeedType.class)
426 | public JAXBElement createFeedTypeLogo(LogoType value) {
427 | return new JAXBElement(_FeedTypeLogo_QNAME, LogoType.class, FeedType.class, value);
428 | }
429 |
430 | /**
431 | * Create an instance of {@link JAXBElement }{@code <}{@link LinkType }{@code >}}
432 | *
433 | */
434 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "link", scope = FeedType.class)
435 | public JAXBElement createFeedTypeLink(LinkType value) {
436 | return new JAXBElement(_EntryTypeLink_QNAME, LinkType.class, FeedType.class, value);
437 | }
438 |
439 | /**
440 | * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}}
441 | *
442 | */
443 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "rights", scope = FeedType.class)
444 | public JAXBElement createFeedTypeRights(TextType value) {
445 | return new JAXBElement(_EntryTypeRights_QNAME, TextType.class, FeedType.class, value);
446 | }
447 |
448 | /**
449 | * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}}
450 | *
451 | */
452 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "title", scope = SourceType.class)
453 | public JAXBElement createSourceTypeTitle(TextType value) {
454 | return new JAXBElement(_EntryTypeTitle_QNAME, TextType.class, SourceType.class, value);
455 | }
456 |
457 | /**
458 | * Create an instance of {@link JAXBElement }{@code <}{@link CategoryType }{@code >}}
459 | *
460 | */
461 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "category", scope = SourceType.class)
462 | public JAXBElement createSourceTypeCategory(CategoryType value) {
463 | return new JAXBElement(_EntryTypeCategory_QNAME, CategoryType.class, SourceType.class, value);
464 | }
465 |
466 | /**
467 | * Create an instance of {@link JAXBElement }{@code <}{@link LogoType }{@code >}}
468 | *
469 | */
470 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "logo", scope = SourceType.class)
471 | public JAXBElement createSourceTypeLogo(LogoType value) {
472 | return new JAXBElement(_FeedTypeLogo_QNAME, LogoType.class, SourceType.class, value);
473 | }
474 |
475 | /**
476 | * Create an instance of {@link JAXBElement }{@code <}{@link IconType }{@code >}}
477 | *
478 | */
479 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "icon", scope = SourceType.class)
480 | public JAXBElement createSourceTypeIcon(IconType value) {
481 | return new JAXBElement(_FeedTypeIcon_QNAME, IconType.class, SourceType.class, value);
482 | }
483 |
484 | /**
485 | * Create an instance of {@link JAXBElement }{@code <}{@link PersonType }{@code >}}
486 | *
487 | */
488 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "author", scope = SourceType.class)
489 | public JAXBElement createSourceTypeAuthor(PersonType value) {
490 | return new JAXBElement(_EntryTypeAuthor_QNAME, PersonType.class, SourceType.class, value);
491 | }
492 |
493 | /**
494 | * Create an instance of {@link JAXBElement }{@code <}{@link IdType }{@code >}}
495 | *
496 | */
497 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "id", scope = SourceType.class)
498 | public JAXBElement createSourceTypeId(IdType value) {
499 | return new JAXBElement(_EntryTypeId_QNAME, IdType.class, SourceType.class, value);
500 | }
501 |
502 | /**
503 | * Create an instance of {@link JAXBElement }{@code <}{@link LinkType }{@code >}}
504 | *
505 | */
506 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "link", scope = SourceType.class)
507 | public JAXBElement createSourceTypeLink(LinkType value) {
508 | return new JAXBElement(_EntryTypeLink_QNAME, LinkType.class, SourceType.class, value);
509 | }
510 |
511 | /**
512 | * Create an instance of {@link JAXBElement }{@code <}{@link PersonType }{@code >}}
513 | *
514 | */
515 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "contributor", scope = SourceType.class)
516 | public JAXBElement createSourceTypeContributor(PersonType value) {
517 | return new JAXBElement(_EntryTypeContributor_QNAME, PersonType.class, SourceType.class, value);
518 | }
519 |
520 | /**
521 | * Create an instance of {@link JAXBElement }{@code <}{@link DateTimeType }{@code >}}
522 | *
523 | */
524 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "updated", scope = SourceType.class)
525 | public JAXBElement createSourceTypeUpdated(DateTimeType value) {
526 | return new JAXBElement(_EntryTypeUpdated_QNAME, DateTimeType.class, SourceType.class, value);
527 | }
528 |
529 | /**
530 | * Create an instance of {@link JAXBElement }{@code <}{@link GeneratorType }{@code >}}
531 | *
532 | */
533 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "generator", scope = SourceType.class)
534 | public JAXBElement createSourceTypeGenerator(GeneratorType value) {
535 | return new JAXBElement(_FeedTypeGenerator_QNAME, GeneratorType.class, SourceType.class, value);
536 | }
537 |
538 | /**
539 | * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}}
540 | *
541 | */
542 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "subtitle", scope = SourceType.class)
543 | public JAXBElement createSourceTypeSubtitle(TextType value) {
544 | return new JAXBElement(_FeedTypeSubtitle_QNAME, TextType.class, SourceType.class, value);
545 | }
546 |
547 | /**
548 | * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}}
549 | *
550 | */
551 | @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "rights", scope = SourceType.class)
552 | public JAXBElement createSourceTypeRights(TextType value) {
553 | return new JAXBElement(_EntryTypeRights_QNAME, TextType.class, SourceType.class, value);
554 | }
555 |
556 | }
557 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/PersonType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.util.ArrayList;
12 | import java.util.HashMap;
13 | import java.util.List;
14 | import java.util.Map;
15 | import javax.xml.bind.JAXBElement;
16 | import javax.xml.bind.annotation.XmlAccessType;
17 | import javax.xml.bind.annotation.XmlAccessorType;
18 | import javax.xml.bind.annotation.XmlAnyAttribute;
19 | import javax.xml.bind.annotation.XmlAnyElement;
20 | import javax.xml.bind.annotation.XmlAttribute;
21 | import javax.xml.bind.annotation.XmlElementRef;
22 | import javax.xml.bind.annotation.XmlElementRefs;
23 | import javax.xml.bind.annotation.XmlSchemaType;
24 | import javax.xml.bind.annotation.XmlType;
25 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
26 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
27 | import javax.xml.namespace.QName;
28 |
29 |
30 | /**
31 | *
32 | * The Atom person construct is defined in section 3.2 of the format spec.
33 | *
34 | *
35 | * Java class for personType complex type.
36 | *
37 | *
The following schema fragment specifies the expected content contained within this class.
38 | *
39 | *
40 | * <complexType name="personType">
41 | * <complexContent>
42 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 | * <choice maxOccurs="unbounded">
44 | * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
45 | * <element name="uri" type="{http://www.w3.org/2005/Atom}uriType" minOccurs="0"/>
46 | * <element name="email" type="{http://www.w3.org/2005/Atom}emailType" minOccurs="0"/>
47 | * <any namespace='##other'/>
48 | * </choice>
49 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
50 | * <anyAttribute namespace='##other'/>
51 | * </restriction>
52 | * </complexContent>
53 | * </complexType>
54 | *
55 | *
56 | *
57 | */
58 | @XmlAccessorType(XmlAccessType.FIELD)
59 | @XmlType(name = "personType", propOrder = {
60 | "nameOrUriOrEmail"
61 | })
62 | public class PersonType {
63 |
64 | @XmlElementRefs({
65 | @XmlElementRef(name = "name", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
66 | @XmlElementRef(name = "uri", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
67 | @XmlElementRef(name = "email", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false)
68 | })
69 | @XmlAnyElement(lax = true)
70 | protected List nameOrUriOrEmail;
71 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
72 | @XmlSchemaType(name = "anyURI")
73 | protected String base;
74 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
75 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
76 | @XmlSchemaType(name = "language")
77 | protected String lang;
78 | @XmlAnyAttribute
79 | private Map otherAttributes = new HashMap();
80 |
81 | /**
82 | * Gets the value of the nameOrUriOrEmail property.
83 | *
84 | *
85 | * This accessor method returns a reference to the live list,
86 | * not a snapshot. Therefore any modification you make to the
87 | * returned list will be present inside the JAXB object.
88 | * This is why there is not a set
method for the nameOrUriOrEmail property.
89 | *
90 | *
91 | * For example, to add a new item, do as follows:
92 | *
93 | * getNameOrUriOrEmail().add(newItem);
94 | *
95 | *
96 | *
97 | *
98 | * Objects of the following type(s) are allowed in the list
99 | * {@link JAXBElement }{@code <}{@link String }{@code >}
100 | * {@link JAXBElement }{@code <}{@link UriType }{@code >}
101 | * {@link JAXBElement }{@code <}{@link String }{@code >}
102 | * {@link Object }
103 | *
104 | *
105 | */
106 | public List getNameOrUriOrEmail() {
107 | if (nameOrUriOrEmail == null) {
108 | nameOrUriOrEmail = new ArrayList();
109 | }
110 | return this.nameOrUriOrEmail;
111 | }
112 |
113 | /**
114 | * Gets the value of the base property.
115 | *
116 | * @return
117 | * possible object is
118 | * {@link String }
119 | *
120 | */
121 | public String getBase() {
122 | return base;
123 | }
124 |
125 | /**
126 | * Sets the value of the base property.
127 | *
128 | * @param value
129 | * allowed object is
130 | * {@link String }
131 | *
132 | */
133 | public void setBase(String value) {
134 | this.base = value;
135 | }
136 |
137 | /**
138 | * Gets the value of the lang property.
139 | *
140 | * @return
141 | * possible object is
142 | * {@link String }
143 | *
144 | */
145 | public String getLang() {
146 | return lang;
147 | }
148 |
149 | /**
150 | * Sets the value of the lang property.
151 | *
152 | * @param value
153 | * allowed object is
154 | * {@link String }
155 | *
156 | */
157 | public void setLang(String value) {
158 | this.lang = value;
159 | }
160 |
161 | /**
162 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
163 | *
164 | *
165 | * the map is keyed by the name of the attribute and
166 | * the value is the string value of the attribute.
167 | *
168 | * the map returned by this method is live, and you can add new attribute
169 | * by updating the map directly. Because of this design, there's no setter.
170 | *
171 | *
172 | * @return
173 | * always non-null
174 | */
175 | public Map getOtherAttributes() {
176 | return otherAttributes;
177 | }
178 |
179 | }
180 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/SourceType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.util.ArrayList;
12 | import java.util.HashMap;
13 | import java.util.List;
14 | import java.util.Map;
15 | import javax.xml.bind.JAXBElement;
16 | import javax.xml.bind.annotation.XmlAccessType;
17 | import javax.xml.bind.annotation.XmlAccessorType;
18 | import javax.xml.bind.annotation.XmlAnyAttribute;
19 | import javax.xml.bind.annotation.XmlAnyElement;
20 | import javax.xml.bind.annotation.XmlAttribute;
21 | import javax.xml.bind.annotation.XmlElementRef;
22 | import javax.xml.bind.annotation.XmlElementRefs;
23 | import javax.xml.bind.annotation.XmlSchemaType;
24 | import javax.xml.bind.annotation.XmlType;
25 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
26 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
27 | import javax.xml.namespace.QName;
28 |
29 |
30 | /**
31 | *
32 | * The Atom source construct is defined in section 4.2.11 of the format spec.
33 | *
34 | *
35 | * Java class for sourceType complex type.
36 | *
37 | *
The following schema fragment specifies the expected content contained within this class.
38 | *
39 | *
40 | * <complexType name="sourceType">
41 | * <complexContent>
42 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 | * <choice maxOccurs="unbounded">
44 | * <element name="author" type="{http://www.w3.org/2005/Atom}personType" maxOccurs="unbounded" minOccurs="0"/>
45 | * <element name="category" type="{http://www.w3.org/2005/Atom}categoryType" maxOccurs="unbounded" minOccurs="0"/>
46 | * <element name="contributor" type="{http://www.w3.org/2005/Atom}personType" maxOccurs="unbounded" minOccurs="0"/>
47 | * <element name="generator" type="{http://www.w3.org/2005/Atom}generatorType" minOccurs="0"/>
48 | * <element name="icon" type="{http://www.w3.org/2005/Atom}iconType" minOccurs="0"/>
49 | * <element name="id" type="{http://www.w3.org/2005/Atom}idType" minOccurs="0"/>
50 | * <element name="link" type="{http://www.w3.org/2005/Atom}linkType" maxOccurs="unbounded" minOccurs="0"/>
51 | * <element name="logo" type="{http://www.w3.org/2005/Atom}logoType" minOccurs="0"/>
52 | * <element name="rights" type="{http://www.w3.org/2005/Atom}textType" minOccurs="0"/>
53 | * <element name="subtitle" type="{http://www.w3.org/2005/Atom}textType" minOccurs="0"/>
54 | * <element name="title" type="{http://www.w3.org/2005/Atom}textType" minOccurs="0"/>
55 | * <element name="updated" type="{http://www.w3.org/2005/Atom}dateTimeType" minOccurs="0"/>
56 | * <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
57 | * </choice>
58 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
59 | * <anyAttribute namespace='##other'/>
60 | * </restriction>
61 | * </complexContent>
62 | * </complexType>
63 | *
64 | *
65 | *
66 | */
67 | @XmlAccessorType(XmlAccessType.FIELD)
68 | @XmlType(name = "sourceType", propOrder = {
69 | "authorOrCategoryOrContributor"
70 | })
71 | public class SourceType {
72 |
73 | @XmlElementRefs({
74 | @XmlElementRef(name = "category", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
75 | @XmlElementRef(name = "rights", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
76 | @XmlElementRef(name = "logo", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
77 | @XmlElementRef(name = "updated", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
78 | @XmlElementRef(name = "link", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
79 | @XmlElementRef(name = "icon", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
80 | @XmlElementRef(name = "author", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
81 | @XmlElementRef(name = "id", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
82 | @XmlElementRef(name = "contributor", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
83 | @XmlElementRef(name = "title", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
84 | @XmlElementRef(name = "generator", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false),
85 | @XmlElementRef(name = "subtitle", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false)
86 | })
87 | @XmlAnyElement(lax = true)
88 | protected List authorOrCategoryOrContributor;
89 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
90 | @XmlSchemaType(name = "anyURI")
91 | protected String base;
92 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
93 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
94 | @XmlSchemaType(name = "language")
95 | protected String lang;
96 | @XmlAnyAttribute
97 | private Map otherAttributes = new HashMap();
98 |
99 | /**
100 | * Gets the value of the authorOrCategoryOrContributor property.
101 | *
102 | *
103 | * This accessor method returns a reference to the live list,
104 | * not a snapshot. Therefore any modification you make to the
105 | * returned list will be present inside the JAXB object.
106 | * This is why there is not a set
method for the authorOrCategoryOrContributor property.
107 | *
108 | *
109 | * For example, to add a new item, do as follows:
110 | *
111 | * getAuthorOrCategoryOrContributor().add(newItem);
112 | *
113 | *
114 | *
115 | *
116 | * Objects of the following type(s) are allowed in the list
117 | * {@link JAXBElement }{@code <}{@link CategoryType }{@code >}
118 | * {@link JAXBElement }{@code <}{@link LogoType }{@code >}
119 | * {@link JAXBElement }{@code <}{@link TextType }{@code >}
120 | * {@link JAXBElement }{@code <}{@link PersonType }{@code >}
121 | * {@link JAXBElement }{@code <}{@link IconType }{@code >}
122 | * {@link JAXBElement }{@code <}{@link LinkType }{@code >}
123 | * {@link JAXBElement }{@code <}{@link DateTimeType }{@code >}
124 | * {@link Object }
125 | * {@link JAXBElement }{@code <}{@link PersonType }{@code >}
126 | * {@link JAXBElement }{@code <}{@link IdType }{@code >}
127 | * {@link JAXBElement }{@code <}{@link GeneratorType }{@code >}
128 | * {@link JAXBElement }{@code <}{@link TextType }{@code >}
129 | * {@link JAXBElement }{@code <}{@link TextType }{@code >}
130 | *
131 | *
132 | */
133 | public List getAuthorOrCategoryOrContributor() {
134 | if (authorOrCategoryOrContributor == null) {
135 | authorOrCategoryOrContributor = new ArrayList();
136 | }
137 | return this.authorOrCategoryOrContributor;
138 | }
139 |
140 | /**
141 | * Gets the value of the base property.
142 | *
143 | * @return
144 | * possible object is
145 | * {@link String }
146 | *
147 | */
148 | public String getBase() {
149 | return base;
150 | }
151 |
152 | /**
153 | * Sets the value of the base property.
154 | *
155 | * @param value
156 | * allowed object is
157 | * {@link String }
158 | *
159 | */
160 | public void setBase(String value) {
161 | this.base = value;
162 | }
163 |
164 | /**
165 | * Gets the value of the lang property.
166 | *
167 | * @return
168 | * possible object is
169 | * {@link String }
170 | *
171 | */
172 | public String getLang() {
173 | return lang;
174 | }
175 |
176 | /**
177 | * Sets the value of the lang property.
178 | *
179 | * @param value
180 | * allowed object is
181 | * {@link String }
182 | *
183 | */
184 | public void setLang(String value) {
185 | this.lang = value;
186 | }
187 |
188 | /**
189 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
190 | *
191 | *
192 | * the map is keyed by the name of the attribute and
193 | * the value is the string value of the attribute.
194 | *
195 | * the map returned by this method is live, and you can add new attribute
196 | * by updating the map directly. Because of this design, there's no setter.
197 | *
198 | *
199 | * @return
200 | * always non-null
201 | */
202 | public Map getOtherAttributes() {
203 | return otherAttributes;
204 | }
205 |
206 | }
207 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/TextType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.util.ArrayList;
12 | import java.util.HashMap;
13 | import java.util.List;
14 | import java.util.Map;
15 | import javax.xml.bind.annotation.XmlAccessType;
16 | import javax.xml.bind.annotation.XmlAccessorType;
17 | import javax.xml.bind.annotation.XmlAnyAttribute;
18 | import javax.xml.bind.annotation.XmlAnyElement;
19 | import javax.xml.bind.annotation.XmlAttribute;
20 | import javax.xml.bind.annotation.XmlMixed;
21 | import javax.xml.bind.annotation.XmlSchemaType;
22 | import javax.xml.bind.annotation.XmlType;
23 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
24 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
25 | import javax.xml.namespace.QName;
26 |
27 |
28 | /**
29 | *
30 | * The Atom text construct is defined in section 3.1 of the format spec.
31 | *
32 | *
33 | * Java class for textType complex type.
34 | *
35 | *
The following schema fragment specifies the expected content contained within this class.
36 | *
37 | *
38 | * <complexType name="textType">
39 | * <complexContent>
40 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41 | * <sequence>
42 | * <any namespace='http://www.w3.org/1999/xhtml' minOccurs="0"/>
43 | * </sequence>
44 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
45 | * <attribute name="type">
46 | * <simpleType>
47 | * <restriction base="{http://www.w3.org/2001/XMLSchema}token">
48 | * <enumeration value="text"/>
49 | * <enumeration value="html"/>
50 | * <enumeration value="xhtml"/>
51 | * </restriction>
52 | * </simpleType>
53 | * </attribute>
54 | * <anyAttribute namespace='##other'/>
55 | * </restriction>
56 | * </complexContent>
57 | * </complexType>
58 | *
59 | *
60 | *
61 | */
62 | @XmlAccessorType(XmlAccessType.FIELD)
63 | @XmlType(name = "textType", propOrder = {
64 | "content"
65 | })
66 | public class TextType {
67 |
68 | @XmlMixed
69 | @XmlAnyElement(lax = true)
70 | protected List content;
71 | @XmlAttribute(name = "type")
72 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
73 | protected String type;
74 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
75 | @XmlSchemaType(name = "anyURI")
76 | protected String base;
77 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
78 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
79 | @XmlSchemaType(name = "language")
80 | protected String lang;
81 | @XmlAnyAttribute
82 | private Map otherAttributes = new HashMap();
83 |
84 | /**
85 | *
86 | * The Atom text construct is defined in section 3.1 of the format spec.
87 | * Gets the value of the content property.
88 | *
89 | *
90 | * This accessor method returns a reference to the live list,
91 | * not a snapshot. Therefore any modification you make to the
92 | * returned list will be present inside the JAXB object.
93 | * This is why there is not a set
method for the content property.
94 | *
95 | *
96 | * For example, to add a new item, do as follows:
97 | *
98 | * getContent().add(newItem);
99 | *
100 | *
101 | *
102 | *
103 | * Objects of the following type(s) are allowed in the list
104 | * {@link String }
105 | * {@link Object }
106 | *
107 | *
108 | */
109 | public List getContent() {
110 | if (content == null) {
111 | content = new ArrayList();
112 | }
113 | return this.content;
114 | }
115 |
116 | /**
117 | * Gets the value of the type property.
118 | *
119 | * @return
120 | * possible object is
121 | * {@link String }
122 | *
123 | */
124 | public String getType() {
125 | return type;
126 | }
127 |
128 | /**
129 | * Sets the value of the type property.
130 | *
131 | * @param value
132 | * allowed object is
133 | * {@link String }
134 | *
135 | */
136 | public void setType(String value) {
137 | this.type = value;
138 | }
139 |
140 | /**
141 | * Gets the value of the base property.
142 | *
143 | * @return
144 | * possible object is
145 | * {@link String }
146 | *
147 | */
148 | public String getBase() {
149 | return base;
150 | }
151 |
152 | /**
153 | * Sets the value of the base property.
154 | *
155 | * @param value
156 | * allowed object is
157 | * {@link String }
158 | *
159 | */
160 | public void setBase(String value) {
161 | this.base = value;
162 | }
163 |
164 | /**
165 | * Gets the value of the lang property.
166 | *
167 | * @return
168 | * possible object is
169 | * {@link String }
170 | *
171 | */
172 | public String getLang() {
173 | return lang;
174 | }
175 |
176 | /**
177 | * Sets the value of the lang property.
178 | *
179 | * @param value
180 | * allowed object is
181 | * {@link String }
182 | *
183 | */
184 | public void setLang(String value) {
185 | this.lang = value;
186 | }
187 |
188 | /**
189 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
190 | *
191 | *
192 | * the map is keyed by the name of the attribute and
193 | * the value is the string value of the attribute.
194 | *
195 | * the map returned by this method is live, and you can add new attribute
196 | * by updating the map directly. Because of this design, there's no setter.
197 | *
198 | *
199 | * @return
200 | * always non-null
201 | */
202 | public Map getOtherAttributes() {
203 | return otherAttributes;
204 | }
205 |
206 | }
207 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/UriType.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 |
9 | package org.w3._2005.atom;
10 |
11 | import java.util.HashMap;
12 | import java.util.Map;
13 | import javax.xml.bind.annotation.XmlAccessType;
14 | import javax.xml.bind.annotation.XmlAccessorType;
15 | import javax.xml.bind.annotation.XmlAnyAttribute;
16 | import javax.xml.bind.annotation.XmlAttribute;
17 | import javax.xml.bind.annotation.XmlSchemaType;
18 | import javax.xml.bind.annotation.XmlType;
19 | import javax.xml.bind.annotation.XmlValue;
20 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
21 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
22 | import javax.xml.namespace.QName;
23 |
24 |
25 | /**
26 | * Java class for uriType complex type.
27 | *
28 | *
The following schema fragment specifies the expected content contained within this class.
29 | *
30 | *
31 | * <complexType name="uriType">
32 | * <simpleContent>
33 | * <extension base="<http://www.w3.org/2001/XMLSchema>anyURI">
34 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
35 | * <anyAttribute namespace='##other'/>
36 | * </extension>
37 | * </simpleContent>
38 | * </complexType>
39 | *
40 | *
41 | *
42 | */
43 | @XmlAccessorType(XmlAccessType.FIELD)
44 | @XmlType(name = "uriType", propOrder = {
45 | "value"
46 | })
47 | public class UriType {
48 |
49 | @XmlValue
50 | @XmlSchemaType(name = "anyURI")
51 | protected String value;
52 | @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
53 | @XmlSchemaType(name = "anyURI")
54 | protected String base;
55 | @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
56 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
57 | @XmlSchemaType(name = "language")
58 | protected String lang;
59 | @XmlAnyAttribute
60 | private Map otherAttributes = new HashMap();
61 |
62 | /**
63 | * Gets the value of the value property.
64 | *
65 | * @return
66 | * possible object is
67 | * {@link String }
68 | *
69 | */
70 | public String getValue() {
71 | return value;
72 | }
73 |
74 | /**
75 | * Sets the value of the value property.
76 | *
77 | * @param value
78 | * allowed object is
79 | * {@link String }
80 | *
81 | */
82 | public void setValue(String value) {
83 | this.value = value;
84 | }
85 |
86 | /**
87 | * Gets the value of the base property.
88 | *
89 | * @return
90 | * possible object is
91 | * {@link String }
92 | *
93 | */
94 | public String getBase() {
95 | return base;
96 | }
97 |
98 | /**
99 | * Sets the value of the base property.
100 | *
101 | * @param value
102 | * allowed object is
103 | * {@link String }
104 | *
105 | */
106 | public void setBase(String value) {
107 | this.base = value;
108 | }
109 |
110 | /**
111 | * Gets the value of the lang property.
112 | *
113 | * @return
114 | * possible object is
115 | * {@link String }
116 | *
117 | */
118 | public String getLang() {
119 | return lang;
120 | }
121 |
122 | /**
123 | * Sets the value of the lang property.
124 | *
125 | * @param value
126 | * allowed object is
127 | * {@link String }
128 | *
129 | */
130 | public void setLang(String value) {
131 | this.lang = value;
132 | }
133 |
134 | /**
135 | * Gets a map that contains attributes that aren't bound to any typed property on this class.
136 | *
137 | *
138 | * the map is keyed by the name of the attribute and
139 | * the value is the string value of the attribute.
140 | *
141 | * the map returned by this method is live, and you can add new attribute
142 | * by updating the map directly. Because of this design, there's no setter.
143 | *
144 | *
145 | * @return
146 | * always non-null
147 | */
148 | public Map getOtherAttributes() {
149 | return otherAttributes;
150 | }
151 |
152 | }
153 |
--------------------------------------------------------------------------------
/src/main/java/org/w3/_2005/atom/package-info.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
3 | // See http://java.sun.com/xml/jaxb
4 | // Any modifications to this file will be lost upon recompilation of the source schema.
5 | // Generated on: 2012.10.21 at 11:22:17 AM HST
6 | //
7 |
8 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.w3.org/2005/Atom", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
9 | package org.w3._2005.atom;
10 |
--------------------------------------------------------------------------------
/src/main/test/java/com/github/aruld/oneliners/ItemTest.java:
--------------------------------------------------------------------------------
1 | package com.github.aruld.oneliners;
2 |
3 | import org.junit.Assert;
4 | import org.junit.Test;
5 |
6 | import java.io.BufferedReader;
7 | import java.io.File;
8 | import java.io.FileReader;
9 | import java.net.URL;
10 | import java.nio.charset.Charset;
11 | import java.nio.file.Files;
12 | import java.util.*;
13 | import java.util.stream.IntStream;
14 | import java.util.stream.Stream;
15 |
16 | import static java.util.Comparator.comparing;
17 | import static java.util.stream.Collectors.groupingBy;
18 | import static java.util.stream.Collectors.toCollection;
19 | import static java.util.stream.Collectors.toList;
20 | import static java.util.stream.IntStream.range;
21 | import static junit.framework.TestCase.assertEquals;
22 | import static org.junit.Assert.assertArrayEquals;
23 | import static org.junit.Assert.assertTrue;
24 |
25 | import static com.github.aruld.oneliners.Item10.Album;
26 | import static com.github.aruld.oneliners.Item10.Track;
27 |
28 | public class ItemTest {
29 |
30 | @Test
31 | public void item1() {
32 | int[] actual = range(1, 10).map(i -> i * 2).toArray();
33 | int[] expected = new int[]{2, 4, 6, 8, 10, 12, 14, 16, 18};
34 | assertArrayEquals(actual, expected);
35 | List actualList = range(1, 10).map(i -> i * 2).boxed().collect(toList());
36 | List expectedList = Arrays.asList(2, 4, 6, 8, 10, 12, 14, 16, 18);
37 | Assert.assertEquals(actualList, expectedList);
38 | }
39 |
40 | @Test
41 | public void item2() {
42 | int expected = 499500;
43 | assertEquals(range(1, 1000).sum(), expected);
44 | assertEquals(range(1, 1000).reduce(0, Integer::sum), expected);
45 | assertEquals(Stream.iterate(0, i -> i + 1).limit(1000).reduce(0, Integer::sum).intValue(), expected);
46 | assertEquals(IntStream.iterate(0, i -> i + 1).limit(1000).reduce(0, Integer::sum), expected);
47 | }
48 |
49 | @Test
50 | public void item3() {
51 |
52 | final List keywords = Arrays.asList("brown", "fox", "dog", "pangram");
53 | final String tweet = "The quick brown fox jumps over a lazy dog. #pangram http://www.rinkworks.com/words/pangrams.shtml";
54 |
55 | assertTrue(keywords.stream().anyMatch(tweet::contains));
56 | assertTrue(keywords.stream().reduce(false, (b, keyword) -> b || tweet.contains(keyword), (l, r) -> l || r));
57 |
58 | }
59 |
60 | @Test
61 | public void item4() throws Exception {
62 | URL url = this.getClass().getResource("/data.txt");
63 | File data = new File(url.getFile());
64 | List expected = Arrays.asList("banana", "pineapple", "guava", "papaya");
65 |
66 | try (BufferedReader reader = new BufferedReader(new FileReader(data))) {
67 | String fileText = reader.lines().reduce("", String::concat);
68 | assertEquals(fileText, "bananapineappleguavapapaya");
69 | }
70 |
71 | try (BufferedReader reader = new BufferedReader(new FileReader(data))) {
72 | List fileLines = reader.lines().collect(toCollection(LinkedList::new));
73 | assertEquals(fileLines, expected);
74 | }
75 |
76 | try (Stream lines = Files.lines(data.toPath(), Charset.defaultCharset())) {
77 | List fileLines = lines.collect(toCollection(LinkedList::new));
78 | assertEquals(fileLines, expected);
79 | }
80 | }
81 |
82 | @Test
83 | public void item6() {
84 | Map> result = Stream.of(49, 58, 76, 82, 88, 90).collect(groupingBy(Item6.forPredicate(i -> i > 60, "passed", "failed")));
85 |
86 | Collection expected = Arrays.asList(76, 82, 88, 90);
87 | assertEquals(result.get("passed"), expected);
88 | assertEquals(result.get("failed"), Arrays.asList(49, 58));
89 | }
90 |
91 | @Test
92 | public void item8() {
93 | int min = Stream.of(14, 35, -7, 46, 98).reduce(Integer::min).get();
94 | assertEquals(min, -7);
95 | min = Stream.of(14, 35, -7, 46, 98).min(Integer::compare).get();
96 | assertEquals(min, -7);
97 |
98 | int max = Stream.of(14, 35, -7, 46, 98).reduce(Integer::max).get();
99 | assertEquals(max, 98);
100 | max = Stream.of(14, 35, -7, 46, 98).max(Integer::compare).get();
101 | assertEquals(max, 98);
102 | }
103 |
104 | @Test
105 | public void item10() {
106 | Album tailgates = new Album("Tailgates & Tanlines", "Luke Bryan");
107 | tailgates.tracks.add(new Track("Country Girl (Shake It for Me)", 5));
108 | tailgates.tracks.add(new Track("Kiss Tomorrow Goodbye", 5));
109 | tailgates.tracks.add(new Track("Drunk On You", 4));
110 | tailgates.tracks.add(new Track("Too Damn Young", 4));
111 | tailgates.tracks.add(new Track("I Don't Want This Night to End", 4));
112 | tailgates.tracks.add(new Track("You Don't Know Jack", 4));
113 | tailgates.tracks.add(new Track("Harvest Time", 3));
114 | tailgates.tracks.add(new Track("I Know You're Gonna Be There", 3));
115 | tailgates.tracks.add(new Track("Muckalee Creek Water", 3));
116 | tailgates.tracks.add(new Track("Tailgate Blues", 3));
117 | tailgates.tracks.add(new Track("Been There, Done That", 3));
118 | tailgates.tracks.add(new Track("Faded Away", 3));
119 | tailgates.tracks.add(new Track("I Knew You That Way", 3));
120 |
121 | Album unapologetic = new Album("Unapologetic", "Rihanna");
122 | unapologetic.tracks.add(new Track("Phresh Out the Runway", 5));
123 | unapologetic.tracks.add(new Track("Diamonds", 3));
124 | unapologetic.tracks.add(new Track("Numb", 3));
125 | unapologetic.tracks.add(new Track("Pour It Up", 3));
126 | unapologetic.tracks.add(new Track("Loveeeeeee Song", 4));
127 | unapologetic.tracks.add(new Track("Jump", 4));
128 | unapologetic.tracks.add(new Track("Right Now", 4));
129 | unapologetic.tracks.add(new Track("What Now", 4));
130 | unapologetic.tracks.add(new Track("Stay", 4));
131 | unapologetic.tracks.add(new Track("Nobody's Business", 5));
132 | unapologetic.tracks.add(new Track("Love Without Tragedy", 5));
133 | unapologetic.tracks.add(new Track("Get It Over With", 5));
134 | unapologetic.tracks.add(new Track("No Love Allowed", 3));
135 | unapologetic.tracks.add(new Track("Lost In Paradise", 5));
136 |
137 | Album red = new Album("Red", "Taylor Swift");
138 | red.tracks.add(new Track("State of Grace", 4));
139 | red.tracks.add(new Track("Red", 4));
140 | red.tracks.add(new Track("Treacherous", 4));
141 | red.tracks.add(new Track("I Knew You Were Trouble", 5));
142 | red.tracks.add(new Track("All Too Well", 3));
143 | red.tracks.add(new Track("22", 3));
144 | red.tracks.add(new Track("I Almost Do", 3));
145 | red.tracks.add(new Track("We Are Never Ever Getting Back", 3));
146 | red.tracks.add(new Track("Stay Stay Stay", 5));
147 | red.tracks.add(new Track("The Last Time", 5));
148 | red.tracks.add(new Track("Holy Ground", 3));
149 | red.tracks.add(new Track("Sad Beautiful Tragic", 3));
150 | red.tracks.add(new Track("The Lucky One", 4));
151 | red.tracks.add(new Track("Everything Has Changed", 3));
152 | red.tracks.add(new Track("Starlight", 4));
153 | red.tracks.add(new Track("Begin Again", 3));
154 |
155 | List albums = Arrays.asList(unapologetic, tailgates, red);
156 |
157 | // Print the names of albums that have at least one track rated four or higher, sorted by name.
158 | Assert.assertEquals(albums.stream()
159 | .filter(a -> a.tracks.stream().anyMatch(t -> (t.rating >= 4)))
160 | .sorted(comparing(album -> album.name))
161 | .map(a -> a.name).collect(toList()), Arrays.asList("Red", "Tailgates & Tanlines", "Unapologetic"));
162 |
163 | // Merge tracks from all albums
164 | List allTracks = albums.stream().flatMap(album -> album.tracks.stream()).collect(toList());
165 | Assert.assertEquals(allTracks.size(), 43);
166 |
167 | // Group album tracks by rating
168 | Map> tracksByRating = allTracks.stream().collect(groupingBy(Track::getRating));
169 | Assert.assertEquals(tracksByRating.get(3).size(), 19);
170 | Assert.assertEquals(tracksByRating.get(4).size(), 14);
171 | Assert.assertEquals(tracksByRating.get(5).size(), 10);
172 | }
173 |
174 | }
175 |
--------------------------------------------------------------------------------
/src/main/test/resources/data.txt:
--------------------------------------------------------------------------------
1 | banana
2 | pineapple
3 | guava
4 | papaya
--------------------------------------------------------------------------------