Top Description Methods
com.amazon.ion

public Interface IonString

extends IonText
Known Direct Implementers
com.amazon.ion.impl.lite.IonStringLite

An Ion string value.

Warning

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

Method Summary

Modifier and TypeMethod and Description
public IonString
clone()

Redeclares com.amazon.ion.IonText.clone.

Creates a copy of this value and all of its children.

public void
setValue(String
the new value of this string; may be null to make this null.string.
value
)

Redeclares com.amazon.ion.IonText.setValue.

Changes the value of this string.

public String

Returns:

the text of the string, or null if this is null.string.
stringValue
()

Redeclares com.amazon.ion.IonText.stringValue.

Gets the characters of this string.

Method Detail

cloneback to summary
public IonString clone() throws UnknownSymbolException

Redeclares com.amazon.ion.IonText.clone.

Doc from com.amazon.ion.IonValue.clone.

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 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.

Exceptions
UnknownSymbolException:
if any part of this value has unknown text but known Sid for its field name, annotation or symbol.
setValueback to summary
public void setValue(String value)

Redeclares com.amazon.ion.IonText.setValue.

Changes the value of this string.

Parameters
value:String

the new value of this string; may be null to make this null.string.

stringValueback to summary
public String stringValue()

Redeclares com.amazon.ion.IonText.stringValue.

Gets the characters of this string.

Returns:String

the text of the string, or null if this is null.string.