Skip to main content
Hitachi Vantara Lumada and Pentaho Documentation

DiscreteDomain

pentaho.type.facets.DiscreteDomain

The discrete domain refinement facet limits the domain of a representation type to a discrete set of its instances.

AMD Module

require(["pentaho/type/facets/DiscreteDomain"], function(DiscreteDomain) { /* code goes here */ });

See also:  pentaho.type.facets.spec.IDiscreteDomainTypeProto

Extends

Constructor

Name Description
new DiscreteDomain()

The constructor is not used, as the class is to be used as a mixin.

Members

Name Description
domain : pentaho.type.List

Gets or sets the fixed domain of the type, if any. Otherwise, it is set to null.

Methods

Name Description
_refineDomain()

Refines the current domain with the given domain values.

Constructor Details

new DiscreteDomain()

The constructor is not used, as the class is to be used as a mixin.

Source: javascript/web/pentaho/type/facets/DiscreteDomain.js, line 28

See also:  pentaho.type.facets.spec.IDiscreteDomainTypeProto

Members Details

domain: pentaho.type.List

Gets or sets the fixed domain of the type, if any. Otherwise, it is set to null.

The domain attribute refines a type to a set of discrete values whose type is that of the representation type, pentaho.type.Refinement.Type#of.

If the ancestor refinement type has domain set, the specified set of values must be a subset of those.

Setting to a Nully value, clears the local value and inherits the ancestor's domain.

Setting to an empty array, effectively creates an empty refinement type.

Source: javascript/web/pentaho/type/facets/DiscreteDomain.js, line 73

See also:  pentaho.type.facets.spec.IDiscreteDomainTypeProto#domain

Methods Details

_refineDomain()

Refines the current domain with the given domain values.

Source: javascript/web/pentaho/type/facets/DiscreteDomain.js, line 95