ioinformarics.oss.jackson.module.jsonld.BeanJsonldResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-jsonld Show documentation
Show all versions of jackson-jsonld Show documentation
JSON-LD Module for Jackson
The newest version!
package ioinformarics.oss.jackson.module.jsonld;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import com.fasterxml.jackson.databind.JsonNode;
/**
* @author Alexander De Leon
*/
@JsonPropertyOrder({"@context", "@type", "@id"})
public class BeanJsonldResource implements JsonldResource{
@JsonUnwrapped
@JsonInclude(JsonInclude.Include.NON_NULL)
public final Object scopedObj;
@JsonProperty("@context")
@JsonInclude(JsonInclude.Include.NON_NULL)
public final JsonNode context;
@JsonProperty("@type")
@JsonInclude(JsonInclude.Include.NON_NULL)
public final String type;
@JsonProperty("@id")
@JsonInclude(JsonInclude.Include.NON_NULL)
public final String id;
BeanJsonldResource(Object scopedObj, JsonNode context, String type, String id) {
this.scopedObj = scopedObj;
this.context = context;
this.type = type;
this.id = id;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy