Module jonix.onix3

Class AgentIdentifier

java.lang.Object
com.tectonica.jonix.onix3.AgentIdentifier
All Implemented Interfaces:
OnixComposite, OnixComposite.OnixDataComposite<JonixAgentIdentifier>, OnixComposite.OnixDataCompositeWithKey<JonixAgentIdentifier,SupplierIdentifierTypes>, OnixTag, Serializable

Agent identifier composite

A group of data elements together defining the identifier of an agent or local publisher in accordance with a specified scheme. Optional, but each occurrence of the <PublisherRepresentative> composite must carry either at least one agent identifier, or an <AgentName>. Repeatable only if two or more identifiers are sent using different schemes.

Reference name <AgentIdentifier>
Short tag <agentidentifier>
Cardinality 0…n

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • AgentIdentifier

      public AgentIdentifier()
    • AgentIdentifier

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

      public void ifExists(Consumer<AgentIdentifier> 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
    • agentIDType

      public AgentIDType agentIDType()

      An ONIX code identifying the scheme from which the identifier in the <IDValue> element is taken. Mandatory in each occurrence of the <AgentIdentifier> composite, and non-repeating.

      Jonix-Comment: this field is required
    • idValue

      public IDValue idValue()

      An identifier of the type specified in the <AgentIDType> element. Mandatory in each occurrence of the <AgentIdentifier> composite, and non-repeating.

      Jonix-Comment: this field is required
    • idTypeName

      public IDTypeName idTypeName()

      A name which identifies a proprietary identifier scheme (ie a scheme which is not a standard and for which there is no individual ID type code). Must be included when, and only when, the code in the <AgentIDType> element indicates a proprietary scheme. Optional and non-repeating.

      Jonix-Comment: this field is optional
    • asStruct

      public JonixAgentIdentifier asStruct()
      Specified by:
      asStruct in interface OnixComposite.OnixDataComposite<JonixAgentIdentifier>
    • structKey

      public SupplierIdentifierTypes structKey()
      Specified by:
      structKey in interface OnixComposite.OnixDataCompositeWithKey<JonixAgentIdentifier,SupplierIdentifierTypes>