org.springframework.object.AbstractObject Maven / Gradle / Ivy
package org.springframework.object;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* @see lombok.Getter#value()
* @see lombok.AccessLevel#NONE
* @see javax.xml.bind.annotation.XmlElement#name()
* @see javax.xml.bind.annotation.XmlElement#namespace()
* @see javax.xml.bind.annotation.XmlRootElement
* @see javax.xml.bind.annotation.XmlAccessorType
* @see org.springframework.hateoas.Link#ATOM_NAMESPACE
* @see com.fasterxml.jackson.annotation.JsonProperty#value()
*/
public abstract class AbstractObject implements Serializable {
private static final long serialVersionUID = -3422470322667620126L;
private Map link = new LinkedHashMap();
private Map data = new LinkedHashMap();
public void addLink(String key, Object value) {
this.link.put(key, value);
}
public Map getLink() {
return this.link;
}
public void addData(String key, Object value) {
this.data.put(key, value);
}
public Map getData() {
return this.data;
}
// public void setLink(Map link) {
// this.link = link;
// }
//
// public void setData(Map data) {
// this.data = data;
// }
}