com.bigcommerce.catalog.models.WeightUnitsAdapter 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 WeightUnitsAdapter extends XmlAdapter {
@Override
public WeightUnits unmarshal(final String weightUnit) throws Exception {
return WeightUnits.toEnum(weightUnit);
}
@Override
public String marshal(final WeightUnits weightUnit) throws Exception {
return weightUnit.toString();
}
}