libs/sensorml/src/lib/model/swe/SweTextEncoding.ts
Parameters of the text encoding method
Properties |
Methods |
blockSeparator |
Type : string
|
Default value : '@@'
|
Decorators :
@DisplayName('Block separator')
|
Character sequence used as the block separator (i.e. between two successive blocks in the data set. The end of a block is reached once all values from the data tree have been encoded once) |
collapseWhiteSpace |
Type : boolean
|
Decorators :
@DisplayName('Collapse whitespace')
|
Indicates whether white spaces (i.e. space, tab, CR, LF) should be collapsed with separators when parsing the data stream |
decimalSeparator |
Type : string
|
Default value : '.'
|
Decorators :
@DisplayName('Decimal separator')
|
Character used as the decimal separator |
tokenSeparator |
Type : string
|
Default value : ';'
|
Decorators :
@DisplayName('Token separator')
|
Character sequence used as the token separator (i.e. between two successive values) |
extension |
Type : any[]
|
Decorators :
@DisplayName('Extension')
|
Inherited from
SweEncoding
|
Defined in
SweEncoding:12
|
Extension slot for future extensions to this standard. |
id |
Type : string
|
Decorators :
@DisplayName('Id')
|
Inherited from
SweEncoding
|
Defined in
SweEncoding:7
|
extension |
Type : any[]
|
Decorators :
@DisplayName('Extension')
|
Inherited from
AbstractSWE
|
Defined in
AbstractSWE:12
|
Extension slot for future extensions to this standard. |
id |
Type : string
|
Decorators :
@DisplayName('Id')
|
Inherited from
AbstractSWE
|
Defined in
AbstractSWE:7
|
toString |
toString()
|
Returns :
string
|
toString |
toString()
|
Inherited from
SweEncoding
|
Defined in
SweEncoding:4
|
Returns :
string
|
toString |
toString()
|
Inherited from
SweEncoding
|
Defined in
SweEncoding:14
|
Returns :
string
|
toString |
toString()
|
Inherited from
AbstractSWE
|
Defined in
AbstractSWE:14
|
Returns :
string
|
import { DisplayName } from '../../common/decorators/DisplayName';
import { SweEncoding } from './SweEncoding';
/**
* Parameters of the text encoding method
*/
export class SweTextEncoding extends SweEncoding {
/**
* Indicates whether white spaces (i.e. space, tab, CR, LF) should be
* collapsed with separators when parsing the data stream
*/
@DisplayName('Collapse whitespace')
collapseWhiteSpace: boolean;
/**
* Character used as the decimal separator
*/
@DisplayName('Decimal separator')
decimalSeparator = '.';
/**
* Character sequence used as the token separator (i.e. between two successive
* values)
*/
@DisplayName('Token separator')
tokenSeparator = ';';
/**
* Character sequence used as the block separator (i.e. between two successive
* blocks in the data set. The end of a block is reached once all values from
* the data tree have been encoded once)
*/
@DisplayName('Block separator')
blockSeparator = '@@';
toString() {
return 'SWE text encoding';
}
}