Module jonix.onix2

Class Publisher

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

public class Publisher extends Object implements OnixComposite.OnixSuperComposite, Serializable

Publisher composite

A repeatable group of data elements which together identify an entity which is associated with the publishing of a product. The composite will allow additional publishing roles to be introduced without adding new fields. Each occurrence of the composite must carry either a name code or a name or both.

Reference name <Publisher>
Short tag <publisher>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • Publisher

      public Publisher()
    • Publisher

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

      public void ifExists(Consumer<Publisher> 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
    • nameCodeType

      public NameCodeType nameCodeType()

      An ONIX code which identifies the scheme from which the value in the <NameCodeValue> element is taken. Optional and non-repeating, but mandatory if the <Publisher> composite does not carry a <PublisherName>.

      Jonix-Comment: this field is required
    • nameCodeValue

      public NameCodeValue nameCodeValue()

      A code value taken from the scheme specified in <NameCodeType>. Mandatory if and only if <NameCodeType> is present, and non-repeating.

      Jonix-Comment: this field is required
    • publishingRole

      public PublishingRole publishingRole()

      An ONIX code which identifies a role played by an entity in the publishing of a product. Optional and non-repeating. The default if the element is omitted is “publisher”.

      Jonix-Comment: this field is optional
    • publisherName

      public PublisherName publisherName()

      The name of an entity associated with the publishing of a product. Mandatory if there is no name code in an occurrence of the <Publisher> composite, and optional if a name code is included. Non-repeating.

      Jonix-Comment: this field is optional
    • nameCodeTypeName

      public NameCodeTypeName nameCodeTypeName()

      A name which identifies a proprietary name code when the code in <NameCodeType> indicates a proprietary scheme, eg a bibliographic agency’s own code. Optional and non-repeating.

      Jonix-Comment: this field is optional
    • websites

      A repeatable group of data elements which together identify and provide pointers to a website which is related to the publisher identified in an occurrence of the <Publisher> composite.

      Jonix-Comment: this list may be empty