2018-09-25 16:04:11 +00:00
|
|
|
|
/** @typedef {Trees.GlobalAttributeTree.Node.Attributes} NodeAttributes */
|
2018-10-10 14:53:39 +00:00
|
|
|
|
/** @typedef {Trees.GlobalAttributeTree.Node.Attributes.Attribute} NodeAttribute */
|
2018-09-25 16:04:11 +00:00
|
|
|
|
|
2018-09-18 12:17:34 +00:00
|
|
|
|
/**
|
|
|
|
|
* Интерфейс позволяющей пользователю работать с атрибутами ноды
|
|
|
|
|
*
|
2018-09-24 16:03:29 +00:00
|
|
|
|
* @group manager
|
2018-09-18 12:17:34 +00:00
|
|
|
|
* @class Attributes
|
|
|
|
|
* @memberof Trees.GlobalAttributeTree.Node
|
|
|
|
|
*/
|
|
|
|
|
function Attributes() {
|
|
|
|
|
/**
|
|
|
|
|
* Возвращает список атрибутов ноды
|
|
|
|
|
*
|
|
|
|
|
* @public
|
|
|
|
|
* @function attributes
|
2018-09-20 10:53:30 +00:00
|
|
|
|
* @returns {v2.map(v2.string, v2.vc)}
|
2018-09-18 12:17:34 +00:00
|
|
|
|
* @memberof Trees.GlobalAttributeTree.Node.Attributes
|
|
|
|
|
*/
|
|
|
|
|
this.attributes = function() {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Возвращает список базовых атрибутов ноды
|
|
|
|
|
*
|
|
|
|
|
* @public
|
|
|
|
|
* @function base_attributes
|
|
|
|
|
* @returns {v2.vc}
|
|
|
|
|
* @memberof Trees.GlobalAttributeTree.Node.Attributes
|
|
|
|
|
*/
|
|
|
|
|
this.base_attributes = function() {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Возвращает ссылку на атрибут ноды
|
|
|
|
|
*
|
|
|
|
|
* @public
|
|
|
|
|
* @function get
|
2018-09-18 14:41:21 +00:00
|
|
|
|
* @param {v2.string} attributeName
|
2018-09-19 10:40:04 +00:00
|
|
|
|
* @returns {tools.promise}
|
2018-09-18 12:17:34 +00:00
|
|
|
|
* @memberof Trees.GlobalAttributeTree.Node.Attributes
|
|
|
|
|
*/
|
|
|
|
|
this.get = function(attributeName) {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Проверяет наличие любого атрибута у ноды
|
|
|
|
|
*
|
|
|
|
|
* @public
|
|
|
|
|
* @function is_exist_attribute
|
2018-09-18 14:41:21 +00:00
|
|
|
|
* @param {v2.string} attributeName
|
2018-09-18 12:17:34 +00:00
|
|
|
|
* @returns {boolean}
|
|
|
|
|
* @memberof Trees.GlobalAttributeTree.Node.Attributes
|
|
|
|
|
*/
|
|
|
|
|
this.is_exist_attribute = function(attributeName) {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Провеляет наличие базового атрибута у ноды
|
|
|
|
|
*
|
|
|
|
|
* @public
|
|
|
|
|
* @function has_base_attribute
|
2018-09-18 14:41:21 +00:00
|
|
|
|
* @param {v2.string} attributeName
|
2018-09-18 12:17:34 +00:00
|
|
|
|
* @returns {boolean}
|
|
|
|
|
* @memberof Trees.GlobalAttributeTree.Node.Attributes
|
|
|
|
|
*/
|
|
|
|
|
this.has_base_attribute = function(attributeName) {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Добавляет динамические атрибуты в ноду
|
|
|
|
|
*
|
|
|
|
|
* @public
|
|
|
|
|
* @function add
|
2018-09-18 14:41:21 +00:00
|
|
|
|
* @param {v2.vc} attributes список атрибутов
|
2018-09-18 12:17:34 +00:00
|
|
|
|
* @returns {v2.model_type}
|
|
|
|
|
* @memberof Trees.GlobalAttributeTree.Node.Attributes
|
|
|
|
|
*/
|
|
|
|
|
this.add = function(attributes) {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Удаляет динамические атрибуты из ноды
|
|
|
|
|
*
|
|
|
|
|
* @public
|
|
|
|
|
* @function remove
|
2018-09-18 14:41:21 +00:00
|
|
|
|
* @param {v2.set(v2.string)} attributes
|
2018-09-18 12:17:34 +00:00
|
|
|
|
* @returns {v2.model_type}
|
|
|
|
|
* @memberof Trees.GlobalAttributeTree.Node.Attributes
|
|
|
|
|
*/
|
|
|
|
|
this.remove = function(attributes) {
|
|
|
|
|
|
|
|
|
|
};
|
2018-09-24 16:03:29 +00:00
|
|
|
|
}
|