fr.etai.xat2v2.util
Class PriceUtil
java.lang.Object
fr.etai.xat2v2.util.PriceUtil
public final class PriceUtil
- extends Object
Method Summary |
static boolean |
isUnitPrice(Price price)
Checks if this price is a unit price, analyzing
its breakdown list content. |
static boolean |
matchType(Price price,
String ref)
Checks if the price has, in its breakdownList,
any classification from ETAI:price dictionary with
the given ref. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isUnitPrice
public static boolean isUnitPrice(Price price)
- Checks if this price is a unit price, analyzing
its breakdown list content.
- Parameters:
price
-
- Returns:
matchType
public static boolean matchType(Price price,
String ref)
- Checks if the price has, in its breakdownList,
any classification from ETAI:price dictionary with
the given ref.
- Parameters:
price
- ref
-
- Returns:
Copyright © 2012. All Rights Reserved.