Module jonix.onix3

Class RelatedWork

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

public class RelatedWork extends Object implements OnixComposite.OnixSuperComposite, Serializable

Related work composite (content item)

A group of data elements which together describe a work which has a specified relationship to a content item. Optional and repeatable.

Reference name <RelatedWork>
Short tag <relatedwork>
Cardinality 0…n

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • RelatedWork

      public RelatedWork()
    • RelatedWork

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

      public void ifExists(Consumer<RelatedWork> 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
    • workRelationCode

      public WorkRelationCode workRelationCode()

      An ONIX code which identifies the nature of the relationship between a product and a work. Mandatory in each occurrence of the <RelatedWork> composite, and non-repeating.

      Jonix-Comment: this field is required
    • workIdentifiers

      A group of data elements which together define an identifier of a work in accordance with a specified scheme. Mandatory in each occurrence of the <RelatedWork> composite, and repeatable if two or more identifiers for the same work are sent using different identifier schemes (eg proprietary ID and DOI).

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