View Javadoc
1   /******************************************************************************
2    * MediaContainer.java - Primary domain object from plex
3    * $Id: MediaContainer.java,v 1.3 2014/10/12 07:21:28 dick Exp $
4    * 
5    * BuckoVidLib - The BuckoSoft Video Library
6    * Copyright(c) 2014 - Dick Balaska
7    * 
8    * $Log: MediaContainer.java,v $
9    * Revision 1.3  2014/10/12 07:21:28  dick
10   * Add the size Attribute.
11   *
12   * Revision 1.2  2014/10/08 04:42:06  dick
13   * Add the Collection of Videos that may come in a MediaContainer.
14   *
15   * Revision 1.1  2014/10/04 16:17:53  dick
16   * plex domain objects.
17   *
18   */
19  package tv.plex.domain;
20  
21  import java.io.Serializable;
22  import java.util.ArrayList;
23  import java.util.Collection;
24  
25  import javax.xml.bind.annotation.XmlAttribute;
26  import javax.xml.bind.annotation.XmlElement;
27  import javax.xml.bind.annotation.XmlRootElement;
28  
29  @XmlRootElement(name="MediaContainer")
30  public class MediaContainer implements Serializable {
31  
32  	private static final long serialVersionUID = 1L;
33  	private int		size;
34  	private String	allowSync;
35  	private String	art;
36  	private String	content;
37  	private String	identifier;
38  	private String	mediaTagPrefix;
39  	private String	mediaTagVersion;
40  	private String	title1;
41  	private String	title2;
42  	
43  	Collection<Directory>	directories = new ArrayList<Directory>();
44  	Collection<Video>		videos = new ArrayList<Video>();
45  
46  	/**
47  	 * @return the size
48  	 */
49  	@XmlAttribute
50  	public int getSize() {
51  		return size;
52  	}
53  	/**
54  	 * @param size the size to set
55  	 */
56  	public void setSize(int size) {
57  		this.size = size;
58  	}
59  	/**
60  	 * @return the allowSync
61  	 */
62  	@XmlAttribute
63  	public String getAllowSync() {
64  		return allowSync;
65  	}
66  	/**
67  	 * @param allowSync the allowSync to set
68  	 */
69  	public void setAllowSync(String allowSync) {
70  		this.allowSync = allowSync;
71  	}
72  	/**
73  	 * @return the art
74  	 */
75  	@XmlAttribute
76  	public String getArt() {
77  		return art;
78  	}
79  	/**
80  	 * @param art the art to set
81  	 */
82  	public void setArt(String art) {
83  		this.art = art;
84  	}
85  	/**
86  	 * @return the content
87  	 */
88  	@XmlAttribute
89  	public String getContent() {
90  		return content;
91  	}
92  	/**
93  	 * @param content the content to set
94  	 */
95  	public void setContent(String content) {
96  		this.content = content;
97  	}
98  	/**
99  	 * @return the identifier
100 	 */
101 	@XmlAttribute
102 	public String getIdentifier() {
103 		return identifier;
104 	}
105 	/**
106 	 * @param identifier the identifier to set
107 	 */
108 	public void setIdentifier(String identifier) {
109 		this.identifier = identifier;
110 	}
111 	/**
112 	 * @return the mediaTagPrefix
113 	 */
114 	@XmlAttribute
115 	public String getMediaTagPrefix() {
116 		return mediaTagPrefix;
117 	}
118 	/**
119 	 * @param mediaTagPrefix the mediaTagPrefix to set
120 	 */
121 	public void setMediaTagPrefix(String mediaTagPrefix) {
122 		this.mediaTagPrefix = mediaTagPrefix;
123 	}
124 	/**
125 	 * @return the mediaTagVersion
126 	 */
127 	@XmlAttribute
128 	public String getMediaTagVersion() {
129 		return mediaTagVersion;
130 	}
131 	/**
132 	 * @param mediaTagVersion the mediaTagVersion to set
133 	 */
134 	public void setMediaTagVersion(String mediaTagVersion) {
135 		this.mediaTagVersion = mediaTagVersion;
136 	}
137 	/**
138 	 * @return the title1
139 	 */
140 	@XmlAttribute
141 	public String getTitle1() {
142 		return title1;
143 	}
144 	/**
145 	 * @param title1 the title1 to set
146 	 */
147 	public void setTitle1(String title1) {
148 		this.title1 = title1;
149 	}
150 	/**
151 	 * @return the title2
152 	 */
153 	@XmlAttribute
154 	public String getTitle2() {
155 		return title2;
156 	}
157 	/**
158 	 * @param title2 the title2 to set
159 	 */
160 	public void setTitle2(String title2) {
161 		this.title2 = title2;
162 	}
163 	/**
164 	 * @return the directories
165 	 */
166 	@XmlElement(name = "Directory")
167 	public Collection<Directory> getDirectories() {
168 		return directories;
169 	}
170 	/**
171 	 * @param directories the directories to set
172 	 */
173 	public void setDirectories(Collection<Directory> directories) {
174 		this.directories = directories;
175 	}
176 	/**
177 	 * @return the videos
178 	 */
179 	public Collection<Video> getVideos() {
180 		return videos;
181 	}
182 	/**
183 	 * @param videos the videos to set
184 	 */
185 	@XmlElement(name = "Video")
186 	public void setVideos(Collection<Video> videos) {
187 		this.videos = videos;
188 	}
189 }