1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.impl.container; |
12 | |
|
13 | |
public class DescriptorContainerKeyPair extends ContainerKeyPair |
14 | |
{ |
15 | |
private String descriptorName; |
16 | |
|
17 | |
public DescriptorContainerKeyPair(String descriptorName, Object key) |
18 | |
{ |
19 | 0 | super(DescriptorContainerContext.DESCRIPTOR_CONTAINER_NAME, key); |
20 | 0 | this.descriptorName = descriptorName; |
21 | 0 | } |
22 | |
|
23 | |
public String getDescriptorName() |
24 | |
{ |
25 | 0 | return descriptorName; |
26 | |
} |
27 | |
|
28 | |
public String toFullString() |
29 | |
{ |
30 | 0 | return "Descriptor Container Key{name=" + descriptorName + ", key=" + getKey().toString() |
31 | |
+ ", container=" + getContainerName() + ", required=" + isRequired() + "}"; |
32 | |
} |
33 | |
|
34 | |
public boolean equals(Object o) |
35 | |
{ |
36 | 0 | if (this == o) |
37 | |
{ |
38 | 0 | return true; |
39 | |
} |
40 | 0 | if (o == null || getClass() != o.getClass()) |
41 | |
{ |
42 | 0 | return false; |
43 | |
} |
44 | 0 | if (!super.equals(o)) |
45 | |
{ |
46 | 0 | return false; |
47 | |
} |
48 | |
|
49 | 0 | final DescriptorContainerKeyPair that = (DescriptorContainerKeyPair) o; |
50 | |
|
51 | 0 | if (descriptorName != null |
52 | |
? !descriptorName.equals(that.descriptorName) : that.descriptorName != null) |
53 | |
{ |
54 | 0 | return false; |
55 | |
} |
56 | |
|
57 | 0 | return true; |
58 | |
} |
59 | |
|
60 | |
public int hashCode() |
61 | |
{ |
62 | 0 | return 29 * super.hashCode() + (descriptorName != null ? descriptorName.hashCode() : 0); |
63 | |
} |
64 | |
} |