CostAllocationMethod.java
package com.tradecloud.domain.costing;
import javax.xml.bind.annotation.XmlEnum;
/**
* How costs are allocated.
*/
@XmlEnum
public enum CostAllocationMethod {
VALUE("Value", "Calculate Unit Landed Cost Based on Item Value", true),
VOLUME("Volume", "Calculate Unit Landed Cost Based on Item Volume", true),
WEIGHT("Weight", "Calculate Unit Landed Cost Based on Item Weight", true);
private final transient String name;
private final transient boolean selectable;
private final transient String description;
private CostAllocationMethod(String name, String description, boolean selectable) {
this.name = name;
this.description = description;
this.selectable = selectable;
}
public String getName() {
return name;
}
@Override
public String toString() {
return name;
}
public boolean isSelectable() {
return selectable;
}
public String getDescription() {
return description;
}
}