Module jonix.onix2

Class ProductWebsite

java.lang.Object
com.tectonica.jonix.onix2.ProductWebsite
All Implemented Interfaces:
OnixComposite, OnixComposite.OnixDataComposite<JonixProductWebsite>, OnixTag, Serializable

public class ProductWebsite extends Object implements OnixComposite.OnixDataComposite<JonixProductWebsite>, Serializable

Product website composite

An optional and repeatable group of data elements which together identify and provide pointers to a website which is related to the product.

Reference name <ProductWebsite>
Short tag <productwebsite>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • ProductWebsite

      public ProductWebsite()
    • ProductWebsite

      public ProductWebsite(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 (<ProductWebsite> or <productwebsite>) is explicitly provided in the ONIX XML
    • ifExists

      public void ifExists(Consumer<ProductWebsite> 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
    • productWebsiteLink

      public ProductWebsiteLink productWebsiteLink()

      A URL for a website carrying additional information related to the product, which is available to be viewed for promotional purposes. Mandatory in each occurrence of the <ProductWebsite> composite, and non-repeating.

      Jonix-Comment: this field is required
    • websiteRole

      public WebsiteRole websiteRole()

      An ONIX code which identifies the role or purpose of the website which is linked through <ProductWebsiteLink>. Optional and non-repeating.

      Jonix-Comment: this field is optional
    • productWebsiteDescription

      public ProductWebsiteDescription productWebsiteDescription()

      Free text describing the nature of the website which is linked through <ProductWebsiteLink>. Optional and non-repeating.

      Jonix-Comment: this field is optional
    • asStruct

      public JonixProductWebsite asStruct()
      Specified by:
      asStruct in interface OnixComposite.OnixDataComposite<JonixProductWebsite>