Package org.apache.sis.metadata
Class MetadataFormat
java.lang.Object
java.text.Format
org.apache.sis.io.CompoundFormat<T>
org.apache.sis.io.TabularFormat<TreeTable>
org.apache.sis.util.collection.TreeTableFormat
org.apache.sis.metadata.MetadataFormat
- All Implemented Interfaces:
Serializable,Cloneable,Localized
Default format for
AbstractMetadata objects.- Since:
- 1.0
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.text.Format
Format.Field -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final MetadataFormatThe shared instance to use for theTreeTableView.toString()method implementation.Fields inherited from class org.apache.sis.io.TabularFormat
beforeFill, columnSeparator, fillCharacter, lineSeparator, omitTrailingNulls -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteColumnSeparator(int nextColumn, TableAppender out) Override the default behavior for not moving to next column before writing remarks.Methods inherited from class org.apache.sis.util.collection.TreeTableFormat
clone, createFormat, format, getColumns, getIndentation, getNodeFilter, getValueType, getVerticalLinePosition, parse, setColumns, setIndentation, setNodeFilter, setVerticalLinePositionMethods inherited from class org.apache.sis.io.TabularFormat
getColumnSeparatorMatcher, getColumnSeparatorPattern, getLineSeparator, setColumnSeparatorPattern, setLineSeparatorMethods inherited from class org.apache.sis.io.CompoundFormat
format, getFormat, getLocale, getLocale, getTimeZone, parseObject, parseObjectMethods inherited from class java.text.Format
format, formatToCharacterIterator
-
Field Details
-
INSTANCE
The shared instance to use for theTreeTableView.toString()method implementation. Would need to be reset tonullon locale or timezone changes, but we do not yet have any listener for such information.
-
-
Constructor Details
-
MetadataFormat
private MetadataFormat()Creates a new format.
-
-
Method Details
-
writeColumnSeparator
Override the default behavior for not moving to next column before writing remarks. Doing so put too many spaces for large metadata tree. Instead, we add spaces in the current column.- Overrides:
writeColumnSeparatorin classTreeTableFormat- Parameters:
nextColumn- zero-based index of the column to be written after the separator.out- where to write the column separator.- See Also:
-