Module jonix.onix3

Class NoResource

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

public class NoResource extends Object implements OnixFlag, Serializable

“No resource” indicator

An empty element that provides a positive indication that there is no alternative ‘generic’ resource to be used in cases where there is a vendor-specific resource (indicated using <SalesOutlet>) with the same <SequenceNumber> specified within the manifest. The empty <NoResource/> must be used – and must only be used – when no <ResourceFileLink> is present.

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

This tag may be included in the following composites:

Possible placements within ONIX message:

Since:
Onix-3.08
See Also:
  • Field Details

  • Constructor Details

    • NoResource

      public NoResource()
    • NoResource

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

      public void ifExists(Consumer<NoResource> action)