Module jonix.onix2

Class StockQuantityCoded

java.lang.Object
com.tectonica.jonix.onix2.StockQuantityCoded
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 coded stock level without stating the exact quantity of stock. Either <StockQuantityCoded> or <OnHand> is mandatory in each occurrence of the <Stock> composite, even if the onhand quantity is zero. Non-repeating.

Reference name <StockQuantityCoded>
Short tag <stockquantitycoded>

This tag may be included in the following composites:

Possible placements within ONIX message:

Since:
Onix-2.13
See Also:
  • Field Details

  • Constructor Details

    • StockQuantityCoded

      public StockQuantityCoded()
    • StockQuantityCoded

      public StockQuantityCoded(Element element)
  • 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 interface OnixComposite
    • exists

      public boolean exists()
      Description copied from interface: OnixTag
      indicates whether this tag exists in the ONIX record
      Specified by:
      exists in interface OnixTag
      Returns:
      whether this tag (<StockQuantityCoded> or <stockquantitycoded>) is explicitly provided in the ONIX XML
    • ifExists

      public void ifExists(Consumer<StockQuantityCoded> action)
    • getXmlElement

      public Element getXmlElement()
      Description copied from interface: OnixComposite
      For advanced use-cases only.
      Specified by:
      getXmlElement in interface OnixComposite
      Returns:
      native representation of the XML element underlying to this tag
    • stockQuantityCodeType

      public StockQuantityCodeType 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

      public StockQuantityCode 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

      public StockQuantityCodeTypeName stockQuantityCodeTypeName()

      A name that identifies a proprietary stock quantity coding scheme 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

      public JonixStockQuantityCoded asStruct()
      Specified by:
      asStruct in interface OnixComposite.OnixDataComposite<JonixStockQuantityCoded>
    • structKey

      public StockQuantityCodeTypes structKey()
      Specified by:
      structKey in interface OnixComposite.OnixDataCompositeWithKey<JonixStockQuantityCoded,StockQuantityCodeTypes>