libs/sensorml/src/lib/model/sml/Term.ts
Properties |
Methods |
codeSpace |
Type : string
|
Decorators :
@DisplayName('Code space')
|
Defined in libs/sensorml/src/lib/model/sml/Term.ts:9
|
definition |
Type : string
|
Decorators :
@DisplayName('Definition')
|
Defined in libs/sensorml/src/lib/model/sml/Term.ts:12
|
label |
Type : string
|
Decorators :
@DisplayName('Label')
|
Defined in libs/sensorml/src/lib/model/sml/Term.ts:6
|
value |
Type : string
|
Decorators :
@DisplayName('Value')
|
Defined in libs/sensorml/src/lib/model/sml/Term.ts:15
|
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
|
toString |
toString()
|
Defined in libs/sensorml/src/lib/model/sml/Term.ts:17
|
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';
}
}
}