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

org.tsugi.jackson.objects.JacksonBase Maven / Gradle / Ivy

There is a newer version: 23.3
Show newest version

package org.tsugi.jackson.objects;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Generated;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;


import org.tsugi.jackson.JacksonUtil;

public class JacksonBase
{

	private Map additionalProperties = new HashMap();

	public String prettyPrint()
		throws com.fasterxml.jackson.core.JsonProcessingException
	{
		return JacksonUtil.prettyPrint(this);
	}

	public String prettyPrintLog()
	{
		return JacksonUtil.prettyPrintLog(this);
	}

	public Object getKey(String key)
	{
		return additionalProperties.get(key);
	}

	public Object setKey(String key, Object value)
	{
		return additionalProperties.put(key, value);
	}

	@JsonAnyGetter
	public Map getAdditionalProperties() {
		return this.additionalProperties;
	}

	@JsonAnySetter
	public void setAdditionalProperties(String name, Object value) {
		this.additionalProperties.put(name, value);
	}

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy