Top Fields Constructors Methods
com.amazon.ion.impl.lite

pack-priv abstract Class IonTextLite

extends IonValueLite
implements IonText
Class Inheritance
All Implemented Interfaces
com.amazon.ion.IonText, com.amazon.ion.IonValue, java.lang.Cloneable
Known Direct Subclasses
com.amazon.ion.impl.lite.IonStringLite, com.amazon.ion.impl.lite.IonSymbolLite
Imports
com.amazon.ion.IonText

Field Summary

Modifier and TypeField and Description
protected String
Inherited from com.amazon.ion.impl.lite.IonValueLite:
_annotations_context_fieldNameCONTAINER_STACK_INITIAL_CAPACITYELEMENT_SHIFTIS_AUTO_CREATEDIS_BOOL_TRUEIS_IVMIS_LOCKEDIS_NULL_VALUEIS_SYMBOL_ID_PRESENTIS_SYMBOL_PRESENTIS_SYSTEM_VALUE

Constructor Summary

AccessConstructor and Description
protected
IonTextLite(ContainerlessContext context, boolean isNull)

pack-priv
IonTextLite(IonTextLite existing, IonContext context)

Method Summary

Modifier and TypeMethod and Description
protected final String

Returns:

null iff isNullValue()
_get_value
()

protected final void
_set_value(String value)

Must call checkForLock() first.

public abstract IonTextLite
clone()

Redeclares com.amazon.ion.IonText.clone, com.amazon.ion.IonValue.clone.

Implements abstract com.amazon.ion.impl.lite.IonValueLite.clone.

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

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

Implements com.amazon.ion.IonText.setValue.

Changes the content.

public String
stringValue()

Implements com.amazon.ion.IonText.stringValue.

Gets the characters of this text value.

Inherited from com.amazon.ion.impl.lite.IonValueLite:
_elementid_elementid_getMetadata_isAutoCreated_isAutoCreated_isBoolTrue_isBoolTrue_isIVM_isIVM_isLocked_isLocked_isNullValue_isNullValue_isSymbolIdPresent_isSymbolIdPresent_isSymbolPresent_isSymbolPresent_isSystemValue_isSystemValue_setMetadataacceptaddTypeAnnotationattemptClearSymbolIDValuescascadeSIDPresentToContextRootcheckAnnotationsForSidscheckForLockclearSymbolIDValuesclearTypeAnnotationscopyFieldNamedetachFromContainerdumpequalsfindTypeAnnotationgetAssignedSymbolTablegetContainergetContextgetElementIdgetFieldIdgetFieldNamegetFieldNameIdgetFieldNameSymbolgetFieldNameSymbolgetKnownFieldNameSymbolgetSymbolTablegetSystemgetTypegetTypeAnnotationsgetTypeAnnotationSymbolsgetTypeAnnotationSymbolsgetTypeSlowhashCodehashSignaturehashTypeAnnotationshasTypeAnnotationisNullValueisReadOnlymakeReadOnlymakeReadOnlyInternalremoveFromContainerremoveTypeAnnotationscalarHashCodesetContextsetFieldNamesetFieldNameSymbolsetSymbolTablesetTypeAnnotationssetTypeAnnotationSymbolsshallowClonetopLevelValuetoPrettyStringtoStringtoStringvalidatevalidateThisNotNullwriteBodyTowriteTowriteTo

Field Detail

_text_valueback to summary
protected String _text_value

Constructor Detail

IonTextLiteback to summary
protected IonTextLite(ContainerlessContext context, boolean isNull)
IonTextLiteback to summary
pack-priv IonTextLite(IonTextLite existing, IonContext context)

Method Detail

_get_valueback to summary
protected final String _get_value()
Returns:String

null iff isNullValue()

_set_valueback to summary
protected final void _set_value(String value)

Must call checkForLock() first.

cloneback to summary
public abstract IonTextLite clone()

Redeclares com.amazon.ion.IonText.clone, com.amazon.ion.IonValue.clone.

Implements abstract com.amazon.ion.impl.lite.IonValueLite.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.

Returns:IonTextLite

Doc from java.lang.Object.clone.

a clone of this instance.

Annotations
@Override
setValueback to summary
public void setValue(String value)

Implements com.amazon.ion.IonText.setValue.

Doc from com.amazon.ion.IonText.setValue.

Changes the content.

Parameters
value:String

the new value of this text value; may be null to make this an Ion null value.

stringValueback to summary
public String stringValue()

Implements com.amazon.ion.IonText.stringValue.

Doc from com.amazon.ion.IonText.stringValue.

Gets the characters of this text value.

Returns:String

the text of this Ion value, or null if this.isNullValue().