Last updated

API / geotoolkit / seismic / data / FieldDesc / FieldDesc

Class: FieldDesc

data.FieldDesc.FieldDesc

The FieldDesc is a base class for seismic trace header's field descriptors. It is common to all field descriptors. A header field descriptor describes the name and identifier of a given header field.

Hierarchy

Table of contents

Constructors
[new FieldDesc(fieldId, name, title)](/solutions/geotoolkit/apis/classes/geotoolkit.seismic.data-3.fielddesc.fielddesc.md#new fielddesc(fieldid, name, title))[new FieldDesc(options)](/solutions/geotoolkit/apis/classes/geotoolkit.seismic.data-3.fielddesc.fielddesc.md#new fielddesc(options))
Methods
Css Properties
Name Type Description
fieldidstring | numberIdentifier (type)
namestringName of the field
titlestringTitle of the field

Contents

Constructors

new FieldDesc(fieldId, name, title)

new FieldDesc(fieldId, name, title?)

Creates field description

Parameters

Name Type Description
fieldIdstring | numberidentifier of the field
namestringname of the field
Optional titlestringtitle of the field

new FieldDesc(options)

new FieldDesc(options?)

Creates field description

Parameters

Name Type Description
Optional optionsOptionsoptions to specify fieldId, name and title
Methods

clone

clone(): FieldDesc

Returns clone of the field descriptor

Returns

FieldDesc

clone


equalsTo

equalsTo(header): boolean

Returns true if headers are identical

Parameters

Name Type Description
headerFieldDesc | { identifier?: string ; name?: string }header

Returns

boolean


getClassName

getClassName(): string

Returns

string


getClone

getClone(): FieldDesc

Returns clone of the field descriptor

Deprecated

since 4.0 Use clone instead

Returns

FieldDesc

clone


getIdentifier

getIdentifier(): string | number

Returns identifier (type)

Returns

string | number


getName

getName(): string

Returns name

Returns

string


getProperties

getProperties(): Required<Options>

Gets the properties

Returns

Required<Options>


getTitle

getTitle(): string

Returns title

Returns

string


setProperties

setProperties(props?): FieldDesc

Sets the properties

Parameters

Name Type Description
Optional propsOptionsproperties

Returns

FieldDesc

this


setTitle

setTitle(title): FieldDesc

Set title

Parameters

Name Type Description
titlestringtitle

Returns

FieldDesc

this


toString

toString(): string

Returns string representation

Returns

string


getClassName

Static getClassName(): string

Returns

string