Class DialectImpl
java.lang.Object
org.aksw.commons.model.csvw.domain.impl.DialectImpl
- All Implemented Interfaces:
Serializable, Dialect, DialectMutable
- Direct Known Subclasses:
DialectMutableImpl
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAn atomic property that sets the comment prefix flag to the single provided value, which MUST be a string.An atomic property that sets the delimiter flag to the single provided value, which MUST be a string.An atomic property that sets the encoding flag to the single provided string value, which MUST be a defined in [encoding].A boolean atomic property that, if `true`, sets the header row count flag to `1`, and if `false` to `0`, unless headerRowCount is provided, in which case the value provided for the header property is ignored.An numeric atomic property that sets the header row count flag to the single provided value, which must be a non-negative integer.An atomic property that sets the line terminators flag to either an array containing the single provided string value, or the provided array.An atomic property that sets the quote character flag to the single provided value, which must be a string or `null`.Extension: Quote escape charAn boolean atomic property that sets the `skip blank rows` flag to the single provided boolean value.An numeric atomic property that sets the `skip columns` flag to the single provided numeric value, which MUST be a non-negative integer.A boolean atomic property that, if `true`, sets the trim flag to "start".An numeric atomic property that sets the `skip rows` flag to the single provided numeric value, which MUST be a non-negative integer.getTrim()An atomic property that, if the boolean `true`, sets the trim flag to `true` and if the boolean `false` to `false`.A boolean atomic property that, if `true`, sets the escape character flag to `"`.setCommentPrefix(String commentPrefix) setDelimiter(String delimiter) setDoubleQuote(Boolean doubleQuote) setEncoding(String encoding) setHeaderRowCount(Long headerRowCount) setLineTerminators(String lineTerminators) setQuoteChar(String quoteChar) setQuoteEscapeChar(String quoteEscapeChar) setSkipBlankRows(Boolean skipBlankRows) setSkipColumns(Long skipColumns) setSkipInitialSpace(Boolean skipInitialSpace) setSkipRows(Long skipRows) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Dialect
copyInto, getLineTerminatorListMethods inherited from interface DialectMutable
setLineTerminatorList
-
Field Details
-
commentPrefix
-
delimiter
-
doubleQuote
-
encoding
-
header
-
headerRowCount
-
lineTerminators
-
quoteChar
-
skipBlankRows
-
skipColumns
-
skipInitialSpace
-
skipRows
-
trim
-
quoteEscapeChar
-
-
Constructor Details
-
DialectImpl
public DialectImpl()
-
-
Method Details
-
getCommentPrefix
Description copied from interface:DialectAn atomic property that sets the comment prefix flag to the single provided value, which MUST be a string.- Specified by:
getCommentPrefixin interfaceDialect
-
setCommentPrefix
- Specified by:
setCommentPrefixin interfaceDialectMutable
-
getDelimiter
Description copied from interface:DialectAn atomic property that sets the delimiter flag to the single provided value, which MUST be a string.- Specified by:
getDelimiterin interfaceDialect
-
setDelimiter
- Specified by:
setDelimiterin interfaceDialectMutable
-
isDoubleQuote
Description copied from interface:DialectA boolean atomic property that, if `true`, sets the escape character flag to `"`.- Specified by:
isDoubleQuotein interfaceDialect
-
setDoubleQuote
- Specified by:
setDoubleQuotein interfaceDialectMutable
-
getEncoding
Description copied from interface:DialectAn atomic property that sets the encoding flag to the single provided string value, which MUST be a defined in [encoding]. The default is "utf-8".- Specified by:
getEncodingin interfaceDialect
-
setEncoding
- Specified by:
setEncodingin interfaceDialectMutable
-
getHeader
Description copied from interface:DialectA boolean atomic property that, if `true`, sets the header row count flag to `1`, and if `false` to `0`, unless headerRowCount is provided, in which case the value provided for the header property is ignored. -
setHeader
- Specified by:
setHeaderin interfaceDialectMutable
-
getHeaderRowCount
Description copied from interface:DialectAn numeric atomic property that sets the header row count flag to the single provided value, which must be a non-negative integer.- Specified by:
getHeaderRowCountin interfaceDialect
-
setHeaderRowCount
- Specified by:
setHeaderRowCountin interfaceDialectMutable
-
getLineTerminators
Description copied from interface:DialectAn atomic property that sets the line terminators flag to either an array containing the single provided string value, or the provided array.- Specified by:
getLineTerminatorsin interfaceDialect
-
setLineTerminators
- Specified by:
setLineTerminatorsin interfaceDialectMutable
-
getQuoteChar
Description copied from interface:DialectAn atomic property that sets the quote character flag to the single provided value, which must be a string or `null`.- Specified by:
getQuoteCharin interfaceDialect
-
setQuoteChar
- Specified by:
setQuoteCharin interfaceDialectMutable
-
getSkipBlankRows
Description copied from interface:DialectAn boolean atomic property that sets the `skip blank rows` flag to the single provided boolean value.- Specified by:
getSkipBlankRowsin interfaceDialect
-
setSkipBlankRows
- Specified by:
setSkipBlankRowsin interfaceDialectMutable
-
getSkipColumns
Description copied from interface:DialectAn numeric atomic property that sets the `skip columns` flag to the single provided numeric value, which MUST be a non-negative integer.- Specified by:
getSkipColumnsin interfaceDialect
-
setSkipColumns
- Specified by:
setSkipColumnsin interfaceDialectMutable
-
getSkipInitialSpace
Description copied from interface:DialectA boolean atomic property that, if `true`, sets the trim flag to "start". If `false`, to `false`.- Specified by:
getSkipInitialSpacein interfaceDialect
-
setSkipInitialSpace
- Specified by:
setSkipInitialSpacein interfaceDialectMutable
-
getSkipRows
Description copied from interface:DialectAn numeric atomic property that sets the `skip rows` flag to the single provided numeric value, which MUST be a non-negative integer.- Specified by:
getSkipRowsin interfaceDialect
-
setSkipRows
- Specified by:
setSkipRowsin interfaceDialectMutable
-
getTrim
Description copied from interface:DialectAn atomic property that, if the boolean `true`, sets the trim flag to `true` and if the boolean `false` to `false`. If the value provided is a string, sets the trim flag to the provided value, which must be one of "true", "false", "start" or "end". rdfs:range xsd:boolean rdfs:domain csvw:Dialect Holy cow... so let's just assume the literal strings "true"/"false" represent the corresponding boolean value and thus the range is string. Otherwise we'd either have to result to Object or use a BooleanOrString class. -
setTrim
- Specified by:
setTrimin interfaceDialectMutable
-
getQuoteEscapeChar
Description copied from interface:DialectExtension: Quote escape char- Specified by:
getQuoteEscapeCharin interfaceDialect
-
setQuoteEscapeChar
- Specified by:
setQuoteEscapeCharin interfaceDialectMutable
-
toString
-