1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.opencastproject.composer.api;
23
24 import java.util.List;
25
26 import javax.xml.bind.annotation.XmlAccessType;
27 import javax.xml.bind.annotation.XmlAccessorType;
28 import javax.xml.bind.annotation.XmlElement;
29 import javax.xml.bind.annotation.XmlRootElement;
30 import javax.xml.bind.annotation.XmlType;
31
32
33
34
35 @XmlAccessorType(XmlAccessType.FIELD)
36 @XmlType(name = "profiles", namespace = "http://composer.opencastproject.org")
37 @XmlRootElement(name = "profiles", namespace = "http://composer.opencastproject.org")
38 public class EncodingProfileList {
39
40 public EncodingProfileList() {
41 }
42
43 public EncodingProfileList(List<EncodingProfileImpl> list) {
44 this.profiles = list;
45 }
46
47 @XmlElement(name = "profile")
48 protected List<EncodingProfileImpl> profiles;
49
50 public List<EncodingProfileImpl> getProfiles() {
51 return profiles;
52 }
53
54 public void setProfiles(List<EncodingProfileImpl> profiles) {
55 this.profiles = profiles;
56 }
57
58 @Override
59 public int hashCode() {
60 final int prime = 31;
61 int result = 1;
62 result = prime * result + ((profiles == null) ? 0 : profiles.hashCode());
63 return result;
64 }
65
66 @Override
67 public boolean equals(Object obj) {
68 if (this == obj)
69 return true;
70 if (obj == null)
71 return false;
72 if (getClass() != obj.getClass())
73 return false;
74 EncodingProfileList other = (EncodingProfileList) obj;
75 if (profiles == null) {
76 if (other.profiles != null)
77 return false;
78 } else if (!profiles.equals(other.profiles))
79 return false;
80 return true;
81 }
82
83 }