File

libs/sensorml/src/lib/model/sml/Term.ts

Extends

AbstractSWE

Index

Properties
Methods

Properties

codeSpace
Type : string
Decorators :
@DisplayName('Code space')
definition
Type : string
Decorators :
@DisplayName('Definition')
label
Type : string
Decorators :
@DisplayName('Label')
value
Type : string
Decorators :
@DisplayName('Value')
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

toString
toString()
Returns : string
toString
toString()
Inherited from AbstractSWE
Defined in AbstractSWE:14
Returns : string
import { AbstractSWE } from '../swe/AbstractSWE';
import { DisplayName } from '../../common/decorators/DisplayName';

export class Term extends AbstractSWE {
    @DisplayName('Label')
    label: string;

    @DisplayName('Code space')
    codeSpace: string;

    @DisplayName('Definition')
    definition: string;

    @DisplayName('Value')
    value: string;

    toString() {
        if (this.label && this.value) {
            return this.label + ': ' + this.value;
        } else if (this.label) {
            return this.label;
        } else {
            return 'Term';
        }
    }
}

result-matching ""

    No results matching ""