Helper for implementing curried container insertion methods such as
IonStruct#put(String).
| Modifier and Type | Field and Description |
|---|---|
| private final ValueFactory |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public <T extends IonValue> T | clone(T
the value to copy. value)Implements com. Creates a deep copy of an Ion value. |
| protected abstract void | |
| public IonBlob | newBlob(byte[]
the data for the new blob, to be copied from the
given array into the new instance.
May be value)null to create a null.blob value.Implements com. Constructs a new Ion |
| public IonBlob | newBlob(byte[]
the data for the new blob, to be copied from the
given array into the new instance.
May be value, int null to create a null.blob value.the offset within the array of the first byte to copy;
must be non-negative and no larger than offset, int bytes.length.the number of bytes to be copied from the given array;
must be non-negative and no larger than length)bytes.length - offset.Implements com. Constructs a new Ion |
| public IonBool | newBool(boolean
the new value)bool's value.Implements com. Constructs a new |
| public IonBool | newBool(Boolean
the new value)bool's value.
may be null to make null.bool.Implements com. Constructs a new |
| public IonClob | newClob(byte[]
the data for the new clob, to be copied from the
given array into the new instance.
May be value)null to create a null.clob value.Implements com. Constructs a new Ion |
| public IonClob | newClob(byte[]
the data for the new blob, to be copied from the
given array into the new instance.
May be value, int null to create a null.clob value.the offset within the array of the first byte to copy;
must be non-negative an no larger than offset, int bytes.length.the number of bytes to be copied from the given array;
must be non-negative an no larger than length)bytes.length - offset.Implements com. Constructs a new Ion |
| public IonDecimal | newDecimal(long value)
Implements com. Constructs a new Ion |
| public IonDecimal | newDecimal(double value)
Implements com. Constructs a new Ion |
| public IonDecimal | newDecimal(BigInteger value)
Implements com. Constructs a new Ion |
| public IonDecimal | newDecimal(BigDecimal value)
Implements com. Constructs a new Ion |
| public IonList | newEmptyList()
Implements com. Constructs a new empty (not null) |
| public IonSexp | newEmptySexp()
Implements com. Constructs a new empty (not null) |
| public IonStruct | newEmptyStruct()
Implements com. Constructs a new empty (not null) |
| public IonFloat | newFloat(long value)
Implements com. Constructs a new Ion |
| public IonFloat | newFloat(double value)
Implements com. Constructs a new Ion |
| public IonInt | newInt(int
the new int's value. value)Implements com. Constructs a new |
| public IonInt | newInt(long
the new int's value. value)Implements com. Constructs a new |
| public IonInt | newInt(Number
the new int's value;
may be value)null to make null.int.Implements com. Constructs a new |
| public IonList | newList(Collection<? extends IonValue>
the initial set of children. If values)null, then the new
instance will have .Implements com.
Deprecated
Constructs a new |
| public IonList | newList(IonSequence
the initial child of the new list. firstChild)Implements com. Constructs a new |
| public IonList | newList(IonValue...
the initial sequence of children. If values)null, then the new
instance will have .Implements com. Constructs a new |
| public IonList | newList(int[]
the initial set of child values. If values)null, then the new
instance will have .
Otherwise, the resulting sequence will contain new IonInts with
the given values.Implements com. Constructs a new |
| public IonList | newList(long[]
the initial set of child values. If values)null, then the new
instance will have .
Otherwise, the resulting sequence will contain new IonInts with
the given values.Implements com. Constructs a new |
| public IonNull | |
| public IonValue | newNull(IonType
must not be Java null, but it may be type)IonType#NULL.Implements com. Constructs a new Ion null value with the given type. |
| public IonBlob | newNullBlob()
Implements com. Constructs a new |
| public IonBool | newNullBool()
Implements com. Constructs a new |
| public IonClob | newNullClob()
Implements com. Constructs a new |
| public IonDecimal | newNullDecimal()
Implements com. Constructs a new |
| public IonFloat | newNullFloat()
Implements com. Constructs a new |
| public IonInt | |
| public IonList | newNullList()
Implements com. Constructs a new |
| public IonSexp | newNullSexp()
Implements com. Constructs a new |
| public IonString | newNullString()
Implements com. Constructs a new |
| public IonStruct | newNullStruct()
Implements com. Constructs a new |
| public IonSymbol | newNullSymbol()
Implements com. Constructs a new |
| public IonTimestamp | newNullTimestamp()
Implements com. Constructs a new |
| public IonSexp | newSexp(Collection<? extends IonValue>
the initial set of children. If values)null, then the new
instance will have .Implements com.
Deprecated
Constructs a new |
| public IonSexp | newSexp(IonSequence
the initial child of the new sexp. firstChild)Implements com. Constructs a new |
| public IonSexp | newSexp(IonValue...
the initial set of children. If values)null, then the new
instance will have .Implements com. Constructs a new |
| public IonSexp | newSexp(int[]
the initial set of child values. If values)null, then the new
instance will have .
Otherwise, the resulting sequence will contain new IonInts with
the given values.Implements com. Constructs a new |
| public IonSexp | newSexp(long[]
the initial set of child values. If values)null, then the new
instance will have .
Otherwise, the resulting sequence will contain new IonInts with
the given values.Implements com. Constructs a new |
| public IonString | newString(String
the text of the new string;
may be value)null to make null.string.Implements com. Constructs a new Ion string with the given value. |
| public IonSymbol | newSymbol(String
the text of the symbol;
may be value)null to make null.symbol.Implements com. Constructs a new Ion symbol with the given value. |
| public IonSymbol | newSymbol(SymbolToken
the text and/or SID of the symbol;
may be value)null to make null.symbol.Implements com. Constructs a new Ion symbol with the given symbol token. |
| public IonTimestamp | newTimestamp(Timestamp
may be value)null to make null.timestamp.Implements com. Constructs a new |
| myFactory | back to summary |
|---|---|
| private final ValueFactory myFactory | |
| _Private_CurriedValueFactory | back to summary |
|---|---|
protected _Private_CurriedValueFactory(ValueFactory factory)
| |
| clone | back to summary |
|---|---|
| public <T extends IonValue> T clone(T value) throws IonException Implements com. Doc from com. Creates a deep copy of an Ion value. This method can properly clone
The given value can be in the context of any
| |
| handle | back to summary |
|---|---|
| protected abstract void handle(IonValue newValue) Subclasses override this to do something with each newly-constructed value. | |
| newBlob | back to summary |
|---|---|
| public IonBlob newBlob(byte[] value) Implements com. Doc from com. Constructs a new Ion
| |
| newBlob | back to summary |
|---|---|
| public IonBlob newBlob(byte[] value, int offset, int length) Implements com. Doc from com. Constructs a new Ion
This method copies
| |
| newBool | back to summary |
|---|---|
| public IonBool newBool(boolean value) Implements com. Doc from com. Constructs a new
| |
| newBool | back to summary |
|---|---|
| public IonBool newBool(Boolean value) Implements com. Doc from com. Constructs a new
| |
| newClob | back to summary |
|---|---|
| public IonClob newClob(byte[] value) Implements com. Doc from com. Constructs a new Ion
| |
| newClob | back to summary |
|---|---|
| public IonClob newClob(byte[] value, int offset, int length) Implements com. Doc from com. Constructs a new Ion
This method copies
| |
| newDecimal | back to summary |
|---|---|
| public IonDecimal newDecimal(long value) Implements com. Doc from com. Constructs a new Ion | |
| newDecimal | back to summary |
|---|---|
| public IonDecimal newDecimal(double value) Implements com. Doc from com. Constructs a new Ion
Note that this does not generate the exact decimal representation of the
| |
| newDecimal | back to summary |
|---|---|
| public IonDecimal newDecimal(BigInteger value) Implements com. Doc from com. Constructs a new Ion | |
| newDecimal | back to summary |
|---|---|
| public IonDecimal newDecimal(BigDecimal value) Implements com. Doc from com. Constructs a new Ion | |
| newEmptyList | back to summary |
|---|---|
| public IonList newEmptyList() Implements com. Doc from com. Constructs a new empty (not null) | |
| newEmptySexp | back to summary |
|---|---|
| public IonSexp newEmptySexp() Implements com. Doc from com. Constructs a new empty (not null) | |
| newEmptyStruct | back to summary |
|---|---|
| public IonStruct newEmptyStruct() Implements com. Doc from com. Constructs a new empty (not null) | |
| newFloat | back to summary |
|---|---|
| public IonFloat newFloat(long value) Implements com. Doc from com. Constructs a new Ion | |
| newFloat | back to summary |
|---|---|
| public IonFloat newFloat(double value) Implements com. Doc from com. Constructs a new Ion | |
| newInt | back to summary |
|---|---|
| public IonInt newInt(int value) Implements com. Doc from com. Constructs a new
| |
| newInt | back to summary |
|---|---|
| public IonInt newInt(long value) Implements com. Doc from com. Constructs a new
| |
| newInt | back to summary |
|---|---|
| public IonInt newInt(Number value) Implements com. Doc from com. Constructs a new
| |
| newList | back to summary |
|---|---|
| public IonList newList(Collection<? extends IonValue> values) throws ContainedValueException, NullPointerException Implements com. Doc from com. Deprecated
Constructs a new
| |
| newList | back to summary |
|---|---|
| public IonList newList(IonSequence firstChild) throws ContainedValueException, NullPointerException Implements com. Doc from com. Constructs a new
This method is temporary until
| |
| newList | back to summary |
|---|---|
| public IonList newList(IonValue... values) throws ContainedValueException, NullPointerException Implements com. Doc from com. Constructs a new Some edge cases are worth examples:
factory.newList(); // returns []
factory.newList((IonValue[]) null); // returns null.list
For clarity, applications should prefer newEmptyList() and
newNullList() instead.
| |
| newList | back to summary |
|---|---|
| public IonList newList(int[] values) Implements com. Doc from com. Constructs a new
| |
| newList | back to summary |
|---|---|
| public IonList newList(long[] values) Implements com. Doc from com. Constructs a new
| |
| newNull | back to summary |
|---|---|
| public IonNull newNull() Implements com. Doc from com. Constructs a new | |
| newNull | back to summary |
|---|---|
| public IonValue newNull(IonType type) Implements com. Doc from com. Constructs a new Ion null value with the given type.
| |
| newNullBlob | back to summary |
|---|---|
| public IonBlob newNullBlob() Implements com. Doc from com. Constructs a new | |
| newNullBool | back to summary |
|---|---|
| public IonBool newNullBool() Implements com. Doc from com. Constructs a new | |
| newNullClob | back to summary |
|---|---|
| public IonClob newNullClob() Implements com. Doc from com. Constructs a new | |
| newNullDecimal | back to summary |
|---|---|
| public IonDecimal newNullDecimal() Implements com. Doc from com. Constructs a new | |
| newNullFloat | back to summary |
|---|---|
| public IonFloat newNullFloat() Implements com. Doc from com. Constructs a new | |
| newNullInt | back to summary |
|---|---|
| public IonInt newNullInt() Implements com. Doc from com. Constructs a new | |
| newNullList | back to summary |
|---|---|
| public IonList newNullList() Implements com. Doc from com. Constructs a new | |
| newNullSexp | back to summary |
|---|---|
| public IonSexp newNullSexp() Implements com. Doc from com. Constructs a new | |
| newNullString | back to summary |
|---|---|
| public IonString newNullString() Implements com. Doc from com. Constructs a new | |
| newNullStruct | back to summary |
|---|---|
| public IonStruct newNullStruct() Implements com. Doc from com. Constructs a new | |
| newNullSymbol | back to summary |
|---|---|
| public IonSymbol newNullSymbol() Implements com. Doc from com. Constructs a new | |
| newNullTimestamp | back to summary |
|---|---|
| public IonTimestamp newNullTimestamp() Implements com. Doc from com. Constructs a new | |
| newSexp | back to summary |
|---|---|
| public IonSexp newSexp(Collection<? extends IonValue> values) throws ContainedValueException, NullPointerException Implements com. Doc from com. Deprecated
Constructs a new
| |
| newSexp | back to summary |
|---|---|
| public IonSexp newSexp(IonSequence firstChild) throws ContainedValueException, NullPointerException Implements com. Doc from com. Constructs a new
This method is temporary until
| |
| newSexp | back to summary |
|---|---|
| public IonSexp newSexp(IonValue... values) throws ContainedValueException, NullPointerException Implements com. Doc from com. Constructs a new Some edge cases are worth examples:
factory.newSexp(); // returns ()
factory.newSexp((IonValue[]) null); // returns null.sexp
For clarity, applications should prefer newEmptySexp() and
newNullSexp() instead.
| |
| newSexp | back to summary |
|---|---|
| public IonSexp newSexp(int[] values) Implements com. Doc from com. Constructs a new
| |
| newSexp | back to summary |
|---|---|
| public IonSexp newSexp(long[] values) Implements com. Doc from com. Constructs a new
| |
| newString | back to summary |
|---|---|
| public IonString newString(String value) Implements com. Doc from com. Constructs a new Ion string with the given value.
| |
| newSymbol | back to summary |
|---|---|
| public IonSymbol newSymbol(String value) Implements com. Doc from com. Constructs a new Ion symbol with the given value.
| |
| newSymbol | back to summary |
|---|---|
| public IonSymbol newSymbol(SymbolToken value) Implements com. Doc from com. Constructs a new Ion symbol with the given symbol token. This is an "expert method": correct use requires deep understanding of the Ion binary format. You almost certainly don't want to use it.
| |
| newTimestamp | back to summary |
|---|---|
| public IonTimestamp newTimestamp(Timestamp value) Implements com. Doc from com. Constructs a new
| |