org.imsglobal.lti2.objects.consumer.Vendor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of basiclti-util Show documentation
Show all versions of basiclti-util Show documentation
BasicLTI Utilities are a set of utility classes to aid in the development of BasicLTI consumers and
providers. They deal with much of the heavy lifting and make the process more opaque to the developer.
The newest version!
package org.imsglobal.lti2.objects.consumer;
import org.imsglobal.lti2.LTI2Config;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonSerialize;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@Generated("com.googlecode.jsonschema2pojo")
@JsonPropertyOrder({
"code",
"vendor_name",
"description",
"website",
"timestamp",
"contact"
})
public class Vendor {
@JsonProperty("code")
private String code;
@JsonProperty("vendor_name")
private Name vendor_name;
@JsonProperty("description")
private Description description;
@JsonProperty("website")
private String website;
@JsonProperty("timestamp")
private String timestamp;
@JsonProperty("contact")
private Contact contact;
private Map additionalProperties = new HashMap();
public Vendor(LTI2Config cnf) {
this.code = cnf.getProduct_family_vendor_code();
this.vendor_name = new Name(cnf.getProduct_family_vendor_name());
this.description = new Description(cnf.getProduct_family_vendor_description());
this.website = cnf.getProduct_family_vendor_website();
this.contact = new Contact(cnf.getProduct_family_vendor_contact());
}
public Vendor() {
}
@JsonProperty("code")
public String getCode() {
return code;
}
@JsonProperty("code")
public void setCode(String code) {
this.code = code;
}
@JsonProperty("vendor_name")
public Name getVendor_name() {
return vendor_name;
}
@JsonProperty("name")
public void setVendor_name(Name vendor_name) {
this.vendor_name = vendor_name;
}
@JsonProperty("description")
public Description getDescription() {
return description;
}
@JsonProperty("description")
public void setDescription(Description description) {
this.description = description;
}
@JsonProperty("website")
public String getWebsite() {
return website;
}
@JsonProperty("website")
public void setWebsite(String website) {
this.website = website;
}
@JsonProperty("timestamp")
public String getTimestamp() {
return timestamp;
}
@JsonProperty("timestamp")
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
@JsonProperty("contact")
public Contact getContact() {
return contact;
}
@JsonProperty("contact")
public void setContact(Contact contact) {
this.contact = contact;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperties(String name, Object value) {
this.additionalProperties.put(name, value);
}
}