Package com.persequor.extension.frontend
Class EnrichedQuantity
java.lang.Object
com.persequor.extension.frontend.EnrichedElement
com.persequor.extension.frontend.EnrichedQuantity
-
Field Summary
Fields inherited from class com.persequor.extension.frontend.EnrichedElement
epcClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional property.getType()
Optional property.boolean
matches
(EnrichedEpc other) boolean
matches
(EnrichedQuantity other) void
setQuantity
(BigDecimal quantity) void
setUnitOfMeasure
(String unitOfMeasure) Methods inherited from class com.persequor.extension.frontend.EnrichedElement
addAttribute, getAttributes, getEpcClass, getHumanReadable, merge, setEpcClass, setHumanReadable
-
Constructor Details
-
EnrichedQuantity
-
-
Method Details
-
getQuantity
Optional property. A number that specifies how many or how much of the specified EPCClass is denoted by this QuantityElement. The quantity may be omitted to indicate that the quantity is unknown or not specified. If quantity is omitted, then unitOfMeasure SHALL be omitted as well.- Returns:
- quantity
-
setQuantity
- Parameters:
quantity
- quantity value- See Also:
-
getUnitOfMeasure
Optional property. If present, specifies a unit of measure by which the specified quantity is to be interpreted as a physical measure, specifying how much of the specified EPCClass is denoted by this QuantityElement. The unitOfMeasure SHALL be omitted if quantity is omitted.- Returns:
- unit of measure
-
setUnitOfMeasure
- Parameters:
unitOfMeasure
- unit of measure- See Also:
-
getType
- Specified by:
getType
in classEnrichedElement
-
matches
-
matches
-