Interface IonSymbol

  • All Superinterfaces:
    java.lang.Cloneable, IonText, IonValue
    All Known Subinterfaces:
    _Private_IonSymbol

    public interface IonSymbol
    extends IonText
    An Ion symbol value.

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

    • Method Detail

      • setValue

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

        IonSymbol clone()
                 throws UnknownSymbolException
        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.