libs/sensorml/src/lib/model/iso/gmd/ResponsibleParty.ts
Identification of, and means of communication with, person(s) and organisations associated with the dataset
Properties |
Methods |
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')
|
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;
}
}
}