Package com.amazon.ion.impl
Interface _Private_IonValue
- All Known Subinterfaces:
_Private_IonDatagram
NOT FOR APPLICATION USE!
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProvides an IonValue's SymbolTable. -
Field Summary
Fields inherited from interface com.amazon.ion.IonValue
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(PrintWriter out) intfindTypeAnnotation(String annotation) Returns the given annotation's index in the value's annotations list, or -1 if not present.Returns the symbol table that is directly associated with this value, without doing any recursive lookup.intgetFieldNameSymbol(_Private_IonValue.SymbolTableProvider symbolTableProvider) OverridesIonValue.getFieldNameSymbol()for use when there exists a SymbolTableProvider implementation for this IonValue.getTypeAnnotationSymbols(_Private_IonValue.SymbolTableProvider symbolTableProvider) OverridesIonValue.getTypeAnnotationSymbols()for use when there exists a SymbolTableProvider implementation for this IonValue.voidsetSymbolTable(SymbolTable symbols) Makes this symbol table current for this value.validate()Methods inherited from interface com.amazon.ion.IonValue
accept, addTypeAnnotation, clearTypeAnnotations, clone, 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
-
getElementId
int getElementId()- Returns:
- int the offset of this value in its containers member list
-
getFieldNameSymbol
OverridesIonValue.getFieldNameSymbol()for use when there exists a SymbolTableProvider implementation for this IonValue.- Parameters:
symbolTableProvider- - provides this IonValue's symbol table- Returns:
- the field name SymbolToken
- See Also:
-
getTypeAnnotationSymbols
OverridesIonValue.getTypeAnnotationSymbols()for use when there exists a SymbolTableProvider implementation for this IonValue.- Parameters:
symbolTableProvider- - provides this IonValue's symbol table- Returns:
- the type annotation SymbolTokens
- See Also:
-
findTypeAnnotation
Returns the given annotation's index in the value's annotations list, or -1 if not present.- Parameters:
annotation- the annotation to find.- Returns:
- the index or -1.
-
setSymbolTable
Makes this symbol table current for this value. This may directly apply to this IonValue if this value is either loose or a top level datagram member. Or it may be delegated to the IonContainer this value is a contained in.Assigning null forces any symbol values to be resolved to strings and any associated symbol table will be removed.
- Parameters:
symbols- must be local or system table. May be null.- Throws:
UnsupportedOperationException- if this is a datagram.
-
getAssignedSymbolTable
SymbolTable getAssignedSymbolTable()Returns the symbol table that is directly associated with this value, without doing any recursive lookup. Values that are not top-level will return null as they don't actually own their own symbol table.- Throws:
UnsupportedOperationException- if this is anIonDatagram.
-
dump
-
validate
String validate()
-