Module jonix.onix3

Class MainSubject

java.lang.Object
com.tectonica.jonix.onix3.MainSubject
All Implemented Interfaces:
OnixFlag, OnixTag, Serializable

public class MainSubject extends Object implements OnixFlag, Serializable

Main subject flag

An empty element that identifies an instance of the <Subject> composite as representing the primary or main subject category for the product. The main category may be expressed in more than one subject scheme, ie there may be two or more instances of the <Subject> composite, using different schemes, each carrying the <MainSubject/> flag, so long as there is only one main category per scheme (ie per value of <SubjectSchemeIdentifier>). Optional, though for some subject schemes (eg Thema), <MainSubject/> can be vital in order to prevent potential misinterpretation of a group of subject codes, and for other schemes which by their nature only allow one code (eg Dewey), <MainSubject> is not relevant. Non-repeating in each occurrence of the <Subject> composite.

Format XML empty element
Reference name <MainSubject>
Short tag <x425>
Cardinality 0…1
Example <MainSubject/>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • MainSubject

      public MainSubject()
    • MainSubject

      public MainSubject(Element element)
  • Method Details

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

      public void ifExists(Consumer<MainSubject> action)