ebay.apis.shopping.eblbasecomponents.ReviewSortCodeType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebay-shopping-api Show documentation
Show all versions of ebay-shopping-api Show documentation
This Java client enables you to use Java to make API calls in the eBay Shopping API, which is an XML API.
This maven build is simply the Apache CXF generated client code for the Shopping API WSDL.
The newest version!
package ebay.apis.shopping.eblbasecomponents;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ReviewSortCodeType.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ReviewSortCodeType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="CreationTime"/>
* <enumeration value="CustomCode"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ReviewSortCodeType")
@XmlEnum
public enum ReviewSortCodeType {
/**
*
* Sorts reviews by creation time, in ascending or descending order.
*
*
*/
@XmlEnumValue("CreationTime")
CREATION_TIME("CreationTime"),
/**
*
* Reserved for values that are not available in the version of the schema
* you are using. If eBay adds a new value to this code type as of a
* newer version, we return CustomCode instead when you specify a
* lower request version.
*
*
*/
@XmlEnumValue("CustomCode")
CUSTOM_CODE("CustomCode");
private final String value;
ReviewSortCodeType(String v) {
value = v;
}
public String value() {
return value;
}
public static ReviewSortCodeType fromValue(String v) {
for (ReviewSortCodeType c: ReviewSortCodeType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}