Skip to main content
Pentaho Documentation

IType

pentaho.type.spec. IType

The spec.IType interface represents the specification of a type.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 17

Members

Name Description
alias : nonEmptyString

The alias for the identifier of this type.

application : object

The application property of the type.

base : pentaho.type.spec.TypeReference

A reference to the type's base type, if any.

category : nonEmptyString | any

The category associated with the type.

defaultView : string | function

The default view for instances of the type.

description : nonEmptyString | any

The description of the type.

helpUrl : nonEmptyString | any

An URL pointing to documentation associated with the type.

id : string

The identifier of the type's AMD module, a temporary identifier, or null.

isAbstract : boolean | any

Indicates if the type is abstract.

isAdvanced : boolean | any

Indicates if the type should be exposed only to advanced users in a user interface.

isBrowsable : boolean | any

Indicates if the type should be exposed to users in a user interface.

label : nonEmptyString | any

The label of the type.

ordinal : number | any

The ordinal associated with the type.

sourceId : string

The identifier of the value type's source AMD module, or null.

styleClass : nonEmptyString | any

The CSS class associated with the type.

Members Details

alias: nonEmptyString

The alias for the identifier of this type.

The alias of a type can only be specified when extending the ancestor type.

This attribute is not inherited.

When unspecified, defaults to null.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 74

See also: pentaho.type.spec.IType#id

application: object

The application property of the type.

The application property serves as a bag of properties specific to the container application, that can be modified via the Configuration Service.

Nully values will be ignored by the application property.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 121

See also: pentaho.type.Type#application

base: pentaho.type.spec.TypeReference

A reference to the type's base type, if any.

When the specification is used in the context of a property, it defaults to "property". Otherwise, when absent or undefined, it defaults to "complex".

See a subtype's documentation for more information on default values.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 24

category: nonEmptyString | any

The category associated with the type.

The category is used primarily to group similar types (or instances of) in a user interface.

When non-Nully and not a string, it is taken instead to be the result of calling its toString method.

When undefined, the category is inherited from the base type.

When an empty string or null, the category is forced to be null, ignoring any inherited value.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 153

See also: pentaho.type.spec.IType#isBrowsable , pentaho.type.spec.IType#ordinal

defaultView: string | function

The default view for instances of the type.

When a string, it is the identifier of the view's AMD module. If the identifier is relative, it is relative to sourceId.

When undefined, the view is inherited from the base type, if any. The root view is null.

When falsy (like if null or an empty string), the value is forced to be null, ignoring any inherited value.

When a function, it is the class or factory of the view.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 257

description: nonEmptyString | any

The description of the type.

When non-Nully and not a string, it is taken instead to be the result of calling its toString method.

When undefined, the description is inherited from the base type.

When an empty string or null, the description is forced to be null, ignoring any inherited value.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 135

helpUrl: nonEmptyString | any

An URL pointing to documentation associated with the type.

When non-Nully and not a string, it is taken instead to be the result of calling its toString method.

When undefined, the help url is inherited from the base type.

When an empty string or null, the help url is forced to be null, ignoring any inherited value.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 175

id: string

The identifier of the type's AMD module, a temporary identifier, or null.

An empty string or undefined value is interpreted as null.

For serialization purposes, a temporary identifier can be assigned to an anonymous type. An identifier is temporary if it starts with idTemporaryPrefix.

Temporary identifiers are ignored upon type construction.

When unspecified or null, it defaults to sourceId.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 53

See also: pentaho.type.SpecificationContext.isIdTemporary

isAbstract: boolean | any

Indicates if the type is abstract.

An abstract type cannot be used directly to create an instance and, as such, it is not usually exposed to users in a user interface.

When not a boolean, it is taken instead to be the result of passing it to the Boolean function.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 37

Default Value: false

See also: pentaho.type.spec.IType#isBrowsable

isAdvanced: boolean | any

Indicates if the type should be exposed only to advanced users in a user interface.

When non-Nully and not a boolean, it is taken instead to be the result of passing it to the Boolean function.

When Nully, the attribute value is inherited from the base type, if any. The root value is false.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 208

isBrowsable: boolean | any

Indicates if the type should be exposed to users in a user interface.

When non-Nully and not a boolean, it is taken instead to be the result of passing it to the Boolean function.

When Nully, the attribute value is inherited from the base type, if any. The root value is true.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 193

label: nonEmptyString | any

The label of the type.

When non-Nully and not a string, it is taken instead to be the result of calling its toString method.

When an empty string or Nully, the label is inherited from the base type.

The initial value of this attribute, on the top-root type, is "instance".

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 105

ordinal: number | any

The ordinal associated with the type.

The ordinal is used to disambiguate the order with which a type (or an instance of it) is shown in a user interface.

When Nully, the ordinal is inherited from the base type, if any. The root value is 0.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 240

See also: pentaho.type.spec.IType#isBrowsable , pentaho.type.spec.IType#category

sourceId: string

The identifier of the value type's source AMD module, or null.

An empty string or undefined value is interpreted as null.

When unspecified or null, it defaults to id.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 91

See also: pentaho.type.SpecificationContext.isIdTemporary

styleClass: nonEmptyString | any

The CSS class associated with the type.

This attribute is typically used to associate an icon with a type.

When null or an empty string, the attribute value is set to null.

When unspecified, or undefined, the attribute value defaults to the type's id, in snake-case, if it has one; or, null, if not.

Source: doc-js/pentaho/type/spec/IType.jsdoc, line 223