File

libs/sensorml/src/lib/model/swe/SweDataChoice.ts

Description

Implementation of a choice of two or more Data Components (also called disjoint union)

Extends

AbstractDataComponent

Index

Properties
Methods

Properties

choiceValue
Type : SweCategory[]
Default value : []
Decorators :
@DisplayName('Choice value')

This category component marks the data stream element that will indicate the actual choice made. Possible choices are listed in the Category constraint section as an enumeration and should map to item names.

items
Type : SweDataChoiceItem[]
Default value : []
Decorators :
@DisplayName('Items')
definition
Type : string
Decorators :
@DisplayName('Definition')
Inherited from AbstractDataComponent

Reference to semantic information defining the precise nature of the component

optional
Type : boolean
Decorators :
@DisplayName('Optional')
Inherited from AbstractDataComponent

Specifies that data for this component can be omitted in the datastream

updatable
Type : boolean
Decorators :
@DisplayName('Updatable')
Inherited from AbstractDataComponent

Specifies if the value of a data component can be updated externally (i.e. is variable)

description
Type : string
Decorators :
@DisplayName('Description')
Inherited from AbstractDataComponent

Textual description (i.e. human readable) of the data component usually used to clarify its nature

identifier
Type : string
Decorators :
@DisplayName('Identifier')
Inherited from AbstractDataComponent

Unique identifier of the data component. It can be used to globally identify a particular component of the dataset, a process input/output or a universal constant

label
Type : string
Decorators :
@DisplayName('Label')
Inherited from AbstractDataComponent

Textual label for the data component . This is often used for displaying a human readable name for a dataset field or a process input/output

extension
Type : any[]
Decorators :
@DisplayName('Extension')
Inherited from AbstractDataComponent

Extension slot for future extensions to this standard.

id
Type : string
Decorators :
@DisplayName('Id')
Inherited from AbstractDataComponent
description
Type : string
Decorators :
@DisplayName('Description')
Inherited from AbstractSWEIdentifiable

Textual description (i.e. human readable) of the data component usually used to clarify its nature

identifier
Type : string
Decorators :
@DisplayName('Identifier')
Inherited from AbstractSWEIdentifiable

Unique identifier of the data component. It can be used to globally identify a particular component of the dataset, a process input/output or a universal constant

label
Type : string
Decorators :
@DisplayName('Label')
Inherited from AbstractSWEIdentifiable

Textual label for the data component . This is often used for displaying a human readable name for a dataset field or a process input/output

extension
Type : any[]
Decorators :
@DisplayName('Extension')
Inherited from AbstractSWEIdentifiable

Extension slot for future extensions to this standard.

id
Type : string
Decorators :
@DisplayName('Id')
Inherited from AbstractSWEIdentifiable
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

Methods

getValue
getValue()
Returns : any
toString
toString()
Returns : any
Public getLabel
getLabel()
Inherited from AbstractDataComponent
Returns : any
Abstract getValue
getValue()
Inherited from AbstractDataComponent
Returns : any
toString
toString(fallbackLabel: string)
Inherited from AbstractDataComponent
Parameters :
Name Type Optional Default value
fallbackLabel string No 'Abstract data component'
Returns : any
toString
toString(fallbackLabel: string)
Inherited from AbstractDataComponent
Parameters :
Name Type Optional Default value
fallbackLabel string No 'Abstract SWE identifiable'
Returns : string
toString
toString()
Inherited from AbstractDataComponent
Returns : string
toString
toString(fallbackLabel: string)
Inherited from AbstractSWEIdentifiable
Parameters :
Name Type Optional Default value
fallbackLabel string No 'Abstract SWE identifiable'
Returns : string
toString
toString()
Inherited from AbstractSWEIdentifiable
Returns : string
toString
toString()
Inherited from AbstractSWE
Defined in AbstractSWE:14
Returns : string
import { AbstractDataComponent } from './AbstractDataComponent';
import { SweCategory } from './SweCategory';
import { SweDataChoiceItem } from './SweDataChoiceItem';
import { DisplayName } from '../../common/decorators/DisplayName';

/**
 * Implementation of a choice of two or more Data Components (also called
 * disjoint union)
 */
export class SweDataChoice extends AbstractDataComponent {
    /**
     * This category component marks the data stream element that will indicate
     * the actual choice made. Possible choices are listed in the Category
     * constraint section as an enumeration and should map to item names.
     */
    @DisplayName('Choice value')
    choiceValue: SweCategory[] = [];

    @DisplayName('Items')
    items: SweDataChoiceItem[] = [];

    toString() {
        return super.toString('SWE data choice');
    }

    getValue() {
        return this.toString();
    }
}

result-matching ""

    No results matching ""