| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.rice.core.api.util.jaxb; |
| 17 | |
|
| 18 | |
import javax.xml.bind.annotation.XmlAccessType; |
| 19 | |
import javax.xml.bind.annotation.XmlAccessorType; |
| 20 | |
import javax.xml.bind.annotation.XmlAttribute; |
| 21 | |
import javax.xml.bind.annotation.XmlType; |
| 22 | |
import javax.xml.bind.annotation.XmlValue; |
| 23 | |
import java.io.Serializable; |
| 24 | |
import java.util.Map; |
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
@XmlAccessorType(XmlAccessType.NONE) |
| 36 | |
@XmlType(name = "StringMapEntryType") |
| 37 | |
public final class StringMapEntry implements Serializable { |
| 38 | |
|
| 39 | |
private static final long serialVersionUID = -9609663434312103L; |
| 40 | |
|
| 41 | |
@XmlAttribute (name = "key") |
| 42 | |
private final String key; |
| 43 | |
|
| 44 | |
@XmlValue |
| 45 | |
private final String value; |
| 46 | |
|
| 47 | |
|
| 48 | |
|
| 49 | |
|
| 50 | |
@SuppressWarnings("unused") |
| 51 | 20 | private StringMapEntry() { |
| 52 | 20 | this.key = null; |
| 53 | 20 | this.value = null; |
| 54 | 20 | } |
| 55 | |
|
| 56 | 0 | public StringMapEntry(String key, String value) { |
| 57 | 0 | this.key = key; |
| 58 | 0 | this.value = value; |
| 59 | 0 | } |
| 60 | |
|
| 61 | 10 | public StringMapEntry(Map.Entry<String, String> e) { |
| 62 | 10 | this.key = e.getKey(); |
| 63 | 10 | this.value = e.getValue(); |
| 64 | 10 | } |
| 65 | |
|
| 66 | |
public String getKey() { |
| 67 | 20 | return this.key; |
| 68 | |
} |
| 69 | |
|
| 70 | |
public String getValue() { |
| 71 | 20 | return this.value; |
| 72 | |
} |
| 73 | |
|
| 74 | |
} |