All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rs.jerseyclient.data.AbstractData Maven / Gradle / Ivy

The newest version!
/**
 * 
 */
package rs.jerseyclient.data;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Abstract base for data classes providing the HATEOAS field {@code _links}.
 * 

The class is usually required for correct JSON (de)serialization.

* * @author ralph * */ public abstract class AbstractData { @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) private Map _links; /** * Default constructor. */ public AbstractData() {} /** * Returns the links map. * @return the links map */ public Map get_links() { return _links; } /** * Sets the links map. * @param _links the links map */ public void set_links(Map _links) { this._links = _links; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy