Package com.amazon.ion.impl
Interface _Private_IonValue
-
- All Superinterfaces:
java.lang.Cloneable,IonValue
- All Known Subinterfaces:
_Private_IonDatagram
public interface _Private_IonValue extends IonValue
NOT FOR APPLICATION USE!
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface_Private_IonValue.SymbolTableProviderProvides an IonValue's SymbolTable.
-
Field Summary
-
Fields inherited from interface com.amazon.ion.IonValue
EMPTY_ARRAY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddump(java.io.PrintWriter out)intfindTypeAnnotation(java.lang.String annotation)Returns the given annotation's index in the value's annotations list, or -1 if not present.SymbolTablegetAssignedSymbolTable()Returns the symbol table that is directly associated with this value, without doing any recursive lookup.intgetElementId()SymbolTokengetFieldNameSymbol(_Private_IonValue.SymbolTableProvider symbolTableProvider)OverridesIonValue.getFieldNameSymbol()for use when there exists a SymbolTableProvider implementation for this IonValue.SymbolToken[]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.java.lang.Stringvalidate()-
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 Detail
-
getElementId
int getElementId()
- Returns:
- int the offset of this value in its containers member list
-
getFieldNameSymbol
SymbolToken getFieldNameSymbol(_Private_IonValue.SymbolTableProvider symbolTableProvider)
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:
IonValue.getFieldNameSymbol()
-
getTypeAnnotationSymbols
SymbolToken[] getTypeAnnotationSymbols(_Private_IonValue.SymbolTableProvider symbolTableProvider)
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:
IonValue.getTypeAnnotationSymbols()
-
findTypeAnnotation
int findTypeAnnotation(java.lang.String annotation)
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
void setSymbolTable(SymbolTable symbols)
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:
java.lang.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:
java.lang.UnsupportedOperationException- if this is anIonDatagram.
-
dump
void dump(java.io.PrintWriter out)
-
validate
java.lang.String validate()
-
-