com.afrozaar.wordpress.wpapi.v2.model.RenderableField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wp-api-v2-client-java Show documentation
Show all versions of wp-api-v2-client-java Show documentation
A Java client implementation to the WordPress WP-API v2 plugin.
package com.afrozaar.wordpress.wpapi.v2.model;
import com.google.common.base.MoreObjects;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.HashMap;
import java.util.Map;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({ "raw", "rendered" })
public class RenderableField {
@JsonProperty("raw")
private String raw;
@JsonProperty("rendered")
private String rendered;
@JsonIgnore
private Map additionalProperties = new HashMap();
public String getRaw() {
return raw;
}
public void setRaw(String raw) {
this.raw = raw;
}
public String getRendered() {
return rendered;
}
public void setRendered(String rendered) {
this.rendered = rendered;
}
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("raw", raw)
.add("rendered", rendered)
.toString();
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy