File

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

Extends

AbstractMetadataList

Index

Properties
Methods

Properties

contacts
Type : ResponsibleParty[]
Default value : []
Decorators :
@DisplayName('Contacts')
definition
Type : string
Decorators :
@DisplayName('Definition')
Inherited from AbstractMetadataList
description
Type : string
Decorators :
@DisplayName('Description')
Inherited from AbstractMetadataList

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

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

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 AbstractMetadataList

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 AbstractMetadataList

Extension slot for future extensions to this standard.

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

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

export class ContactList extends AbstractMetadataList {
    @DisplayName('Contacts')
    contacts: ResponsibleParty[] = [];

    toString() {
        return 'Contact list';
    }

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

    getValue() {
        if (this.contacts.length > 0) {
            return this.contacts.join(', ');
        }
    }
}

result-matching ""

    No results matching ""