1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package edu.internet2.middleware.shibboleth.wayf.idpdisco;
18
19 import java.util.List;
20
21 import org.opensaml.common.impl.AbstractSAMLObject;
22 import org.opensaml.saml2.metadata.LocalizedString;
23 import org.opensaml.xml.XMLObject;
24
25
26
27
28
29 public class LogoImpl extends AbstractSAMLObject implements Logo {
30
31
32 private LocalizedString localizedURL;
33
34
35 private Integer width;
36
37
38 private Integer height;
39
40
41
42
43
44
45
46
47 protected LogoImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
48 super(namespaceURI, elementLocalName, namespacePrefix);
49 }
50
51
52
53 public Integer getHeight() {
54 return height;
55 }
56
57
58 public void setHeight(Integer newHeight) {
59 height = prepareForAssignment(height, newHeight);
60 }
61
62
63 public Integer getWidth() {
64 return width;
65 }
66
67
68 public void setWidth(Integer newWidth) {
69 width = prepareForAssignment(width, newWidth);
70 }
71
72
73 public LocalizedString getURL() {
74 return localizedURL;
75 }
76
77
78 public void setURL(LocalizedString newURL) {
79 localizedURL = newURL;
80 }
81
82
83 public String getXMLLang() {
84 localizedURL.getLanguage();
85 return null;
86 }
87
88
89
90 public void setXMLLang(String newLang) {
91 localizedURL.setLanguage(newLang);
92 }
93
94
95 public List<XMLObject> getOrderedChildren() {
96 return null;
97 }
98
99
100
101
102 public int hashCode() {
103 int hash = 1;
104 hash = hash * 31 + localizedURL.hashCode();
105 hash = hash * 31 + height;
106 hash = hash * 31 + width;
107 return hash;
108 }
109 }