Module jonix.onix2

Class NotForSale

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

public class NotForSale extends Object implements OnixComposite.OnixSuperComposite, Serializable

Not for sale composite

A repeatable group of data elements which together identify a country or countries in which the product is not for sale, together with the ISBN and/or other product identifier and/or the name of the publisher of the same work in the specified country/ies.

Reference name <NotForSale>
Short tag <notforsale>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • NotForSale

      public NotForSale()
    • NotForSale

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

      public void ifExists(Consumer<NotForSale> 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
    • rightsCountrys

      public ListOfOnixElement<RightsCountry,Set<Countrys>> rightsCountrys()

      One or more ISO standard codes identifying a country. Successive codes may be separated by spaces. Thus, a single occurrence of the element can carry an unlimited number of country codes, for countries for which details of another publisher’s product are given. For upwards compatibility, the element remains repeatable, so that multiple countries can also be listed as multiple occurrences of the whole element. At least one occurrence of <RightsCountry> or <RightsTerritory> is mandatory in each occurrence of the<NotForSale> composite.

      Jonix-Comment: this list is required to contain at least one item
    • rightsTerritory

      public RightsTerritory rightsTerritory()

      One or more ONIX codes identifying a territory which is not a country, but which is precisely defined in geographical terms, eg World, Northern Ireland, Australian National Territory. Successive codes are separated by spaces, so that the element can carry an unlimited number of territory codes, for territories for which details of another publisher’s product are given. Optional and non-repeating.

      Jonix-Comment: this field is optional
    • isbn

      public ISBN isbn()

      10-character ISBN of the equivalent product which is available in the country/ies specified in <RightsCountry>. Optional and non-repeating. The <ProductIdentifier> composite provides a more general method of handling this and other product codes, and is to be preferred. The <ISBN> element is on no account to be used to carry a 13-digit ISBN.

      Jonix-Comment: this field is optional
    • ean13

      public EAN13 ean13()

      EAN.UCC-13 number of the equivalent product available in the country/ies specified in <RightsCountry>. Optional and non-repeating. The <ProductIdentifier> composite provides a more general method of handling this and other product codes, and is to be preferred.

      Jonix-Comment: this field is optional
    • publisherName

      public PublisherName publisherName()

      The full name of the publisher of the equivalent product which is available in the country/ies specified in <RightsCountry>. Optional and non-repeating. Except where they are essential to the recognized form of the name, it is recommended that suffixes denoting incorporation (“Co”, “Inc”, “Ltd”, “SA”, “GmbH”) should be omitted.

      Jonix-Comment: this field is optional
    • productIdentifiers

      A repeatable group of data elements which together define the identifier of a product in accordance with a specified scheme, and allowing new types of product identifier to be included without defining additional data elements. See notes on the <ProductIdentifier> composite in section PR.2 for details of the handling of ISBN-13.

      Jonix-Comment: this list may be empty