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 long
For cross-version compatibility.(package private) static final Column
The column for the source type.private final boolean
false
for the source, ortrue
for the target.(package private) static final Column
The 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 TreeTable
Creates a table.(package private) static String
Formats the given tree table.org.opengis.util.InternationalString
Returns the header label.private Object
Returns the singleton instance on deserialization.(package private) static void
toTree
(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 targetfalse
for the source, ortrue
for 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:
getHeader
in 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 byFallbackConverter
andConverterRegistry
for 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 theTreeTableFormat
instance.
-