Interface IonString

All Superinterfaces:
Cloneable, IonText, IonValue

public interface IonString extends IonText
An Ion string value.

WARNING: This interface should not be implemented or extended by code outside of this library.

  • Method Details

    • stringValue

      String stringValue()
      Gets the characters of this string.
      Specified by:
      stringValue in interface IonText
      Returns:
      the text of the string, or null if this is null.string.
      See Also:
    • setValue

      void setValue(String value)
      Changes the value of this string.
      Specified by:
      setValue in interface IonText
      Parameters:
      value - the new value of this string; may be null to make this null.string.
    • clone

      Description copied from interface: IonValue
      Creates a copy of this value and all of its children. The cloned value may use the same shared symbol tables, but it will have an independent local symbol table if necessary. The cloned value will be modifiable regardless of whether this instance IonValue.isReadOnly().

      The cloned value will be created in the context of the same ValueFactory as this instance; if you want a copy using a different factory, then use ValueFactory.clone(IonValue) instead.

      Specified by:
      clone in interface IonText
      Specified by:
      clone in interface IonValue
      Throws:
      UnknownSymbolException - if any part of this value has unknown text but known Sid for its field name, annotation or symbol.