com.bigcommerce.catalog.models.StatusAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bigcommerce-sdk Show documentation
Show all versions of bigcommerce-sdk Show documentation
Java SDK for BigCommerce REST APIs
The newest version!
package com.bigcommerce.catalog.models;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class StatusAdapter extends XmlAdapter {
@Override
public Status unmarshal(String status) throws Exception {
return Status.toEnum(status);
}
@Override
public String marshal(Status status) throws Exception {
return status.toString();
}
}