com.shopify.model.Option Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shopify-sdk Show documentation
Show all versions of shopify-sdk Show documentation
Java SDK for Shopify REST API.
package com.shopify.model;
import java.util.LinkedList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.shopify.model.adapters.EscapedStringAdapter;
import com.shopify.model.adapters.EscapedStringsAdapter;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Option {
private String id;
@XmlElement(name = "product_id")
private String productId;
@XmlJavaTypeAdapter(EscapedStringAdapter.class)
private String name;
private int position;
@XmlJavaTypeAdapter(EscapedStringsAdapter.class)
private List values = new LinkedList<>();
public String getId() {
return id;
}
public void setId(final String id) {
this.id = id;
}
public String getProductId() {
return productId;
}
public void setProductId(final String productId) {
this.productId = productId;
}
public String getName() {
return name;
}
public void setName(final String name) {
this.name = name;
}
public int getPosition() {
return position;
}
public void setPosition(final int position) {
this.position = position;
}
public List getValues() {
return values;
}
public void setValues(final List values) {
this.values = values;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy