Class EnrichedQuantity

java.lang.Object
com.persequor.extension.frontend.EnrichedElement
com.persequor.extension.frontend.EnrichedQuantity

public class EnrichedQuantity extends EnrichedElement
  • Constructor Details

  • Method Details

    • getQuantity

      @Nullable public BigDecimal 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

      public void setQuantity(BigDecimal quantity)
      Parameters:
      quantity - quantity value
      See Also:
    • getUnitOfMeasure

      @Nullable public String 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

      public void setUnitOfMeasure(String unitOfMeasure)
      Parameters:
      unitOfMeasure - unit of measure
      See Also:
    • getType

      public String getType()
      Specified by:
      getType in class EnrichedElement
    • matches

      public boolean matches(EnrichedQuantity other)
    • matches

      public boolean matches(EnrichedEpc other)