123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418 |
- "use strict";
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- /**
- * Licensed Materials - Property of IBM
- * IBM Business Analytics (C) Copyright IBM Corp. 2018, 2019
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- /**
- * @class MetadataColumnAPI
- * @hideconstructor
- * @classdesc implementation of the MetadataColumnAPI interface.
- */
- define([], function () {
- var MetadataColumnAPI = function () {
- function MetadataColumnAPI() {
- _classCallCheck(this, MetadataColumnAPI);
- }
- /**
- * @function MetadataColumnAPI#getObjectType
- * @description Return the object type (e.g. 'QueryItem').
- * @public
- *
- * @return {String} objectType
- */
- MetadataColumnAPI.prototype.getObjectType = function getObjectType() {};
- /**
- * @function MetadataColumnAPI#getId
- * @description Return the metadata column unique indentifier.
- * @public
- *
- * @return {String} unique identifier
- */
- MetadataColumnAPI.prototype.getId = function getId() {};
- /**
- * @function MetadataColumnAPI#getSourceId
- * @description Return the unique identifier of the metadata source.
- * @public
- *
- * @return {String} unique data source identifier
- */
- MetadataColumnAPI.prototype.getSourceId = function getSourceId() {};
- /**
- * @function MetadataColumnAPI#getLabel
- * @description Return the display label of the metadata column.
- * @public
- *
- * @return {String} display label
- */
- MetadataColumnAPI.prototype.getLabel = function getLabel() {};
- /**
- * @function MetadataColumnAPI#getType
- * @description Return the column type (e.g. 'attribute', 'fact').
- * @public
- *
- * @return {String} type
- */
- MetadataColumnAPI.prototype.getType = function getType() {};
- /**
- * @function MetadataColumnAPI#getDataType
- * @description Return the column data type (e.g. 'integer', 'string', etc ).
- * @public
- *
- * @return {String} type - possible values: 'integer' 'decimal', 'double', 'float', 'string', 'date', 'datetime', 'time'
- *
- *
- */
- MetadataColumnAPI.prototype.getDataType = function getDataType() {};
- /**
- * @function MetadataColumnAPI#getDefaultAggregation
- * @description Return the column default aggregation.
- * @public
- *
- * @return {String} defaultAggregation
- */
- MetadataColumnAPI.prototype.getDefaultAggregation = function getDefaultAggregation() {};
- /**
- * @function MetadataColumnAPI#getAggregationMode
- * @description Return the column aggregation mode.
- * @public
- *
- * @return {String} aggregationMode
- */
- MetadataColumnAPI.prototype.getAggregationMode = function getAggregationMode() {};
- /**
- * @function MetadataColumnAPI#getTaxonomyList
- * @description Return the list of column taxonomy.
- * @public
- *
- * @return {TaxonomyAPI[]} taxnonomy list
- */
- MetadataColumnAPI.prototype.getTaxonomyList = function getTaxonomyList() {};
- /**
- * @function MetadataColumnAPI#getDefaultSortType
- * @description Return the column sort type.
- * @public
- *
- * @return {String} sortType
- */
- MetadataColumnAPI.prototype.getDefaultSortType = function getDefaultSortType() {};
- /**
- * @function MetadataColumnAPI#getFormat
- * @description Return the column data format setting.
- * @public
- *
- * @param {Object} options ignoreDefaultFormatting - Ignore any default formatting
- * @return {FormatSpec} formatSpec
- */
- MetadataColumnAPI.prototype.getFormat = function getFormat() /* options */{};
- /**
- * @public
- * @function MetadataColumnAPI#getRootMember
- * @description Return the rootmember id when the column is a hierarchy.
- * @return {String} rootMember
- */
- MetadataColumnAPI.prototype.getRootMember = function getRootMember() {};
- /**
- * @async
- * @public
- * @function MetadataColumnAPI#isLeafMember
- * @description Determines whether a member is a leaf member.
- * @param {String} memberId Member unique name of the given member
- * @return {Promise<Boolean>} True if the member is a leaf, otherwise false
- */
- MetadataColumnAPI.prototype.isLeafMember = function isLeafMember() {};
- /**
- * @function MetadataColumnAPI#setLabel
- * @description Set the display label of the metadata column.
- * @param {String} label
- * @public
- */
- MetadataColumnAPI.prototype.setLabel = function setLabel() /* label */{};
- /**
- * @function MetadataColumnAPI#setHidden
- * @description Hide or show the column
- * @param {Boolean} bool
- * @public
- */
- MetadataColumnAPI.prototype.setHidden = function setHidden() /* bool */{};
- /**
- * @function MetadataColumnAPI#isFacetDefinitionEnabled
- * @description Determine whether the facet definition is enabled.
- * @public
- *
- * @return {Boolean} true if facet definition is enabled, otherwise false
- *
- */
- MetadataColumnAPI.prototype.isFacetDefinitionEnabled = function isFacetDefinitionEnabled() {};
- /**
- * @function MetadataColumnAPI#getSourceCategory
- * @description Returns the source category of the column, such as 'hierarchy', or 'level', etc. For relational type of dataset, this should return as 'column'.
- * @public
- *
- * @return {String} sourceCategory
- **/
- MetadataColumnAPI.prototype.getSourceCategory = function getSourceCategory() {};
- /**
- * @function MetadataColumnAPI#isHierarchy
- * @description Determine whether the column is an OLAP hierarchy.
- * @public
- *
- * @return {Boolean} true if the column is an OLAP hierarchy, otherwise false
- *
- **/
- MetadataColumnAPI.prototype.isHierarchy = function isHierarchy() {};
- /**
- * @function MetadataColumnAPI#isNamedSet
- * @description Determine whether the column is a named set.
- * @public
- *
- * @return {Boolean} true if hte column is a named set, otherwise false
- *
- **/
- MetadataColumnAPI.prototype.isNamedSet = function isNamedSet() {};
- /**
- * @function MetadataColumnAPI#isProperty
- * @description Determine whether the column is a property.
- * @public
- *
- * @return {Boolean} true if the column is a property, otherwise false
- *
- **/
- MetadataColumnAPI.prototype.isProperty = function isProperty() {};
- /**
- * @function MetadataColumnAPI#isLevel
- * @description Determine whether the column is a level.
- * @public
- *
- * @return {Boolean} true if the column is a level, otherwise false
- *
- **/
- MetadataColumnAPI.prototype.isLevel = function isLevel() {};
- /**
- * @function MetadataColumnAPI#isSingleRootHierarchy
- * @description Determine whether the column is a single root hierarchy
- * @public
- *
- * @return {Boolean} true if the column is a single root hierarchy, otherwise false
- *
- **/
- MetadataColumnAPI.prototype.isSingleRootHierarchy = function isSingleRootHierarchy() {};
- /**
- * @function MetadataColumnAPI#getReferencedHierarchyId
- * @description Returns the referenced hierarchy when it exists. For example, the referenced hierarchy of a namedSet object
- * is the hierarchy the namedSet belongs to
- * @public
- *
- * @return {string} hierarchy identifier
- */
- MetadataColumnAPI.prototype.getReferencedHierarchyId = function getReferencedHierarchyId() {};
- /**
- * @function MetadataColumnAPI#isOlapColumn
- * @description Determine whether the column is an OLAP column
- * @public
- *
- * @return {Boolean} true if the column is an OLAP column, otherwise false
- */
- MetadataColumnAPI.prototype.isOlapColumn = function isOlapColumn() {};
- /**
- * @function MetadataColumnAPI#isNumericDataType
- * @description Determine whether the column is a number data type (e.g. 'integer', 'decimal', etc) column
- * @public
- *
- * @return {Boolean} true if the column is a number type, otherwise false
- */
- MetadataColumnAPI.prototype.isNumericDataType = function isNumericDataType() {};
- /**
- * @function MetadataColumnAPI#isDateTimeDataType
- * @description Determine whether the column is a data/time data type (e.g. 'date', 'time', etc) column
- * @public
- * @return {Boolean} true if the column is a date/time type, otherwise false
- */
- MetadataColumnAPI.prototype.isDateTimeDataType = function isDateTimeDataType() {};
- /**
- * @function MetadataColumnAPI#isFilter
- * @description Determine whether the column is a filter
- * @public
- * @return {Boolean} true if the column is a filter, otherwise false
- */
- MetadataColumnAPI.prototype.isFilter = function isFilter() {};
- /**
- * @function MetadataColumnAPI#isEditableCalculation
- * @description Determine whether the column is an editable calculation
- * @public
- *
- * @return {Boolean} true if the column is an editable calculation, otherwise false
- */
- MetadataColumnAPI.prototype.isEditableCalculation = function isEditableCalculation() {};
- /**
- * @function MetadataColumnAPI#getTableId
- * @description Get table id
- * @public
- *
- * @return {Boolean} true if the column is an editable calculation, otherwise false
- */
- MetadataColumnAPI.prototype.getTableId = function getTableId() {};
- /**
- * @function MetadataColumnAPI#getTableName
- * @description Get the table name that this column belongs to
- * @public
- *
- * @return {String} tableName
- */
- MetadataColumnAPI.prototype.getTableName = function getTableName() {};
- /**
- * @public
- * @deprecated
- * @function MetadataColumnAPI#getDeprecatedMetadataColumn
- * @description Get the legacy metadata column object
- * @return {Object} legacy metadata column object
- *
- * @TODO - livewidget_cleanup - demolish this API
- */
- MetadataColumnAPI.prototype.getDeprecatedMetadataColumn = function getDeprecatedMetadataColumn() {};
- /**
- * @function MetadataColumnAPI#isHidden
- * @description Determine whether the column is hidden
- * @public
- *
- * @return {Boolean} true if the column is hidden, otherwise false
- */
- MetadataColumnAPI.prototype.isHidden = function isHidden() {};
- /**
- * @function MetadataColumnAPI#isMissing
- * @description Determine whether the column is missing
- * @public
- *
- * @return {Boolean} true if the column is missing, otherwise false
- */
- MetadataColumnAPI.prototype.isMissing = function isMissing() {};
- /**
- * @function MetadataColumnAPI#getParent
- * @description Returns the parent MetadataColumnAPI
- * @public
- *
- * @return {MetadataColumnAPI} MetadataColumnAPI or null
- */
- MetadataColumnAPI.prototype.getParent = function getParent() {};
- /**
- * @function MetadataColumnAPI#getHierarchyLevelIds
- * @description Returns the levelIds of the hierarchy in natural order.
- * @public
- *
- * @return {String[]} an array of levelIds
- */
- MetadataColumnAPI.prototype.getHierarchyLevelIds = function getHierarchyLevelIds() {};
- return MetadataColumnAPI;
- }();
- return MetadataColumnAPI;
- });
- //# sourceMappingURL=MetadataColumnAPI.js.map
|