File

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

Description

Base substitution groups for all SWE Common objects with identification metadata

Extends

AbstractSWE

Index

Properties
Methods

Properties

description
Type : string
Decorators :
@DisplayName('Description')

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

identifier
Type : string
Decorators :
@DisplayName('Identifier')

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')

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 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(fallbackLabel: string)
Parameters :
Name Type Optional Default value
fallbackLabel string No 'Abstract SWE identifiable'
Returns : string
toString
toString()
Inherited from AbstractSWE
Defined in AbstractSWE:14
Returns : string
import { AbstractSWE } from './AbstractSWE';
import { DisplayName } from '../../common/decorators/DisplayName';

/**
 * Base substitution groups for all SWE Common objects with
 * identification metadata
 */
export abstract class AbstractSWEIdentifiable extends AbstractSWE {
    /**
     * 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
     */
    @DisplayName('Identifier')
    identifier: string;
    /**
     * 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
     */
    @DisplayName('Label')
    label: string;
    /**
     * Textual description (i.e. human readable) of the data component usually
     * used to clarify its nature
     */
    @DisplayName('Description')
    description: string;

    toString(fallbackLabel = 'Abstract SWE identifiable') {
        return this.label ? this.label : fallbackLabel;
    }
}

result-matching ""

    No results matching ""