Package org.zeroexchange.model.resource.good

Examples of org.zeroexchange.model.resource.good.UnitOfMeasure


    public String getResourceUOM(Resource resource) {
        if(resource == null) {
            return unknownUOMKey;
        }
        if(resource instanceof GoodResource) {
            UnitOfMeasure uom = ((GoodResource)resource).getUnitOfMeasure();
            return uom == null ? unknownUOMKey : uom.name();
        } else if(resource instanceof ServiceResource) {
            return sessionUOMKey;
        } else if(resource instanceof MoneyResource) {
            ZECurrency currency = ((MoneyResource)resource).getCurrency();
            return currency == null ? unknownUOMKey : currency.name();
View Full Code Here

TOP

Related Classes of org.zeroexchange.model.resource.good.UnitOfMeasure

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.