package org.marketcetera.core; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; /* $License$ */ /** * Adapts a <code>Map<String,String></code> to and from XML. * * @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a> * @version $Id: MapElements.java 16901 2014-05-11 16:14:11Z colin $ * @since 2.4.0 */ @XmlAccessorType(XmlAccessType.NONE) public class MapElements { /** * Create a new MapElements instance. * * @param inKey a <code>String</code> value * @param inValue a <code>String</code> value */ public MapElements(String inKey, String inValue) { key = inKey; value = inValue; } /** * Get the key value. * * @return a <code>String</code> value */ public String getKey() { return key; } /** * Sets the key value. * * @param inKey a <code>String</code> value */ public void setKey(String inKey) { key = inKey; } /** * Get the value value. * * @return a <code>String</code> value */ public String getValue() { return value; } /** * Sets the value value. * * @param inValue a <code>String</code> value */ public void setValue(String inValue) { value = inValue; } /** * Create a new MapElements instance. */ @SuppressWarnings("unused") private MapElements() {} /** * element key */ @XmlAttribute private String key; /** * element value */ @XmlAttribute private String value; }