Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override DefinitionNodeInfoBase CreateCopy()
        {
            DefinitionNodeInfoDimension ret = new DefinitionNodeInfoDimension(TargetRole);


            return(ret);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="isClosed"></param>
        /// <param name="isUsable"></param>
        /// <param name="isall"></param>
        /// <param name="isScenario"></param>
        /// <param name="isDefault"></param>
        /// <param name="isRequired"></param>
        /// <param name="targetRole"></param>
        /// <param name="nodeType"></param>
        /// <returns></returns>
        public static DefinitionNodeInfoBase CreateDefinitionNodeInfo(bool? isClosed,
			bool? isUsable, bool? isall, bool? isScenario,
			bool? isDefault, bool? isRequired, string targetRole,  DimensionNode.NodeType nodeType)
        {
            DefinitionNodeInfoBase ret = null;
            switch( nodeType )
            {
                case DimensionNode.NodeType.Dimension:
                    ret = new DefinitionNodeInfoDimension(targetRole);
                    break;
                case DimensionNode.NodeType.Hypercube:
                    ret = new DefinitionNodeInfoHypercube(isClosed, isall, isScenario, targetRole);
                    break;

                case DimensionNode.NodeType.Item:
                    ret = new DefinitionNodeInfoMember(isUsable, isDefault, isRequired, targetRole);
                    break;

            }

            return ret;
        }
Exemple #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="isClosed"></param>
        /// <param name="isUsable"></param>
        /// <param name="isall"></param>
        /// <param name="isScenario"></param>
        /// <param name="isDefault"></param>
        /// <param name="isRequired"></param>
        /// <param name="targetRole"></param>
        /// <param name="nodeType"></param>
        /// <returns></returns>
        public static DefinitionNodeInfoBase CreateDefinitionNodeInfo(bool?isClosed,
                                                                      bool?isUsable, bool?isall, bool?isScenario,
                                                                      bool?isDefault, bool?isRequired, string targetRole, DimensionNode.NodeType nodeType)
        {
            DefinitionNodeInfoBase ret = null;

            switch (nodeType)
            {
            case DimensionNode.NodeType.Dimension:
                ret = new DefinitionNodeInfoDimension(targetRole);
                break;

            case DimensionNode.NodeType.Hypercube:
                ret = new DefinitionNodeInfoHypercube(isClosed, isall, isScenario, targetRole);
                break;

            case DimensionNode.NodeType.Item:
                ret = new DefinitionNodeInfoMember(isUsable, isDefault, isRequired, targetRole);
                break;
            }

            return(ret);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override DefinitionNodeInfoBase CreateCopy()
        {
            DefinitionNodeInfoDimension ret = new DefinitionNodeInfoDimension(TargetRole);

            return ret;
        }