Module jonix.onix3

Class ResourceRole

java.lang.Object
com.tectonica.jonix.onix3.ResourceRole
All Implemented Interfaces:
OnixElement<String>, OnixTag, Serializable

public class ResourceRole extends Object implements OnixElement<String>, Serializable

Resource role code

An ONIX code which identifies the role or purpose of the resource file which is specified in <ResourceFileLink>. Optional and non-repeating, and may only be used when <ResourceFileLink> is present.

Format Fixed length, three characters: one letter followed by two digits
Codelist List 251
Reference name <ResourceRole>
Short tag <x566>
Cardinality 0…1
Example <ResourceRole>01</ResourceRole>

This tag may be included in the following composites:

Possible placements within ONIX message:

Since:
Onix-3.08
See Also:
  • Field Details

    • refname

      public static final String refname
      See Also:
    • shortname

      public static final String shortname
      See Also:
    • datestamp

      public String datestamp
      (type: dt.DateOrDateTime)
    • sourcename

      public String sourcename
      (type: dt.NonEmptyString)
    • sourcetype

      public RecordSourceTypes sourcetype
    • value

      public String value
      This is the raw content of ResourceRole. Could be null if exists() == false. Use OnixElement.value() instead if you want to get this as an Optional.

      Raw Format: Fixed length, three characters: one letter followed by two digits

      (type: List251)

    • EMPTY

      public static final ResourceRole EMPTY
  • Constructor Details

    • ResourceRole

      public ResourceRole()
    • ResourceRole

      public ResourceRole(Element element)
  • Method Details