Module jonix.onix2

Class ToSAN

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

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

Addressee SAN

A US book trade Standard Address Number which identifies the addressee of an ONIX message. Optional and non-repeating.

Format Fixed-length, seven characters. The first six are numeric digits, and the seventh is a check character which may be a numeric digit or letter X.
Reference name <ToSAN>
Short tag <m177>
Example <ToSAN>978847X</ToSAN>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

    • refname

      public static final String refname
      See Also:
    • shortname

      public static final String shortname
      See Also:
    • textformat

      public TextFormats textformat
    • textcase

      public TextCaseFlags textcase
    • language

      public Languages language
    • transliteration

      public TransliterationSchemes transliteration
    • datestamp

      public String datestamp
      (type: DateOrDateTime)
    • sourcetype

      public RecordSourceTypes sourcetype
    • sourcename

      public String sourcename
    • value

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

      Raw Format: Fixed-length, seven characters. The first six are numeric digits, and the seventh is a check character which may be a numeric digit or letter X.

      (type: NonEmptyString)

    • EMPTY

      public static final ToSAN EMPTY
  • Constructor Details

    • ToSAN

      public ToSAN()
    • ToSAN

      public ToSAN(Element element)
  • Method Details

    • __v

      public String __v()
      Internal API, use the OnixElement.value() method or the OnixElement.value() field instead
      Specified by:
      __v in interface OnixElement<String>
    • 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 (<ToSAN> or <m177>) is explicitly provided in the ONIX XML
    • ifExists

      public void ifExists(Consumer<ToSAN> action)