- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixDataComposite<JonixStockQuantityCoded>
,OnixComposite.OnixDataCompositeWithKey<JonixStockQuantityCoded,
,StockQuantityCodeTypes> OnixTag
,Serializable
Stock quantity coded composite
A group of data elements which together specify a stock level in a coded way without stating the exact quantity of stock. Either <StockQuantityCoded> or <OnHand> is mandatory in each occurrence of the <Stock> composite, even if the quantity on hand is zero. Repeatable, so that it is possible to provide coded quantities on hand, quantities on order etc separately.
Reference name | <StockQuantityCoded> |
Short tag | <stockquantitycoded> |
Cardinality | 0…n |
- <
Stock
>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tectonica.jonix.common.OnixComposite
OnixComposite.OnixDataComposite<V extends JonixStruct>, OnixComposite.OnixDataCompositeUncommon, OnixComposite.OnixDataCompositeWithKey<V extends JonixKeyedStruct<K>,
K extends Enum<K> & OnixCodelist>, OnixComposite.OnixSuperComposite -
Field Summary
Modifier and TypeFieldDescription(type: dt.DateOrDateTime)static final StockQuantityCoded
static final String
static final String
(type: dt.NonEmptyString) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.asStruct()
boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
ifExists
(Consumer<StockQuantityCoded> action) A code value taken from the scheme specified in the <StockQuantityCodeType> element.An ONIX code identifying the scheme from which the value in the <StockQuantityCode> element is taken.A name that identifies a proprietary stock quantity coding scheme (ie a scheme which is not a standard and for which there is no individual ID type code).
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
EMPTY
-
-
Constructor Details
-
StockQuantityCoded
public StockQuantityCoded() -
StockQuantityCoded
-
-
Method Details
-
_initialize
public void _initialize()Description copied from interface:OnixComposite
This is an internal API. Since Jonix 8.0, composite objects are being populated lazily. This method initiates the population process, and is invoked internally by the accessor APIs of the composites- Specified by:
_initialize
in interfaceOnixComposite
-
exists
public boolean exists()Description copied from interface:OnixTag
indicates whether this tag exists in the ONIX record -
ifExists
-
getXmlElement
Description copied from interface:OnixComposite
For advanced use-cases only.- Specified by:
getXmlElement
in interfaceOnixComposite
- Returns:
- native representation of the XML element underlying to this tag
-
stockQuantityCodeType
An ONIX code identifying the scheme from which the value in the <StockQuantityCode> element is taken. Mandatory in each occurrence of the <StockQuantityCoded> composite, and non-repeating.
Jonix-Comment: this field is required -
stockQuantityCode
A code value taken from the scheme specified in the <StockQuantityCodeType> element. Mandatory in each occurrence of the <StockQuantityCoded> composite, and non-repeating.
Jonix-Comment: this field is required -
stockQuantityCodeTypeName
A name that identifies a proprietary stock quantity coding scheme (ie a scheme which is not a standard and for which there is no individual ID type code). Must be used when, and only when the code in the <StockQuantityCodeType> element indicates a proprietary scheme, eg a wholesaler’s own code. Optional, and non-repeating.
Jonix-Comment: this field is optional -
asStruct
- Specified by:
asStruct
in interfaceOnixComposite.OnixDataComposite<JonixStockQuantityCoded>
-
structKey
- Specified by:
structKey
in interfaceOnixComposite.OnixDataCompositeWithKey<JonixStockQuantityCoded,
StockQuantityCodeTypes>
-