View Javadoc
1   /*
2    * Licensed to The Apereo Foundation under one or more contributor license
3    * agreements. See the NOTICE file distributed with this work for additional
4    * information regarding copyright ownership.
5    *
6    *
7    * The Apereo Foundation licenses this file to you under the Educational
8    * Community License, Version 2.0 (the "License"); you may not use this file
9    * except in compliance with the License. You may obtain a copy of the License
10   * at:
11   *
12   *   http://opensource.org/licenses/ecl2.txt
13   *
14   * Unless required by applicable law or agreed to in writing, software
15   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
17   * License for the specific language governing permissions and limitations under
18   * the License.
19   *
20   */
21  
22  
23  package org.opencastproject.inspection.ffmpeg.api;
24  
25  import java.net.URL;
26  import java.util.Date;
27  import java.util.Locale;
28  
29  /**
30   * Common metadata for all kinds of media objects.
31   */
32  public class CommonMetadata {
33  
34    protected String format;
35    protected String formatInfo;
36    protected URL formatURL;
37    protected String formatVersion;
38    protected String formatProfile;
39    protected String formatSettingsSummary;
40  
41    protected String encoderApplication;
42    protected URL encoderApplicationURL;
43    protected URL encoderApplicationVendor;
44    protected String encoderLibrary;
45    protected URL encoderLibraryURL;
46    protected String encoderLibraryInfo;
47    protected String encoderLibraryVersion;
48    protected String encoderLibraryVendor;
49    protected String encoderLibraryReleaseDate;
50    protected String encoderLibrarySettings;
51  
52    protected Boolean encrypted;
53  
54    protected Date encodedDate;
55    protected Date taggedDate;
56  
57    protected String title;
58  
59    protected Locale language;
60  
61    // bytes
62    protected Long size;
63  
64    public String getFormat() {
65      return format;
66    }
67  
68    public void setFormat(String format) {
69      this.format = format;
70    }
71  
72    public String getFormatInfo() {
73      return formatInfo;
74    }
75  
76    public void setFormatInfo(String formatInfo) {
77      this.formatInfo = formatInfo;
78    }
79  
80    public URL getFormatURL() {
81      return formatURL;
82    }
83  
84    public void setFormatURL(URL formatURL) {
85      this.formatURL = formatURL;
86    }
87  
88    public String getFormatVersion() {
89      return formatVersion;
90    }
91  
92    public void setFormatVersion(String formatVersion) {
93      this.formatVersion = formatVersion;
94    }
95  
96    public String getFormatProfile() {
97      return formatProfile;
98    }
99  
100   public void setFormatProfile(String formatProfile) {
101     this.formatProfile = formatProfile;
102   }
103 
104   public String getFormatSettingsSummary() {
105     return formatSettingsSummary;
106   }
107 
108   public void setFormatSettingsSummary(String formatSettingsSummary) {
109     this.formatSettingsSummary = formatSettingsSummary;
110   }
111 
112   public String getEncoderApplication() {
113     return encoderApplication;
114   }
115 
116   public void setEncoderApplication(String encoderApplication) {
117     this.encoderApplication = encoderApplication;
118   }
119 
120   public URL getEncoderApplicationURL() {
121     return encoderApplicationURL;
122   }
123 
124   public void setEncoderApplicationURL(URL encoderApplicationURL) {
125     this.encoderApplicationURL = encoderApplicationURL;
126   }
127 
128   public String getEncoderLibrary() {
129     return encoderLibrary;
130   }
131 
132   public void setEncoderLibrary(String encoderLibrary) {
133     this.encoderLibrary = encoderLibrary;
134   }
135 
136   public URL getEncoderLibraryURL() {
137     return encoderLibraryURL;
138   }
139 
140   public void setEncoderLibraryURL(URL encoderLibraryURL) {
141     this.encoderLibraryURL = encoderLibraryURL;
142   }
143 
144   public String getEncoderLibraryInfo() {
145     return encoderLibraryInfo;
146   }
147 
148   public void setEncoderLibraryInfo(String encoderLibraryInfo) {
149     this.encoderLibraryInfo = encoderLibraryInfo;
150   }
151 
152   public String getEncoderLibraryVersion() {
153     return encoderLibraryVersion;
154   }
155 
156   public void setEncoderLibraryVersion(String encoderLibraryVersion) {
157     this.encoderLibraryVersion = encoderLibraryVersion;
158   }
159 
160   public String getEncoderLibraryReleaseDate() {
161     return encoderLibraryReleaseDate;
162   }
163 
164   public void setEncoderLibraryReleaseDate(String encoderLibraryReleaseDate) {
165     this.encoderLibraryReleaseDate = encoderLibraryReleaseDate;
166   }
167 
168   public String getEncoderLibrarySettings() {
169     return encoderLibrarySettings;
170   }
171 
172   public void setEncoderLibrarySettings(String encoderLibrarySettings) {
173     this.encoderLibrarySettings = encoderLibrarySettings;
174   }
175 
176   public Boolean isEncrypted() {
177     return encrypted;
178   }
179 
180   public void setEncrypted(Boolean encrypted) {
181     this.encrypted = encrypted;
182   }
183 
184   public Date getEncodedDate() {
185     return encodedDate;
186   }
187 
188   public void setEncodedDate(Date encodedDate) {
189     this.encodedDate = encodedDate;
190   }
191 
192   public Date getTaggedDate() {
193     return taggedDate;
194   }
195 
196   public void setTaggedDate(Date taggedDate) {
197     this.taggedDate = taggedDate;
198   }
199 
200   /**
201    * Returns the title of the media object.
202    */
203   public String getTitle() {
204     return title;
205   }
206 
207   public void setTitle(String title) {
208     this.title = title;
209   }
210 
211   /**
212    * Returns the locale of the media object, usually only the language.
213    */
214   public Locale getLanguage() {
215     return language;
216   }
217 
218   public void setLanguage(Locale language) {
219     this.language = language;
220   }
221 
222   public Long getSize() {
223     return size;
224   }
225 
226   public void setSize(Long size) {
227     this.size = size;
228   }
229 
230   public URL getEncoderApplicationVendor() {
231     return encoderApplicationVendor;
232   }
233 
234   public void setEncoderApplicationVendor(URL encoderApplicationVendor) {
235     this.encoderApplicationVendor = encoderApplicationVendor;
236   }
237 
238   public String getEncoderLibraryVendor() {
239     return encoderLibraryVendor;
240   }
241 
242   public void setEncoderLibraryVendor(String encoderLibraryVendor) {
243     this.encoderLibraryVendor = encoderLibraryVendor;
244   }
245 
246 }