File

libs/sensorml/src/lib/model/iso/gmd/ResponsibleParty.ts

Description

Identification of, and means of communication with, person(s) and organisations associated with the dataset

Index

Properties
Methods

Properties

contactInfo
Type : Contact
Decorators :
@DisplayName('Contact info')
individualName
Type : string
Decorators :
@DisplayName('Individual name')
organisationName
Type : string
Decorators :
@DisplayName('Organisation name')
positionName
Type : string
Decorators :
@DisplayName('Position name')
role
Type : Role
Decorators :
@DisplayName('Role')

Methods

getLabel
getLabel()
Returns : string
getValue
getValue()
Returns : string
toString
toString()
Returns : string
import { Contact } from './Contact';
import { Role } from './Role';
import { DisplayName } from '../../../common/decorators/DisplayName';

/**
 * Identification of, and means of communication with, person(s) and
 * organisations associated with the dataset
 */
export class ResponsibleParty {
    @DisplayName('Individual name')
    individualName: string;

    @DisplayName('Organisation name')
    organisationName: string;

    @DisplayName('Position name')
    positionName: string;

    @DisplayName('Contact info')
    contactInfo: Contact;

    @DisplayName('Role')
    role: Role;

    toString() {
        return 'Responsible party';
    }

    getLabel() {
        if (this.individualName) {
            return this.individualName;
        } else {
            return this.toString();
        }
    }

    getValue() {
        if (this.organisationName) {
            return this.organisationName;
        }
    }
}

result-matching ""

    No results matching ""