java.lang.Object
com.tectonica.jonix.onix2.ItemQuantity
- All Implemented Interfaces:
OnixElement<String>
,OnixTag
,Serializable
Contained item quantity
For filled dumpbins and counter packs, and for retail packs containing a number of copies of the same item, the number of copies of the specified item contained in the pack. <ItemQuantity> is used to state a quantity of identical items, when a pack contains either a quantity of a single item, or a quantity of each of two or more different items (eg a dumpbin carrying copies of two different books, or a classroom pack containing a teacher’s text and twenty student texts). Optional and non-repeating.
Format | Variable-length integer, maximum four digits |
Reference name | <ItemQuantity> |
Short tag | <b015> |
Example | <ItemQuantity>24</ItemQuantity> |
- See Also:
-
Field Summary
Modifier and TypeFieldDescription(type: DateOrDateTime)static final ItemQuantity
static final String
static final String
This is the raw content of ItemQuantity. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription__v()
Internal API, use theOnixElement.value()
method or theOnixElement.value()
field insteadboolean
exists()
indicates whether this tag exists in the ONIX recordvoid
ifExists
(Consumer<ItemQuantity> action) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tectonica.jonix.common.OnixElement
equal, is, isNull, value
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
textformat
-
textcase
-
language
-
transliteration
-
datestamp
(type: DateOrDateTime) -
sourcetype
-
sourcename
-
value
This is the raw content of ItemQuantity. Could be null ifexists() == false
. UseOnixElement.value()
instead if you want to get this as anOptional
.Raw Format: Variable-length integer, maximum four digits
(type: NonEmptyString)
-
EMPTY
-
-
Constructor Details
-
ItemQuantity
public ItemQuantity() -
ItemQuantity
-
-
Method Details
-
__v
Internal API, use theOnixElement.value()
method or theOnixElement.value()
field instead- Specified by:
__v
in interfaceOnixElement<String>
-
exists
public boolean exists()Description copied from interface:OnixTag
indicates whether this tag exists in the ONIX record -
ifExists
-