Package com.amazon.ion
Interface IonText
- All Known Subinterfaces:
_Private_IonSymbol
,IonString
,IonSymbol
Common functionality of Ion
string
and symbol
types.
WARNING: This interface should not be implemented or extended by code outside of this library.
-
Field Summary
Fields inherited from interface com.amazon.ion.IonValue
EMPTY_ARRAY
-
Method Summary
Methods inherited from interface com.amazon.ion.IonValue
accept, addTypeAnnotation, clearTypeAnnotations, equals, getContainer, getFieldId, getFieldName, getFieldNameSymbol, getSymbolTable, getSystem, getType, getTypeAnnotations, getTypeAnnotationSymbols, hashCode, hasTypeAnnotation, isNullValue, isReadOnly, makeReadOnly, removeFromContainer, removeTypeAnnotation, setTypeAnnotations, setTypeAnnotationSymbols, topLevelValue, toPrettyString, toString, toString, writeTo
-
Method Details
-
stringValue
String stringValue()Gets the characters of this text value.- Returns:
- the text of this Ion value, or
null
ifthis.isNullValue()
. - Throws:
UnknownSymbolException
- if this is a symbol with unknown text.- See Also:
-
setValue
Changes the content.- Parameters:
value
- the new value of this text value; may benull
to make this an Ion null value.
-
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 instanceIonValue.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 useValueFactory.clone(IonValue)
instead.- Specified by:
clone
in interfaceIonValue
- Throws:
UnknownSymbolException
- if any part of this value has unknown text but known Sid for its field name, annotation or symbol.
-