Package com.persequor.event
Class QuantityElement
java.lang.Object
com.persequor.event.QuantityElement
- All Implemented Interfaces:
- Model
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanRequired propertyOptional property.Optional property.inthashCode()booleanmatchExample(QuantityElement example) static QuantityElementstatic QuantityElementof(String epcClass, BigDecimal quantity) static QuantityElementof(String epcClass, BigDecimal quantity, String unitOfMeasure) voidsetEpcClass(String epcClass) voidsetQuantity(BigDecimal quantity) voidsetUnitOfMeasure(String unitOfMeasure) toString()
- 
Constructor Details- 
QuantityElementpublic QuantityElement()
 
- 
- 
Method Details- 
of
- 
of
- 
of
- 
getEpcClassRequired 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:
 
- 
getQuantityOptional 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:
 
- 
getUnitOfMeasureOptional 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
- 
hashCodepublic int hashCode()
- 
getDisplayName
- 
toString
 
-