-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor
org.refcodes.mixin.KeyAccessor.KeyBuilder<K,
B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K, B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K>, org.refcodes.mixin.KeyAccessor.KeyProperty<K> Nested classes/interfaces inherited from interface org.refcodes.mixin.TypeAccessor
org.refcodes.mixin.TypeAccessor.TypeBuilder<T,
B extends org.refcodes.mixin.TypeAccessor.TypeBuilder<T, B>>, org.refcodes.mixin.TypeAccessor.TypeMutator<T>, org.refcodes.mixin.TypeAccessor.TypeProperty<T> -
Constructor Summary
ConstructorDescriptionExceptionColumn
(String aKey) Creates anExceptionColumn
which will consider the stack trace in its string representationAbstractColumn.toStorageString(Object)
.ExceptionColumn
(String aKey, PrintStackTrace aPrintStackTrace) Creates anExceptionColumn
which can consider or omit the stack trace in its string representationAbstractColumn.toStorageString(Object)
. -
Method Summary
Modifier and TypeMethodDescriptionclone()
fromStorageStrings
(String[] aStringValues) AColumn
implementation can provide its own text exchange format for the given objects.toPrintable
(Throwable aValue) AColumn
implementation can provide its own printable format of the given objects; for example a human readable text representation of the value (or in very https://www.metacodes.proized cases even enriched with ANSI escape codes).String[]
toStorageStrings
(Throwable aValue) AColumn
implementation can provide its own text exchange format for the given objects.Methods inherited from class org.refcodes.tabular.AbstractColumn
contains, fromStorageString, get, getKey, getType, remove, toStorageString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.tabular.Column
getValue, toStorageString_
-
Constructor Details
-
ExceptionColumn
Creates anExceptionColumn
which will consider the stack trace in its string representationAbstractColumn.toStorageString(Object)
.- Parameters:
aKey
- The key for theExceptionColumn
.
-
ExceptionColumn
Creates anExceptionColumn
which can consider or omit the stack trace in its string representationAbstractColumn.toStorageString(Object)
.- Parameters:
aKey
- The key for theExceptionColumn
.aPrintStackTrace
- the print stack trace
-
-
Method Details
-
toStorageStrings
AColumn
implementation can provide its own text exchange format for the given objects. This method enables theColumn
to convert a value of the given type to aString
array and viaColumn.fromStorageStrings(String[])
back to the value (bijective). This method supports data sinks (such as Amazon's SimpleDb) which provide dedicated support for multiple values in a row's entry: In case T is an array type, then the storageString
representations of the elements in that array may be placed in dedicated entries of the returnedString
array. In case T is not an array type then the returnedString
array may contain just one value. In case data sinks (such as relational databases) are to be addressed which allow only a single value in a row's entry, then the methodColumn.toStorageString(Object)
may be used instead. -
fromStorageStrings
AColumn
implementation can provide its own text exchange format for the given objects. This method enables theColumn
to convert aString
array value to a value of the given type and viaColumn.toStorageStrings(Object)
back to theString
array (bijective). This method supports data sinks (such as Amazon's SimpleDb) which provide dedicated support for multiple values in a row's entry: In case T is an array type, then the storageString
representations of the elements in that array may be placed in dedicated entries of the providedString
array. In case T is not an array type then the passedString
array may contain just one value. In case data sinks (such as relational databases) are to be addressed which allow only a single value in a row's entry, then the methodColumn.fromStorageString(String)
may be used instead.- Parameters:
aStringValues
- The value to be converted to a type instance.- Returns:
- The type representation of the value.
- Throws:
ParseException
- in case parsing theString
was not possible
-
toPrintable
AColumn
implementation can provide its own printable format of the given objects; for example a human readable text representation of the value (or in very https://www.metacodes.proized cases even enriched with ANSI escape codes). This method enables theColumn
to convert a value of the given type to a human readable text. The human readable text, in comparison to the methodObject.toString()
(orColumn.toStorageString(Object)
) is not intended to be converted back to the actual value (not bijective). This method may be used aHeader
instance's methodHeaderRow.toPrintable(Record)
.- Specified by:
toPrintable
in interfaceColumn<Throwable>
- Overrides:
toPrintable
in classAbstractColumn<Throwable>
- Parameters:
aValue
- the element to be converted to a human readable text.- Returns:
- The human readable representation of the value.
-
clone
- Overrides:
clone
in classAbstractColumn<Throwable>
- Throws:
CloneNotSupportedException
-