Type
pentaho.visual.role.Property.Type
The type class of pentaho.visual.role.Property
.
Extends
Constructor
Name | Description |
---|---|
new Type() Static |
Members
Name | Description |
---|---|
_isLabelSet : Protected | Gets a value that indicates if the label is locally set. |
alias : | Gets the alias for the identifier of this type. |
ancestor : | Gets the parent type in the current type hierarchy, if any, or |
anyLevelsQualitative : | Gets a value that indicates if the visual role has any qualitative levels. |
anyLevelsQuantitative : | Gets a value that indicates if the visual role has any quantitative levels. |
application : | Gets or sets the |
attributes : | Gets or sets the attributes metadata related with this visual role property. |
category : | Gets or sets the category associated with this type. |
context : | Gets the context that defined this type class. |
countMax : | Gets or sets the maximum number of elements that properties of this type can have. |
countMaxOn | Evaluates the value of the |
countMin : | Gets or sets the minimum number of elements that properties of this type must have. |
countMinOn | Evaluates the value of the |
dataType : | Gets or sets the value type of data properties required by the visual role. |
declaringType : | Gets the complex type that declares this property type. |
defaultValue : | Gets or sets the default value of properties of this type. |
defaultView : | Gets or sets the default view for instances of this type. |
defaultViewAbs : | Gets the absolute view module identifier, if any. |
description : | Gets or sets the description of this type. |
domain : | Gets or sets the list of valid values (or a function that evaluates to these) of properties of this type. |
domainOn | Evaluates the value of the |
elemName : | Gets the singular name of |
elemType : | The base element type of the singular values that the property can hold. |
hasDescendants : | Gets a value that indicates if this type has any descendant types. |
helpUrl : | Gets or sets a URL pointing to documentation associated with this type. |
id : | Gets the identifier of this type. |
index : | Gets the index of the property in the containing complex type. |
inheritedStyleClasses : | Gets the style classes of this and any base types. |
instance : | Gets the prototype of the instances of this type. |
isAbstract : | Gets a value that indicates if this type is abstract. |
isAdvanced : | Gets or sets the |
isApplicable : | Gets or sets a value or function that indicates if properties of this type are applicable. |
isApplicableOn | Evaluates the value of the |
isBoundary : | Gets or sets whether the property is a boundary property. |
isBrowsable : | Gets or sets the |
isComplex : | |
isContainer : | Gets a value that indicates if this type |
isElement : | Gets a value that indicates if this type |
isEnabled : | Gets or sets a value, or function, that indicates if properties of this type can be changed by a user, in a user interface. |
isEnabledOn | Evaluates the value of the |
isList : | Gets a value that indicates if the property is a list. |
isProperty : | Gets a value that indicates if this type |
isReadOnly : | Gets or sets whether the value of properties of this type can be changed. |
isRequired : | Gets or sets a value that indicates if properties of this type are required. |
isRequiredOn | Evaluates the value of the |
isRoot : | Gets a value that indicates if this type is the root of its type hierarchy. |
isSimple : | |
isValue : | |
isVisualKey : | Gets or sets a value that indicates if visual roles of this type are visual keys. |
key : | Gets the key of the property. |
keyName : | Gets the singular name of |
label : | Gets or sets the label of this type. |
levels : | Gets or sets the array of measurement levels for which the visual role has a special mode of operation. |
mixins : | Gets or sets the mixin types that are locally mixed into this type. |
name : | Gets or sets the name of the property type. |
nameAlias : | Gets or sets the alias for the name of the property type. |
ordinal : | Gets or sets the ordinal associated with this type. |
root : | Gets the root type of this type hierarchy. |
shortId : | Gets the short identifier of this type. |
sourceId : | Gets the source module identifier of this type. |
styleClass : | Gets or sets the CSS class associated with this type. |
uid : | Gets the unique identifier of this type. |
valueType : | Gets or sets the type of value that properties of this type can hold. |
Methods
Name | Description |
---|---|
_collectElementValidators(addValidator, owner, value) Protected | Called each time a property value is validated to collect the list of element validators. |
_fillSpecInContext(spec, keyArgs) : boolean Protected | Fills the given specification with this type's attributes' local values, and returns whether any attribute was actually added. |
_getLabelDefault() : string Protected | Gets the default label of the property. |
_init(spec, keyArgs) Protected | Performs initialization tasks that take place before the instance is extended with its spec. |
_postInit(spec, keyArgs) Protected | Performs initialization tasks that take place after the instance is extended with its specification. |
_validateValueOn(owner, value) : pentaho.type.ValidationError | Array.< Protected | Validates the given non-null value in the context of this property. |
buildSourceRelativeId(id) : string | Builds an absolute module identifier from one that is relative to the type's |
countRangeOn(owner) : pentaho.IRange.< | Evaluates the element count range of a property of this type on a given complex value. |
create(instRef, instKeyArgs) : pentaho.type.Instance | Creates or resolves an instance of this type given an instance reference. |
createAsync(instRef, instKeyArgs) : Promise.< | Creates or resolves an instance of this type, asynchronously, given an instance reference. |
defaultValueOn(owner) : pentaho.type.Value | Gets a default value for use in a given |
getAttributesMaxLevelOf(model) : string | undefined | Determines the highest level of measurement supported by all of the data attributes of the current mapping of the given visualization model. |
getLevelCompatibleWith(attributeLevel, allRoleLevels) : string | undefined | Determines the highest role level of measurement that is compatible with a given data property level of measurement, if any. |
getLevelsCompatibleWith(attributeLevel, allRoleLevels) : Array.< | Chooses from |
is(value) : boolean | Determines if a value is an instance of this type. |
isSubtypeOf(superType) : boolean | Determines if this is a subtype of another. |
isVisualKeyOn(model) : boolean | Evaluates the value of the |
levelAutoOn(model) : string | undefined | Determines the automatic measurement level of this visual role on the given visualization model, according to the mapping's current state. |
levelEffectiveOn(model) : string | undefined | Determines the level of measurement on which this visual role will effectively be operating, on the given visualization model, according to the mapping's current state. |
to(value, keyArgs) : pentaho.type.Instance | Converts a value to an instance of this type, if it is not one already. |
toJSON() : UJsonValue | Creates a JSON specification that describes this type. |
toRef(keyArgs) : pentaho.type.spec.UTypeReference | Returns a reference to this type. |
toRefInContext(keyArgs) : pentaho.type.spec.UTypeReference | Returns a reference to this type under a given specification context. |
toSpec(keyArgs) : pentaho.type.spec.ITypeProto | Creates a specification that describes this type. |
toSpecInContext(keyArgs) : pentaho.type.spec.ITypeProto | Creates a specification that describes this type. |
toString() : string | Returns a textual representation suitable to identify this type in an error message. |
toValueOn(defaultValueOwner, valueSpec) : pentaho.type.Value | Converts the given value or value specification to a value of this property's value type. |
validateOn(model) : Array.< | Determines if this visual role is valid on the given visualization model. |
Constructor Details
new Type() Static |
---|
Source: javascript/web/pentaho/visual/role/property.js, line 38 |
Members Details
_isLabelSet: Protected |
---|
Gets a value that indicates if the label is locally set. Source: javascript/web/pentaho/type/_type.js, line 640 Inherited From: pentaho.type.Type#_isLabelSet |
alias: |
---|
Gets 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 Source: javascript/web/pentaho/type/_type.js, line 503 Inherited From: pentaho.type.Type#alias See also: pentaho.type.Type#id |
ancestor: |
---|
Gets the parent type in the current type hierarchy, if any, or The root type returns Source: javascript/web/pentaho/type/_type.js, line 266 Inherited From: pentaho.type.Type#ancestor See also: pentaho.type.Type#root , pentaho.type.Type#hasDescendants |
anyLevelsQualitative: |
---|
Gets a value that indicates if the visual role has any qualitative levels. Source: javascript/web/pentaho/visual/role/property.js, line 171 |
anyLevelsQuantitative: |
---|
Gets a value that indicates if the visual role has any quantitative levels. Source: javascript/web/pentaho/visual/role/property.js, line 189 |
application: |
---|
Gets or sets the The application property serves as a collection of properties specific to the container application that can be modified via the Setting this to a Source: javascript/web/pentaho/type/_type.js, line 658 Inherited From: pentaho.type.Type#application |
attributes: |
---|
Gets or sets the attributes metadata related with this visual role property. Source: javascript/web/pentaho/visual/role/property.js, line 418 |
category: |
---|
Gets or sets the category associated with this type. The category is used primarily to group similar types (or instances of) in a user interface. Attempting to set to a non-string value type implicitly converts the value to a string before assignment. Setting this to Setting this to Source: javascript/web/pentaho/type/_type.js, line 727 Inherited From: pentaho.type.Type#category See also: pentaho.type.Type#isBrowsable , pentaho.type.Type#ordinal |
context: |
---|
Gets the context that defined this type class. Source: javascript/web/pentaho/type/_type.js, line 181 Inherited From: pentaho.type.Type#context |
countMax: |
---|
Gets or sets the maximum number of elements that properties of this type can have. A non-negative integer. Note that this attribute is taken together with the This attribute is DynamicWhen a dynamic attribute is set to a function, it can evaluate to a different value for each complex instance. When a dynamic attribute is set to a value other than a function or a This attribute is MonotonicThe value of a monotonic attribute can change, but only in some, predetermined monotonic direction. In this case, a property type having a Because this attribute is also dynamic, the actual This attribute is InheritedWhen there is no local value, the effective value of the attribute is the inherited effective value. The first set local value must respect the monotonicity property with the inherited value. Other characteristicsThe value got by the attribute is the last set local, value, if any - a function, a constant value; or, When set to a When set and the property already has The default (root) Source: javascript/web/pentaho/type/property.js, line 1214 Inherited From: pentaho.type.Property.Type#countMax See also: pentaho.type.Complex#countRangeOf , pentaho.type.spec.IPropertyTypeProto#countMax |
countMaxOn: |
---|
Evaluates the value of the This method is used to determine the effective Source: javascript/web/pentaho/type/property.js, line 1198 Inherited From: pentaho.type.Property.Type#countMaxOn See also: pentaho.type.Property.Type#countMax |
countMin: |
---|
Gets or sets the minimum number of elements that properties of this type must have. A non-negative integer. Note that this attribute is taken together with the This attribute is DynamicWhen a dynamic attribute is set to a function, it can evaluate to a different value for each complex instance. When a dynamic attribute is set to a value other than a function or a This attribute is MonotonicThe value of a monotonic attribute can change, but only in some, predetermined monotonic direction. In this case, a property type having a Because this attribute is also dynamic, the actual This attribute is InheritedWhen there is no local value, the effective value of the attribute is the inherited effective value. The first set local value must respect the monotonicity property with the inherited value. Other characteristicsThe value got by the attribute is the last set local, value, if any - a function, a constant value or When set to a When set and the property already has The default (root) Source: javascript/web/pentaho/type/property.js, line 1128 Inherited From: pentaho.type.Property.Type#countMin See also: pentaho.type.Complex#countRangeOf , pentaho.type.spec.IPropertyTypeProto#countMin |
countMinOn: |
---|
Evaluates the value of the This method is used to determine the effective Source: javascript/web/pentaho/type/property.js, line 1112 Inherited From: pentaho.type.Property.Type#countMinOn See also: pentaho.type.Property.Type#countMin |
dataType: |
---|
Gets or sets the value type of data properties required by the visual role. This attribute is MonotonicThe value of a monotonic attribute can change, but only in some, predetermined monotonic direction. In this case, the attribute can only change to a type that is a This attribute is InheritedWhen there is no local value, the effective value of the attribute is the inherited effective value. The first set local value must respect the monotonicity property with the inherited value. Other characteristicsWhen set and the visual role property already has When set to a Otherwise, the set value is assumed to be an The root Source: javascript/web/pentaho/visual/role/property.js, line 246 |
declaringType: |
---|
Gets the complex type that declares this property type. Source: javascript/web/pentaho/type/property.js, line 220 Inherited From: pentaho.type.Property.Type#declaringType |
defaultValue: |
---|
Gets or sets the default value of properties of this type. The default value is the "prototype" value that properties of this type take, on complex instances, when the property is unspecified or specified as a The value This attribute is DynamicWhen a dynamic attribute is set to a function, it can evaluate to a different value for each complex instance. When a dynamic attribute is set to a value other than a function or a GetWhen got and the default value (local or inherited) is not an instance of the value type (local or inherited), SetWhen set and the property already has When set to When set to the control value
When set to a function, it is accepted. For each complex instance, the function is evaluated and its result converted to the property type's When set to any other value, it is immediately converted to the property type's Source: javascript/web/pentaho/type/property.js, line 510 Overrides: pentaho.type.Property.Type#defaultValue |
defaultView: |
---|
Gets or sets the default view for instances of this type. The identifier of the view's AMD module. If the identifier is relative, it is relative to Setting this to Setting this to a falsy value (like Source: javascript/web/pentaho/type/_type.js, line 973 Inherited From: pentaho.type.Type#defaultView See also: pentaho.type.Type#buildSourceRelativeId |
defaultViewAbs: |
---|
Gets the absolute view module identifier, if any. A default view exists if property Source: javascript/web/pentaho/type/_type.js, line 1008 Inherited From: pentaho.type.Type#defaultViewAbs See also: pentaho.type.Type#defaultView |
description: |
---|
Gets or sets the description of this type. Attempting to set to a non-string value type implicitly converts the value to a string before assignment. Setting this to Setting this to Source: javascript/web/pentaho/type/_type.js, line 687 Inherited From: pentaho.type.Type#description |
domain: |
---|
Gets or sets the list of valid values (or a function that evaluates to these) of properties of this type. This attribute is DynamicWhen a dynamic attribute is set to a function, it can evaluate to a different value for each complex instance. When a dynamic attribute is set to a value other than a function, its value is the same for every complex instance. This attribute is MonotonicThe value of a monotonic attribute can change, but only in some, predetermined monotonic direction. In this case, the list of valid values can only be successfully reduced. When the Because this attribute is also dynamic, the actual This attribute is InheritedWhen there is no local value, the effective value of the attribute is the inherited effective value. The first set local value must respect the monotonicity property with the inherited value. Other characteristicsThe value got by the attribute is the last set local, value, if any - a function, a constant value; or, When set to a When set and the property already has When the The last specified domain determines the order. Source: javascript/web/pentaho/type/mixins/discreteDomain.js, line 77 Inherited From: pentaho.type.Property.Type#domain See also: pentaho.type.Complex#domainOf , pentaho.type.mixins.spec.IDiscreteDomainTypeProto#domain |
domainOn: |
---|
Evaluates the value of the Source: javascript/web/pentaho/type/mixins/discreteDomain.js, line 65 Inherited From: pentaho.type.mixins.DiscreteDomain.Type#domainOn See also: pentaho.type.Property.Type#domain |
elemName: |
---|
Gets the singular name of Source: javascript/web/pentaho/type/property.js, line 185 Inherited From: pentaho.type.Property.Type#elemName Default Value: "property" |
elemType: |
---|
The base element type of the singular values that the property can hold. When the property is a list property, that list type's element type, Otherwise, Source: javascript/web/pentaho/type/property.js, line 354 Inherited From: pentaho.type.Property.Type#elemType |
hasDescendants: |
---|
Gets a value that indicates if this type has any descendant types. Source: javascript/web/pentaho/type/_type.js, line 279 Inherited From: pentaho.type.Type#hasDescendants See also: pentaho.type.Type#ancestor |
helpUrl: |
---|
Gets or sets a URL pointing to documentation associated with this type. Attempting to set to a non-string value type implicitly converts the value to a string before assignment. Setting this to Setting this to Source: javascript/web/pentaho/type/_type.js, line 763 Inherited From: pentaho.type.Type#helpUrl |
id: |
---|
Gets the identifier of this type. The identifier of a type can only be specified when extending the ancestor type. The identifier is only defined for types which have an associated AMD/RequireJS module. However, note that all have a This attribute is not inherited. When unspecified, defaults to the value of Source: javascript/web/pentaho/type/_type.js, line 416 Inherited From: pentaho.type.Type#id See also: pentaho.type.Type#sourceId |
index: |
---|
Gets the index of the property in the containing complex type. Source: javascript/web/pentaho/type/property.js, line 232 Inherited From: pentaho.type.Property.Type#index |
inheritedStyleClasses: |
---|
Gets the style classes of this and any base types. The returned array should not be modified. Source: javascript/web/pentaho/type/_type.js, line 896 Inherited From: pentaho.type.Type#inheritedStyleClasses |
instance: |
---|
Gets the prototype of the instances of this type. Source: javascript/web/pentaho/type/_type.js, line 291 Inherited From: pentaho.type.Type#instance |
isAbstract: |
---|
Gets a value that indicates if this type is abstract. This attribute can only be set once, upon the type definition. Source: javascript/web/pentaho/type/_type.js, line 526 Inherited From: pentaho.type.Type#isAbstract Default Value: false |
isAdvanced: |
---|
Gets or sets the Types with Setting this to a Source: javascript/web/pentaho/type/_type.js, line 830 Inherited From: pentaho.type.Type#isAdvanced See also: pentaho.type.Type#isBrowsable |
isApplicable: |
---|
Gets or sets a value or function that indicates if properties of this type are applicable. When a property is not (currently) applicable, then it does not apply, as it does not make sense in a certain situation. It may only be applicable when another property of the complex type has a specific value, for example. When a property is not currently applicable, its value is not significant and, as such, any validations concerning it are not performed. This attribute is DynamicWhen a dynamic attribute is set to a function, it can evaluate to a different value for each complex instance. When a dynamic attribute is set to a value other than a function or a This attribute is MonotonicThe value of a monotonic attribute can change, but only in some, predetermined monotonic direction. In this case, a property type marked as applicable can later be marked as not applicable. However, a property type marked as not applicable can no longer go back to being applicable. Because this attribute is also dynamic, the actual This attribute is InheritedWhen there is no local value, the effective value of the attribute is the inherited effective value. The first set local value must respect the monotonicity property with the inherited value. Other characteristicsThe value got by the attribute is the last set local, value, if any - a function, a constant value; or, When set to a When set and the property already has The default (root) Source: javascript/web/pentaho/type/property.js, line 1296 Inherited From: pentaho.type.Property.Type#isApplicable See also: pentaho.type.Property.Type#isRequired , pentaho.type.Complex#isApplicableOf , pentaho.type.spec.IPropertyTypeProto#isApplicable |
isApplicableOn: |
---|
Evaluates the value of the Source: javascript/web/pentaho/type/property.js, line 1284 Inherited From: pentaho.type.Property.Type#isApplicableOn See also: pentaho.type.Property.Type#isApplicable |
isBoundary: |
---|
Gets or sets whether the property is a boundary property. A boundary property identifies the limits of the aggregate of its If the value type is a The validity of the object with a boundary property is not affected by the validity of the property's value (or values). Also, changes within its value(s) do not bubble through it. Boundary properties do not cause their values to hold inverse references to the property holder. This means that, in objects connected by boundary properties, only the property holders prevent their values from being garbage collected, and not the other way round. On the contrary, non-boundary properties form object aggregates that can only be garbage-collected as a whole. GetThe default value is SetOnly a root property type can set its boundary attribute. When set on a non-root property type, an error is thrown. When set and the root property already has When set to a Otherwise, the set value is converted to boolean, by using Source: javascript/web/pentaho/type/property.js, line 726 Inherited From: pentaho.type.Property.Type#isBoundary Default Value: false |
isBrowsable: |
---|
Gets or sets the Browsable types are exposed to the end user. Set this attribute to Setting this to a Source: javascript/web/pentaho/type/_type.js, line 796 Inherited From: pentaho.type.Type#isBrowsable |
isComplex: |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/_type.js, line 376 Inherited From: pentaho.type.Type#isComplex |
isContainer: |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/_type.js, line 340 Inherited From: pentaho.type.Type#isContainer |
isElement: |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/_type.js, line 364 Inherited From: pentaho.type.Type#isElement |
isEnabled: |
---|
Gets or sets a value, or function, that indicates if properties of this type can be changed by a user, in a user interface. A property should be set disabled whenever its value is implied/imposed somehow, and thus cannot be changed directly by the user through a user interface. This attribute is DynamicWhen a dynamic attribute is set to a function, it can evaluate to a different value for each complex instance. When a dynamic attribute is set to a value other than a function or a This attribute is MonotonicThe value of a monotonic attribute can change, but only in some, predetermined monotonic direction. In this case, a property type marked as enabled can later be marked as not enabled. However, a property type marked as not enabled can no longer go back to being enabled. Because this attribute is also dynamic, the actual This attribute is InheritedWhen there is no local value, the effective value of the attribute is the inherited effective value. The first set local value must respect the monotonicity property with the inherited value. Other characteristicsThe value got by the attribute is the last set local, value, if any - a function, a constant value; or, When set to a When set and the property already has The default (root) Source: javascript/web/pentaho/type/property.js, line 1376 Inherited From: pentaho.type.Property.Type#isEnabled See also: pentaho.type.Complex#isEnabledOf , pentaho.type.spec.IPropertyTypeProto#isEnabled |
isEnabledOn: |
---|
Evaluates the value of the Source: javascript/web/pentaho/type/property.js, line 1364 Inherited From: pentaho.type.Property.Type#isEnabledOn See also: pentaho.type.Property.Type#isEnabled |
isList: |
---|
Gets a value that indicates if the property is a list. A property is a list property if its Source: javascript/web/pentaho/type/property.js, line 334 Inherited From: pentaho.type.Property.Type#isList |
isProperty: |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/_type.js, line 327 Inherited From: pentaho.type.Type#isProperty |
isReadOnly: |
---|
Gets or sets whether the value of properties of this type can be changed. If the value type is a GetThe default read-only value is the inherited read-only value. A root property type has a default read-only value of SetWhen set and the property already has When set to a Otherwise, the set value is converted to boolean, by using This property is monotonic. Once set to Source: javascript/web/pentaho/type/property.js, line 661 Inherited From: pentaho.type.Property.Type#isReadOnly |
isRequired: |
---|
Gets or sets a value that indicates if properties of this type are required. When a property is of a required property type, it is considered invalid if its value (in a complex instance) is Note that this attribute is taken together with the This attribute is DynamicWhen a dynamic attribute is set to a function, it can evaluate to a different value for each complex instance. When a dynamic attribute is set to a value other than a function or a This attribute is MonotonicThe value of a monotonic attribute can change, but only in some, predetermined monotonic direction. In this case, a property type marked as not required can later be marked as required. However, a property type marked as required can no longer go back to being not required. Because this attribute is also dynamic, the actual required values are only known when evaluated for specific complex instances. This behavior ensures that monotonic changes are deferred until evaluation. No errors are thrown; non-monotonic changes simply do not take effect. This attribute is InheritedWhen there is no local value, the effective value of the attribute is the inherited effective value. The first set local value must respect the monotonicity property with the inherited value. Other characteristicsThe value got by the attribute is the last set local, value, if any - a function, a constant value or When set to a When set and the property already has The default (root) Source: javascript/web/pentaho/type/property.js, line 1039 Overrides: pentaho.type.Property.Type#isRequired See also: pentaho.type.Complex#isRequiredOf , pentaho.type.spec.IPropertyTypeProto#isRequired |
isRequiredOn: |
---|
Evaluates the value of the This method is used to determine the effective Source: javascript/web/pentaho/type/property.js, line 1023 Inherited From: pentaho.type.Property.Type#isRequiredOn See also: pentaho.type.Property.Type#isRequired |
isRoot: |
---|
Gets a value that indicates if this type is the root of its type hierarchy. Source: javascript/web/pentaho/type/_type.js, line 250 Inherited From: pentaho.type.Type#isRoot See also: pentaho.type.Type#root |
isSimple: |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/_type.js, line 388 Inherited From: pentaho.type.Type#isSimple |
isValue: |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/_type.js, line 315 Inherited From: pentaho.type.Type#isValue |
isVisualKey: |
---|
Gets or sets a value that indicates if visual roles of this type are visual keys. This attribute is DynamicWhen a dynamic attribute is set to a function, it can evaluate to a different value for each given visualization model. When a dynamic attribute is set to a value other than a function or a This attribute is MonotonicThe value of a monotonic attribute can change, but only in some, predetermined monotonic direction. In this case, while a visual role's Because this attribute is also dynamic, the actual This attribute is InheritedWhen there is no local value, the effective value of the attribute is the inherited effective value. The first set local value must respect the monotonicity property with the inherited value. Other characteristicsThe value got by the attribute is the last set local, value, if any - a function, a constant value or When set to a When set and the property already has The default (root) When the result of evaluation is Source: javascript/web/pentaho/visual/role/property.js, line 282 |
key: |
---|
Gets the key of the property. The key of a property is its name. Source: javascript/web/pentaho/type/property.js, line 204 Inherited From: pentaho.type.Property.Type#key |
keyName: |
---|
Gets the singular name of Source: javascript/web/pentaho/type/property.js, line 194 Inherited From: pentaho.type.Property.Type#keyName Default Value: "name" |
label: |
---|
Gets or sets the label of this type. When set to a non- When set to an empty string or a nully value, the attribute value is reset. When reset, the attribute assumes its default value (except on the top-root type, The default value is the inherited value. The initial value of the attribute on the top-root type is Source: javascript/web/pentaho/type/_type.js, line 601 Inherited From: pentaho.type.Type#label |
levels: |
---|
Gets or sets the array of measurement levels for which the visual role has a special mode of operation. A visual role that supports more than one measurement level is said to be modal. Visual roles need to support at least one measurement level. This attribute is MonotonicThe value of a monotonic attribute can change, but only in some, predetermined monotonic direction. In this case, a measurement level can be removed from a visual role property, but one cannot be added. This attribute is InheritedWhen there is no local value, the effective value of the attribute is the inherited effective value. The first set local value must respect the monotonicity property with the inherited value. Other characteristicsWhen set to a The returned array or its elements should not be modified. Source: javascript/web/pentaho/visual/role/property.js, line 128 |
mixins: |
---|
Gets or sets the mixin types that are locally mixed into this type. Can be set to either type identifiers, instance classes or type instances and arrays thereof. The attributes defined by the added mixin types become available for extension/configuration on this type. When extending, mixins are always applied first. When set to a Source: javascript/web/pentaho/type/_type.js, line 545 Inherited From: pentaho.type.Type#mixins |
name: |
---|
Gets or sets the name of the property type. The name of a property type identifies it within its SetThis attribute must be set when defining a new property type, and cannot be changed afterwards. When set to a non- Source: javascript/web/pentaho/type/property.js, line 261 Inherited From: pentaho.type.Property.Type#name |
nameAlias: |
---|
Gets or sets the alias for the name of the property type. The alias for the name of a property type is an alternative identifier for serialization purposes. SetThis attribute can only be set when defining a new property type, and cannot be changed afterwards. When set to a non- Source: javascript/web/pentaho/type/property.js, line 307 Inherited From: pentaho.type.Property.Type#nameAlias |
ordinal: |
---|
Gets or sets the ordinal associated with this type. The ordinal is used to disambiguate the order with which a type (or an instance of it) is shown in a user interface. Setting this to a Source: javascript/web/pentaho/type/_type.js, line 930 Inherited From: pentaho.type.Type#ordinal See also: pentaho.type.Type#isBrowsable , pentaho.type.Type#category |
root: |
---|
Gets the root type of this type hierarchy. Even though the ultimate type root of types defined in this system is When deriving a type from Typically, root types are immediate subtypes of For example, Source: javascript/web/pentaho/type/_type.js, line 207 Inherited From: pentaho.type.Type#root See also: pentaho.type.Type#isRoot , pentaho.type.Type#ancestor |
shortId: |
---|
Gets the short identifier of this type. The short identifier of a type is equal to its alias, provided it is defined. Otherwise, it is equal to the identifier. Source: javascript/web/pentaho/type/_type.js, line 461 Inherited From: pentaho.type.Type#shortId See also: pentaho.type.Type#id , pentaho.type.Type#alias |
sourceId: |
---|
Gets the source module identifier of this type. The source identifier is the module identifier of the actual AMD/RequireJS module that provides the type and may be different from the The source identifier is used to resolve module identifiers relative to the source module, as is the case with the The source identifier of a type can only be specified when extending the ancestor type. This attribute is not inherited. When unspecified, defaults to the value of Source: javascript/web/pentaho/type/_type.js, line 446 Inherited From: pentaho.type.Type#sourceId See also: pentaho.type.Type#id , pentaho.type.Type#defaultView |
styleClass: |
---|
Gets or sets the CSS class associated with this type. This attribute is typically used to associate an icon with a type. Attempting to set to a non-string value type implicitly converts the value to a string before assignment. An empty string or Setting to The default value of a type with an Source: javascript/web/pentaho/type/_type.js, line 874 Inherited From: pentaho.type.Type#styleClass |
uid: |
---|
Gets the unique identifier of this type. Unique type identifiers are auto-generated in each session. Note that even anonymous types (those whose This attribute is not inherited. Source: javascript/web/pentaho/type/_type.js, line 201 Inherited From: pentaho.type.Type#uid |
valueType: |
---|
Gets or sets the type of value that properties of this type can hold. If the value type is a GetThe default value type is the inherited value type. A root property type has a default value type of SetWhen set and the property already has When set to a Otherwise, the set value is assumed to be an When set to a value type that is not a Relation to the |
Methods Details
_collectElementValidators(addValidator, owner, value) Protected | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Called each time a property value is validated to collect the list of element validators. When overriding this method, be sure to also call the base implementation. Source: javascript/web/pentaho/type/property.js, line 893 Inherited From: pentaho.type.Property.Type#_collectElementValidators
|
_fillSpecInContext(spec, keyArgs) : boolean Protected | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Fills the given specification with this type's attributes' local values, and returns whether any attribute was actually added. This method requires that there currently exists an This method does not add the special Source: javascript/web/pentaho/type/_type.js, line 1315 Overrides: pentaho.type.Property.Type#_fillSpecInContext
See also: pentaho.type.Instance#toSpecInContext |
_getLabelDefault() : string Protected | ||||
---|---|---|---|---|
Gets the default label of the property. The label of a root property is reset to a capitalization of the Source: javascript/web/pentaho/type/property.js, line 620 Inherited From: pentaho.type.Property.Type#_getLabelDefault
|
_init(spec, keyArgs) Protected | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Performs initialization tasks that take place before the instance is extended with its spec. Source: javascript/web/pentaho/type/property.js, line 134 Inherited From: pentaho.type.Property.Type#_init
|
_postInit(spec, keyArgs) Protected | |||||||||
---|---|---|---|---|---|---|---|---|---|
Performs initialization tasks that take place after the instance is extended with its specification. This method is typically overridden to validate or default the values of the attributes. Source: javascript/web/pentaho/type/_type.js, line 170 Inherited From: pentaho.type.Type#_postInit
|
_validateValueOn(owner, value) : pentaho.type.ValidationError | Array.< Protected | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Validates the given non-null value in the context of this property. The base implementation calls When overriding this method, the error utilities in Source: javascript/web/pentaho/type/property.js, line 853 Inherited From: pentaho.type.Property.Type#_validateValueOn
|
buildSourceRelativeId(id) : string | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Builds an absolute module identifier from one that is relative to the type's Relative module identifiers start with a Absolute identifiers are returned without modification. Source: javascript/web/pentaho/type/_type.js, line 480 Inherited From: pentaho.type.Type#buildSourceRelativeId
See also: pentaho.type.Type#sourceId |
countRangeOn(owner) : pentaho.IRange.< | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Evaluates the element count range of a property of this type on a given complex value. The element count range is a conciliation of the effective value of the following attributes:
The logic can be best explained by the following simple example function:
When the property is not a If The Source: javascript/web/pentaho/type/property.js, line 1484 Inherited From: pentaho.type.Property.Type#countRangeOn
See also: pentaho.type.Complex#countRangeOf |
create(instRef, instKeyArgs) : pentaho.type.Instance | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates or resolves an instance of this type given an instance reference. This method delegates to Source: javascript/web/pentaho/type/_type.js, line 1115 Inherited From: pentaho.type.Type#create
See also: pentaho.type.Type#createAsync , pentaho.type.Type#to , pentaho.type.Type#is Examples Create a complex instance from a specification that contains the type inline. require(["pentaho/type/Context"], function(Context) { Context.createAsync({application: "data-explorer-101"}) .then(function(context) { var Value = context.get("value"); var product = Value.type.create({ _: { props: ["id", "name", {name: "price", valueType: "number"}] }, id: "mpma", name: "Principia Mathematica", price: 1200 }); // ... }); }); Create a list instance from a specification that contains the type inline. require(["pentaho/type/Context"], function(Context) { Context.createAsync({application: "data-explorer-101"}) .then(function(context) { var Value = context.get("value"); var productList = Value.type.create({ _: [{ props: ["id", "name", {name: "price", valueType: "number"}] }], d: [ {id: "mpma", name: "Principia Mathematica", price: 1200}, {id: "flot", name: "The Laws of Thought", price: 500} ] }); // ... }); }); Create an instance from a specification that does not contain the type inline. require(["pentaho/type/Context"], function(Context) { Context.createAsync({application: "data-explorer-101"}) .then(function(context) { var ProductList = context.get([{ props: [ "id", "name", {name: "price", valueType: "number"} ] }]); // Provide the default type, in case the instance spec doesn't provide one. var productList = ProductList.type.create( [ {id: "mpma", name: "Principia Mathematica", price: 1200}, {id: "flot", name: "The Laws of Thought", price: 500} ]); // ... }); }); |
createAsync(instRef, instKeyArgs) : Promise.< | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates or resolves an instance of this type, asynchronously, given an instance reference. This method delegates to Source: javascript/web/pentaho/type/_type.js, line 1136 Inherited From: pentaho.type.Type#createAsync
See also: pentaho.type.Type#create |
defaultValueOn(owner) : pentaho.type.Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a default value for use in a given Ensures that list properties always have a non-null default value. Source: javascript/web/pentaho/type/property.js, line 592 Inherited From: pentaho.type.Property.Type#defaultValueOn
|
getAttributesMaxLevelOf(model) : string | undefined | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Determines the highest level of measurement supported by all of the data attributes of the current mapping of the given visualization model. Any attributes that aren't defined in the visual model's current data should be ignored. Defined attributes should be considered even if their data type is not compatible with the visual role's supported data types. When there are no attributes or when all attributes are invalid, This method should not care about whether the returned level of measurement is one of the supported visual role's measurement levels. Source: javascript/web/pentaho/visual/role/property.js, line 551
|
getLevelCompatibleWith(attributeLevel, allRoleLevels) : string | undefined | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Determines the highest role level of measurement that is compatible with a given data property level of measurement, if any. Source: javascript/web/pentaho/visual/role/property.js, line 596
|
getLevelsCompatibleWith(attributeLevel, allRoleLevels) : Array.< | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Chooses from Source: javascript/web/pentaho/visual/role/property.js, line 616
|
is(value) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Determines if a value is an instance of this type. Source: javascript/web/pentaho/type/_type.js, line 1179 Inherited From: pentaho.type.Type#is
|
isSubtypeOf(superType) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Determines if this is a subtype of another. A type is considered a subtype of itself. Source: javascript/web/pentaho/type/_type.js, line 1191 Inherited From: pentaho.type.Type#isSubtypeOf
|
isVisualKeyOn(model) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Evaluates the value of the If
Source: javascript/web/pentaho/visual/role/property.js, line 653
|
levelAutoOn(model) : string | undefined | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Determines the automatic measurement level of this visual role on the given visualization model, according to the mapping's current state. The automatic measurement level is determined based on the visual role's When the current mapping is empty (has no mapped attributes), When the current mapping is invalid, When more than one measurement level could be used, the highest measurement level is preferred. Source: javascript/web/pentaho/visual/role/property.js, line 505
|
levelEffectiveOn(model) : string | undefined | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Determines the level of measurement on which this visual role will effectively be operating, on the given visualization model, according to the mapping's current state. When A visualization should respect the value of this property (when defined) and actually operate the visual role in the corresponding mode. Source: javascript/web/pentaho/visual/role/property.js, line 481
|
to(value, keyArgs) : pentaho.type.Instance | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Converts a value to an instance of this type, if it is not one already. If a Otherwise, if a given value is not already an instance of this type (checked using Source: javascript/web/pentaho/type/_type.js, line 1212 Inherited From: pentaho.type.Type#to
|
toJSON() : UJsonValue | ||||
---|---|---|---|---|
Creates a JSON specification that describes this type. Attributes which do not have a JSON-compatible specification are omitted. Specifically, attributes with a function value are not supported. This method simply calls Source: javascript/web/pentaho/type/_type.js, line 1290 Inherited From: pentaho.type.Type#toJSON
See also: pentaho.type.Instance#toSpec |
toRef(keyArgs) : pentaho.type.spec.UTypeReference | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Returns a reference to this type. This method returns a reference to this type that is appropriate to be the value of an If an When a type is not anonymous, the For anonymous types, a Some standard types have a special reference syntax. For example: Source: javascript/web/pentaho/type/_type.js, line 1408 Inherited From: pentaho.type.Type#toRef
See also: pentaho.type.Type#toSpec |
toRefInContext(keyArgs) : pentaho.type.spec.UTypeReference | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Returns a reference to this type under a given specification context. This method requires that there currently exists an Source: javascript/web/pentaho/type/_type.js, line 1428 Inherited From: pentaho.type.Type#toRefInContext
See also: pentaho.type.Type#toRef |
toSpec(keyArgs) : pentaho.type.spec.ITypeProto | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a specification that describes this type. If an This method creates a new Source: javascript/web/pentaho/type/_type.js, line 1243 Inherited From: pentaho.type.Type#toSpec
See also: pentaho.type.Type#toSpecInContext , pentaho.type.Type#_fillSpecInContext |
toSpecInContext(keyArgs) : pentaho.type.spec.ITypeProto | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Creates a specification that describes this type. This method requires that there currently exists an The default implementation returns a plain object with the identifier of the type and any other specified attributes (like Source: javascript/web/pentaho/type/_type.js, line 1266 Inherited From: pentaho.type.Type#toSpecInContext
See also: pentaho.type.Type#toSpec |
toString() : string | ||||
---|---|---|---|---|
Returns a textual representation suitable to identify this type in an error message. Source: javascript/web/pentaho/type/_type.js, line 1439 Inherited From: pentaho.type.Type#toString
|
toValueOn(defaultValueOwner, valueSpec) : pentaho.type.Value | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Converts the given value or value specification to a value of this property's value type. If the given value is already an instance of the property's value type, it is returned. By default, if, Source: javascript/web/pentaho/type/property.js, line 566 Inherited From: pentaho.type.Property.Type#toValueOn
|
validateOn(model) : Array.< | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Determines if this visual role is valid on the given visualization model. If generic property validation fails, those errors are returned. Otherwise, validity is further determined as follows:
Source: javascript/web/pentaho/visual/role/property.js, line 732 Overrides: pentaho.type.Property.Type#validateOn
|