Class: DataSetComponent

data. DataSetComponent


new DataSetComponent()

Describes a component (Dimension or Attribute) of a data.DataSet

A DataSetComponent contains the list of Codes that are relevant to the DataSet to which this DataSetComponent belongs.

Methods


getCodeById(codeId)

Returns the data.DataSetCode with the given id or null if none exist with the given id

Parameters:
Name Type Description
codeId string

The id of the data.DataSetCode which should be returned

Returns:
Type
DataSetCode

getCodes()

Returns the an array of data.DataSetCode which contain data for this component in the corresponding data.DataSet

Returns:
Type
Array.<DataSetCode>

getId()

Returns the id for this component, for example 'FREQ'

Returns:
Type
string

getMaxObs()

Returns the maximum number of observations for this dimension

Returns:
Type
number

getMetadata(callback)

Returns the fully resolved array of metadata.ReferenceMetadata

Parameters:
Name Type Description
callback function

getMetadataDefs()

Returns an array of metadata.ReferenceMetadataLink, or an empty array if there are none


getName()

Returns the human readable name for this component, for example 'Frequency'

Returns:
Type
string

getSize()

Returns the number of unique data.DataSetCode for this component as contained in the corresponding data.DataSet

Returns:
Type
string

hasMetadata()

Returns true if there are metadata.ReferenceMetadataLink attached to this object

Returns:
Type
boolean