Module jonix.onix3

Class Market

java.lang.Object
com.tectonica.jonix.onix3.Market
All Implemented Interfaces:
OnixComposite, OnixComposite.OnixSuperComposite, OnixTag, Serializable

public class Market extends Object implements OnixComposite.OnixSuperComposite, Serializable

Market composite

A group of data elements which together give details of a geographical territory and any non-geographical sales restrictions that apply within it. Optional in terms of the schema definitions, but required in most ONIX applications. If omitted, the geographical extent of the market must be assumed to be the area defined by the sales rights.

The <Market> composite is repeatable, but in almost all cases only a single instance is required. It may be repeated if a non-geographical sales restriction applies only to a part of a geographically-defined market – for example where a product is sold throughout the European Union, but exclusive to a single retailer in France.

Reference name <Market>
Short tag <market>
Cardinality 0…n

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • Market

      public Market()
    • Market

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

      public void ifExists(Consumer<Market> 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
    • territory

      public Territory territory()

      A group of data elements which together identify a territory forming part or all of a market for which supply detail is given. Mandatory in each occurrence of the <Market> composite, and non-repeating.

      For valid combinations of <CountriesIncluded>, <RegionsIncluded> etc within <Territory>, see the notes describing the use of <Territory> within Group P.21.

      Jonix-Comment: this field is required
    • salesRestrictions

      public ListOfOnixComposite<SalesRestriction> salesRestrictions()

      A group of data elements which together identify a non-territorial sales restriction which applies within a geographical market. Optional, and repeatable if more than a single restriction applies.

      Jonix-Comment: this list may be empty