File

libs/sensorml/src/lib/model/gml/CodeType.ts

Description

gml:CodeType is a generalized type to be used for a term, keyword or name. It adds a XML attribute codeSpace to a term, where the value of the codeSpace attribute (if present) shall indicate a dictionary, thesaurus, classification scheme, authority, or pattern for the term.

Index

Properties
Methods

Constructor

constructor(value: string, codeSpace: string)
Parameters :
Name Type Optional
value string No
codeSpace string No

Properties

codeSpace
Type : string
Decorators :
@DisplayName('Code space')
value
Type : string
Decorators :
@DisplayName('Value')

Methods

toString
toString()
Returns : string
import { DisplayName } from '../../common/decorators/DisplayName';
/**
 * gml:CodeType is a generalized type to be used for a term, keyword or name.
 * It adds a XML attribute codeSpace to a term, where the value of the codeSpace
 * attribute (if present) shall indicate a dictionary, thesaurus, classification
 * scheme, authority, or pattern for the term.
 */
export class CodeType {
    @DisplayName('Value')
    value: string;

    @DisplayName('Code space')
    codeSpace: string;

    constructor(value: string, codeSpace: string = null) {
        this.value = value;
        this.codeSpace = codeSpace;
    }

    toString() {
        return this.value && this.value.length ? this.value : 'Code type';
    }
}

result-matching ""

    No results matching ""