Package com.persequor.event
Class QuantityElement
java.lang.Object
com.persequor.event.QuantityElement
- All Implemented Interfaces:
Model
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Required propertyOptional property.Optional property.int
hashCode()
boolean
matchExample
(QuantityElement example) static QuantityElement
static QuantityElement
of
(String epcClass, BigDecimal quantity) static QuantityElement
of
(String epcClass, BigDecimal quantity, String unitOfMeasure) void
setEpcClass
(String epcClass) void
setQuantity
(BigDecimal quantity) void
setUnitOfMeasure
(String unitOfMeasure) toString()
-
Constructor Details
-
QuantityElement
public QuantityElement()
-
-
Method Details
-
of
-
of
-
of
-
getEpcClass
Required propertyA class-level identifier for the class to which the specified quantity of objects belongs.
- Returns:
- EPC class
-
setEpcClass
- Parameters:
epcClass
- epcClass value- See Also:
-
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:
-
equals
-
matchExample
-
hashCode
public int hashCode() -
getDisplayName
-
toString
-