Module jonix.onix3

Class Text

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

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

Supporting text

The text specified in the <TextType> element. Mandatory in each occurrence of the <TextContent> composite, and repeatable when essentially identical text is supplied in multiple languages. The language attribute is optional for a single instance of <Text>, but must be included in each instance if <Text> is repeated.

Format Variable length text. XHTML is enabled in this element - see Using XHTML, HTML, XML, JSON within ONIX text fields. Note that certain Text types impose a strict limit on the number of characters, and such limits do not count the characters of any (X)HTML markup
Reference name <Text>
Short tag <d104>
Cardinality 1…n
Attributes language, textformat
Example <Text textformat="05"><ul><li>Introduction: aesthetics and modernity; aesthetics and post-modernity</li><li>Part 1: Modern philosophy and the emergence of aesthetic theory - Kant: self-consciousness, knowledge and freedom; the unity of the subject; the unification of nature; the purpose of beauty; the limits of beauty</li><li>Part 2: German idealism and early German Romanticism: the 'new mythology'; the romantic 'new mythology'</li><li>Part 3: Reflections on the subject - Fichte, Holderlin and Novalis</li><li>Part 4: Schelling - art as the 'organ of philosophy': the development of consciousness; the structure of the 'system of transcendental idealism'; the aesthetic absolute; mythology, art and language; mythology, language and being</li><li>Part 5…</li></ul></Text> (Table of contents supplied as a list, with XHTML markup)
Example <d104 language="eng">'The Name of the Rose' is the author's first novel. It is a historical murder mystery set in an Italian monastery in the year 1327, and at the same time, it's an intellectual puzzle weaving semiotics, biblical analysis, medieval studies and literary theory into gripping fiction.</d104> <d104 language="ita">“Il nome della rosa” è il primo romanzo dell'autore. Si tratta di un misterioso omicidio storico ambientato in un monastero italiano nel corso dell'anno 1327, e allo stesso tempo, è un mistero intellettuale che unisce semiotica, analisi biblici, studi medievali e teoria letteraria nella narrativa avvincente.</d104> (Parallel short description text provided in two languages)

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:
    • datestamp

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

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

      public RecordSourceTypes sourcetype
    • language

      public Languages language
    • textformat

      public TextFormats textformat
    • value

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

      Raw Format: Variable length text. XHTML is enabled in this element - see Using XHTML, HTML, XML, JSON within ONIX text fields. Note that certain Text types impose a strict limit on the number of characters, and such limits do not count the characters of any (X)HTML markup

      (type: XHTML)

    • EMPTY

      public static final Text EMPTY
  • Constructor Details

    • Text

      public Text()
    • Text

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

      public void ifExists(Consumer<Text> action)