Class Column
- All Implemented Interfaces:
Serializable,CheckedContainer<Class<?>>
Columns in the string representation of converter chains.
This is used mostly for debugging purpose.
- Since:
- 0.3
- Version:
- 0.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longFor cross-version compatibility.(package private) static final ColumnThe column for the source type.private final booleanfalsefor the source, ortruefor the target.(package private) static final ColumnThe column for the target type.Fields inherited from class org.apache.sis.util.collection.TableColumn
IDENTIFIER, INDEX, NAME, REMARKS, TYPE, VALUE, VALUE_AS_NUMBER, VALUE_AS_TEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static TreeTableCreates a table.(package private) static StringFormats the given tree table.org.opengis.util.InternationalStringReturns the header label.private ObjectReturns the singleton instance on deserialization.(package private) static voidtoTree(ObjectConverter<?, ?> converter, TreeTable.Node addTo) Creates a node for the given converter and adds it to the given tree.Methods inherited from class org.apache.sis.util.collection.TableColumn
getElementType, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
SOURCE
The column for the source type. -
TARGET
The column for the target type. -
target
private final boolean targetfalsefor the source, ortruefor the target.
-
-
Constructor Details
-
Column
private Column(boolean target) Creates a new column.
-
-
Method Details
-
getHeader
public org.opengis.util.InternationalString getHeader()Returns the header label.- Overrides:
getHeaderin classTableColumn<Class<?>>- Returns:
- the text to display as column header.
-
readResolve
Returns the singleton instance on deserialization.- Throws:
ObjectStreamException
-
createTable
Creates a table. -
toTree
Creates a node for the given converter and adds it to the given tree. Used byFallbackConverterandConverterRegistryfor implementing theirtoString()method.- Parameters:
converter- the converter for which to create a tree.addTo- the node in which to add the converter.
-
format
Formats the given tree table. This method is used for the implementation ofFallbackConverter.toString()andConverterRegistry.toString()methods. Since they are mostly for debugging purpose, we do not bother to cache theTreeTableFormatinstance.
-