AbstractModelType
pentaho.visual. AbstractModelType
The type class of pentaho.visual.AbstractModel
.
Extends
Constructor
Name | Description |
---|---|
new AbstractModelType() |
Members
Name | Description |
---|---|
_isLabelSet : boolean Protected | Gets a value that indicates if the label is locally set. |
alias : nonEmptyString | Gets the alias for the identifier of this type. |
ancestor : pentaho.type.Type | Gets the parent type in the current type hierarchy, if any, or |
application : object | Gets or sets the |
category : nonEmptyString | Gets or sets the category associated with this type. |
count | Gets the number of properties of the complex type. |
description : nonEmptyString | Gets or sets the description of this type. |
elementType : pentaho.type.Type | Gets the element type of this type. |
hasDescendants : boolean | Gets a value that indicates if this type has any descendant types. |
helpUrl : nonEmptyString | Gets or sets a URL pointing to documentation associated with this type. |
id : nonEmptyString | Gets the identifier of this type. |
instance : pentaho.type.Instance | Gets the prototype of the instances of this type. |
isAbstract : boolean | Gets a value that indicates if this type is abstract. |
isAdvanced : boolean | Gets or sets the |
isBrowsable : boolean | Gets or sets the |
isComplex : boolean | |
isContainer : boolean | Gets a value that indicates if this type |
isContinuous : boolean | Gets a value that indicates if this is a continuous type. |
isElement : boolean | Gets a value that indicates if this type |
isList : boolean | |
isProperty : boolean | Gets a value that indicates if this type |
isReadOnly : boolean | Gets a value that indicates whether this type, and all of the value types of any property values, cannot be changed, from the outside. |
isRoot : boolean | Gets a value that indicates if this type is the root of its type hierarchy. |
isSimple : boolean | |
isValue : boolean | |
label : nonEmptyString | Gets or sets the label of this type. |
mixins : Array.<pentaho.type.Type> | Gets or sets the mixin types that are locally mixed into this type. |
ordinal : number | Gets or sets the ordinal associated with this type. |
root : pentaho.type.Type | Gets the root type of this type hierarchy. |
shortId : nonEmptyString | Gets the short identifier of this type. |
sourceId : nonEmptyString | Gets the source module identifier of this type. |
uid : number | Gets the unique identifier of this type. |
Methods
Name | Description |
---|---|
_assertNoSubtypesAttribute(attributeName) Protected | Asserts that the type has no subtypes and that as such the given attribute can be set. |
_configureProperties(propTypesSpec) Protected | Adds, overrides or configures properties of this complex type. |
_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 to use when the label is not set. |
_init(spec, keyArgs) : object Protected | Performs initialization tasks that take place before the instance is extended with its specification. |
_normalizeInstanceSpec(instSpec) : * Protected | Actually normalizes a given non- |
_normalizePropertiesSpec(propTypesSpec) : Array.<pentaho.type.spec.IPropertyType> Protected | Normalizes a properties specification. |
_postInit(spec, keyArgs) Protected | Performs initialization tasks that take place after the instance is extended with its specification. |
_toSpecInContextCore(keyArgs) : pentaho.type.spec.IType Protected | Called to actually create a specification of this anonymous type, when it is the first time that this type occurs in the ambient specification context. |
add(propTypeSpec) : pentaho.type.ComplexType | Adds, overrides or configures properties of this complex type. |
areEqual(valueA, valueB) : boolean | Gets a value that indicates if two given values are considered equal. |
areEqualContent(valueA, valueB) : boolean | Gets a value that indicates if two values are equal and content-equal. |
areEqualContentElements(listA, listB) : boolean | Gets a value that indicates if all of the elements of two lists of the same type are content-equal. |
at(index, sloppy) : pentaho.type.PropertyType | Gets the property type object of the property with a given index, if in range, or |
compareElements(valueA, valueB) : number | Compares two element values according to their order. |
create(instSpec, instKeyArgs) : pentaho.type.Instance | Creates or resolves an instance of this type given an instance reference. |
createAsync(instSpec, instKeyArgs) : Promise.<pentaho.type.Instance> | Creates or resolves an instance of this type, asynchronously, given an instance reference. |
createLike(value, config) : pentaho.type.Element | Creates a value of this type based on a given value except with a given configuration applied. |
each(f, x) : pentaho.type.ComplexType | Calls a function for each defined property type. |
eachCommonWith(otherType, fun, ctx) : pentaho.type.ComplexType | Calls a function for each defined property type that this type shares with another given type and whose value can, in principle, be copied from it. |
eachVisualRole(f, x) : pentaho.visual.Model | Calls a function for each defined visual role property type. |
get(name, sloppy) : pentaho.type.PropertyType | Gets the type object of the property with the given name, or |
has(name) : boolean | Gets a value that indicates if a given property is defined. |
hasNormalizedInstanceSpecKeyData(instSpec) : boolean | Gets a value that indicates if a given normalized value specification has any key information. |
is(value) : boolean | Determines if a value is an instance of this type. |
isColorPalette(propType) : boolean | Gets a value that indicates if a given property type is a subtype of |
isSubtypeOf(superType) : boolean | Determines if this is a subtype of another. |
isVisualRole(propType) : boolean | Gets a value that indicates if a given property type is a subtype of |
normalizeInstanceSpec(instSpec) : object | Normalizes a given value specification. |
to(value, keyArgs) : pentaho.type.Instance | Converts a value to an instance of this type, if it is not one already. |
toJSON() : JsonValue | Creates a JSON specification that describes this type. |
toSpec(keyArgs) : pentaho.type.spec.TypeReference | Creates a specification that describes this type. |
toSpecInContext(keyArgs) : pentaho.type.spec.TypeReference | Creates a specification that describes this type. |
toString() : string | Returns a textual representation suitable to identify this type in an error message. |
Constructor Details
new AbstractModelType() |
---|
Source: javascript/web/pentaho/visual/AbstractModel.js, line 91 |
Members Details
_isLabelSet: boolean Protected |
---|
Gets a value that indicates if the label is locally set. Source: javascript/web/pentaho/type/InstanceType.js, line 652 Inherited From: pentaho.type.Type#_isLabelSet |
alias: nonEmptyString |
---|
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/InstanceType.js, line 515 Inherited From: pentaho.type.Type#alias See also: pentaho.type.Type#id |
ancestor: pentaho.type.Type |
---|
Gets the parent type in the current type hierarchy, if any, or The root type returns Source: javascript/web/pentaho/type/InstanceType.js, line 265 Inherited From: pentaho.type.Type#ancestor See also: pentaho.type.Type#root , pentaho.type.Type#hasDescendants |
application: object |
---|
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/InstanceType.js, line 670 Inherited From: pentaho.type.Type#application |
category: nonEmptyString |
---|
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/InstanceType.js, line 739 Inherited From: pentaho.type.Type#category See also: pentaho.type.Type#isBrowsable , pentaho.type.Type#ordinal |
count: |
---|
Gets the number of properties of the complex type. Source: javascript/web/pentaho/type/Complex.js, line 985 Inherited From: pentaho.type.ComplexType#count |
description: nonEmptyString |
---|
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/InstanceType.js, line 699 Inherited From: pentaho.type.Type#description |
elementType: pentaho.type.Type |
---|
Gets the element type of this type. If this type is a Source: javascript/web/pentaho/type/InstanceType.js, line 420 Inherited From: pentaho.type.Type#elementType See also: pentaho.type.Type#isList , pentaho.type.Type#isElement , pentaho.type.ListType#of |
hasDescendants: boolean |
---|
Gets a value that indicates if this type has any descendant types. Source: javascript/web/pentaho/type/InstanceType.js, line 278 Inherited From: pentaho.type.Type#hasDescendants See also: pentaho.type.Type#ancestor |
helpUrl: nonEmptyString |
---|
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/InstanceType.js, line 775 Inherited From: pentaho.type.Type#helpUrl |
id: nonEmptyString |
---|
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/InstanceType.js, line 449 Overrides: pentaho.type.ComplexType#id See also: pentaho.type.Type#sourceId |
instance: pentaho.type.Instance |
---|
Gets the prototype of the instances of this type. Source: javascript/web/pentaho/type/InstanceType.js, line 290 Inherited From: pentaho.type.Type#instance |
isAbstract: boolean |
---|
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/InstanceType.js, line 538 Default Value: false Overrides: pentaho.type.ComplexType#isAbstract |
isAdvanced: boolean |
---|
Gets or sets the Types with Setting this to a Source: javascript/web/pentaho/type/InstanceType.js, line 842 Inherited From: pentaho.type.Type#isAdvanced See also: pentaho.type.Type#isBrowsable |
isBrowsable: boolean |
---|
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/InstanceType.js, line 808 Inherited From: pentaho.type.Type#isBrowsable |
isComplex: boolean |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/InstanceType.js, line 374 Inherited From: pentaho.type.Type#isComplex |
isContainer: boolean |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/InstanceType.js, line 339 Inherited From: pentaho.type.Type#isContainer |
isContinuous: boolean |
---|
Gets a value that indicates if this is a continuous type. A non-continuous type is said to be categorical. The default implementation returns false. The types Source: javascript/web/pentaho/type/InstanceType.js, line 402 Inherited From: pentaho.type.Type#isContinuous |
isElement: boolean |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/InstanceType.js, line 363 Inherited From: pentaho.type.Type#isElement |
isList: boolean |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/InstanceType.js, line 351 Inherited From: pentaho.type.Type#isList |
isProperty: boolean |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/InstanceType.js, line 326 Inherited From: pentaho.type.Type#isProperty |
isReadOnly: boolean |
---|
Gets a value that indicates whether this type, and all of the value types of any property values, cannot be changed, from the outside. The value of A All of the properties of a read-only complex type are implicitly marked Source: javascript/web/pentaho/type/Complex.js, line 831 Inherited From: pentaho.type.ComplexType#isReadOnly |
isRoot: boolean |
---|
Gets a value that indicates if this type is the root of its type hierarchy. Source: javascript/web/pentaho/type/InstanceType.js, line 249 Inherited From: pentaho.type.Type#isRoot See also: pentaho.type.Type#root |
isSimple: boolean |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/InstanceType.js, line 386 Inherited From: pentaho.type.Type#isSimple |
isValue: boolean |
---|
Gets a value that indicates if this type Source: javascript/web/pentaho/type/InstanceType.js, line 314 Inherited From: pentaho.type.Type#isValue |
label: nonEmptyString |
---|
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/InstanceType.js, line 613 Inherited From: pentaho.type.Type#label |
mixins: Array.<pentaho.type.Type> |
---|
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/InstanceType.js, line 557 Inherited From: pentaho.type.Type#mixins |
ordinal: number |
---|
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/InstanceType.js, line 875 Inherited From: pentaho.type.Type#ordinal See also: pentaho.type.Type#isBrowsable , pentaho.type.Type#category |
root: pentaho.type.Type |
---|
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/InstanceType.js, line 206 Inherited From: pentaho.type.Type#root See also: pentaho.type.Type#isRoot , pentaho.type.Type#ancestor |
shortId: nonEmptyString |
---|
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/InstanceType.js, line 492 Inherited From: pentaho.type.Type#shortId See also: pentaho.type.Type#id , pentaho.type.Type#alias |
sourceId: nonEmptyString |
---|
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. 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/InstanceType.js, line 477 Inherited From: pentaho.type.Type#sourceId See also: pentaho.type.Type#id |
uid: number |
---|
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/InstanceType.js, line 200 Inherited From: pentaho.type.Type#uid |
Methods Details
_assertNoSubtypesAttribute(attributeName) Protected | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Asserts that the type has no subtypes and that as such the given attribute can be set. Source: javascript/web/pentaho/type/InstanceType.js, line 1045 Inherited From: pentaho.type.Type#_assertNoSubtypesAttribute
|
_configureProperties(propTypesSpec) Protected | ||||||
---|---|---|---|---|---|---|
Adds, overrides or configures properties of this complex type. Source: javascript/web/pentaho/type/Complex.js, line 867 Inherited From: pentaho.type.ComplexType#_configureProperties
|
_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/InstanceType.js, line 1248 Inherited From: pentaho.type.Type#_fillSpecInContext
See also: pentaho.type.Instance#toSpecInContext |
_getLabelDefault() : string Protected | ||||
---|---|---|---|---|
Gets the default label to use when the label is not set. Source: javascript/web/pentaho/type/InstanceType.js, line 641 Inherited From: pentaho.type.Type#_getLabelDefault
|
_init(spec, keyArgs) : object Protected | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Performs initialization tasks that take place before the instance is extended with its specification. This method is typically overridden to block the inheritance of certain attributes. Source: javascript/web/pentaho/type/InstanceType.js, line 164 Inherited From: pentaho.type.Type#_init
|
_normalizeInstanceSpec(instSpec) : * Protected | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Actually normalizes a given non- Override this method to improve the Type API support for types that have a non-generic serialization format. The default implementation simply returns the given value specification. Source: javascript/web/pentaho/type/Value.js, line 508 Inherited From: pentaho.type.ValueType#_normalizeInstanceSpec
|
_normalizePropertiesSpec(propTypesSpec) : Array.<pentaho.type.spec.IPropertyType> Protected | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Normalizes a properties specification. Source: javascript/web/pentaho/type/Complex.js, line 880 Inherited From: pentaho.type.ComplexType#_normalizePropertiesSpec
|
_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/InstanceType.js, line 182 Inherited From: pentaho.type.Type#_postInit
|
_toSpecInContextCore(keyArgs) : pentaho.type.spec.IType Protected | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Called to actually create a specification of this anonymous type, when it is the first time that this type occurs in the ambient specification context. Source: javascript/web/pentaho/type/InstanceType.js, line 1197 Inherited From: pentaho.type.Type#_toSpecInContextCore
See also: pentaho.type.Type#_toSpecInContextCore |
add(propTypeSpec) : pentaho.type.ComplexType | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Adds, overrides or configures properties of this complex type. Source: javascript/web/pentaho/type/Complex.js, line 1066 Inherited From: pentaho.type.ComplexType#add
|
areEqual(valueA, valueB) : boolean | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if two given values are considered equal. Two values are considered equal if they represent the same real-world entity. The execution proceeds as follows:
Source: javascript/web/pentaho/type/Value.js, line 411 Inherited From: pentaho.type.ValueType#areEqual
See also: pentaho.type.Value#$key , pentaho.type.Value#equals |
areEqualContent(valueA, valueB) : boolean | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if two values are equal and content-equal. Checks that both values are Source: javascript/web/pentaho/type/Value.js, line 431 Inherited From: pentaho.type.ValueType#areEqualContent
|
areEqualContentElements(listA, listB) : boolean | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if all of the elements of two lists of the same type are content-equal. Source: javascript/web/pentaho/type/Value.js, line 445 Inherited From: pentaho.type.ValueType#areEqualContentElements
|
at(index, sloppy) : pentaho.type.PropertyType | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the property type object of the property with a given index, if in range, or Source: javascript/web/pentaho/type/Complex.js, line 966 Inherited From: pentaho.type.ComplexType#at
|
compareElements(valueA, valueB) : number | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Compares two element values according to their order. Execution proceeds as follows:
Source: javascript/web/pentaho/type/Element.js, line 296 Inherited From: pentaho.type.ElementType#compareElements
|
create(instSpec, 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/InstanceType.js, line 977 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/Instance", "pentaho/type/standard"], function(Instance) { var product = Instance.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/Instance", "pentaho/type/standard"], function(Instance) { var productList = Instance.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/Instance", "pentaho/type/standard"], function(Instance) { var ProductList = Instance.type.create([{ 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(instSpec, instKeyArgs) : Promise.<pentaho.type.Instance> | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates or resolves an instance of this type, asynchronously, given an instance reference. This method delegates to Source: javascript/web/pentaho/type/InstanceType.js, line 998 Inherited From: pentaho.type.Type#createAsync
See also: pentaho.type.Type#create |
createLike(value, config) : pentaho.type.Element | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a value of this type based on a given value except with a given configuration applied. If this is an entity type, it can only be called if either the given configuration does not contain entity key information or if it contains the same entity key information as the given value. The default implementation obtains the specification of the given value, merges it with the given configuration, and creates a new value from the resulting specification. Source: javascript/web/pentaho/type/Element.js, line 367 Inherited From: pentaho.type.ElementType#createLike
See also: pentaho.type.ValueType#isEntity , pentaho.type.Value#$key , pentaho.type.Type#hasNormalizedInstanceSpecKeyData |
each(f, x) : pentaho.type.ComplexType | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Calls a function for each defined property type. Source: javascript/web/pentaho/type/Complex.js, line 1001 Inherited From: pentaho.type.ComplexType#each
|
eachCommonWith(otherType, fun, ctx) : pentaho.type.ComplexType | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Calls a function for each defined property type that this type shares with another given type and whose value can, in principle, be copied from it. This method finds the lowest common ancestor of both types. If it is a complex type, each of the corresponding local properties is yielded. Source: javascript/web/pentaho/type/Complex.js, line 1030 Inherited From: pentaho.type.ComplexType#eachCommonWith
|
eachVisualRole(f, x) : pentaho.visual.Model | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Calls a function for each defined visual role property type. A visual role property type is a property type which is a subtype of Source: javascript/web/pentaho/visual/AbstractModel.js, line 332
|
get(name, sloppy) : pentaho.type.PropertyType | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the type object of the property with the given name, or If a property type object is specified, it is returned back only if it is the property type object of same name in this complex type. Source: javascript/web/pentaho/type/Complex.js, line 915 Inherited From: pentaho.type.ComplexType#get
|
has(name) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if a given property is defined. If a property type object is specified, this method tests whether it is the same property type object that exists under that name, if any. Source: javascript/web/pentaho/type/Complex.js, line 946 Inherited From: pentaho.type.ComplexType#has
|
hasNormalizedInstanceSpecKeyData(instSpec) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if a given normalized value specification has any key information. The default implementation returns Source: javascript/web/pentaho/type/Value.js, line 525 Inherited From: pentaho.type.ValueType#hasNormalizedInstanceSpecKeyData
See also: pentaho.type.ValueType#isEntity , pentaho.type.ValueType#normalizeInstanceSpec , pentaho.type.Value#$key |
is(value) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Determines if a value is an instance of this type. Source: javascript/web/pentaho/type/InstanceType.js, line 1059 Inherited From: pentaho.type.Type#is
|
isColorPalette(propType) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if a given property type is a subtype of Source: javascript/web/pentaho/visual/AbstractModel.js, line 360
|
isSubtypeOf(superType) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Determines if this is a subtype of another. A type is considered a subtype of itself. Source: javascript/web/pentaho/type/InstanceType.js, line 1071 Inherited From: pentaho.type.Type#isSubtypeOf
|
isVisualRole(propType) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if a given property type is a subtype of Source: javascript/web/pentaho/visual/AbstractModel.js, line 349
|
normalizeInstanceSpec(instSpec) : object | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Normalizes a given value specification. Usually, "deserialization" is handled in a type's constructor. However, for proper handling of the For example, some complex types can serialize as a single string if only its main property is specified. In such cases, this method would return a normal, object, generic specification containing the given value as the value of the main property. This method calls the Source: javascript/web/pentaho/type/Value.js, line 488 Inherited From: pentaho.type.ValueType#normalizeInstanceSpec
|
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/InstanceType.js, line 1092 Inherited From: pentaho.type.Type#to
|
toJSON() : JsonValue | ||||
---|---|---|---|---|
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/InstanceType.js, line 1223 Inherited From: pentaho.type.Type#toJSON
See also: pentaho.type.Instance#toSpec |
toSpec(keyArgs) : pentaho.type.spec.TypeReference | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a specification that describes this type. If an This method creates a new This method returns a reference to this type that is appropriate to be the value of an When a type has an identifier, its For anonymous types, a Source: javascript/web/pentaho/type/InstanceType.js, line 1137 Inherited From: pentaho.type.Type#toSpec
See also: pentaho.type.Type#toSpecInContext , pentaho.type.Type#_fillSpecInContext |
toSpecInContext(keyArgs) : pentaho.type.spec.TypeReference | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Creates a specification that describes this type. This method requires that there currently exists an This method handles the cases where this type has an Source: javascript/web/pentaho/type/InstanceType.js, line 1166 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/InstanceType.js, line 1293 Inherited From: pentaho.type.Type#toString
|