/// <summary> /// /// </summary> /// <returns></returns> public override DefinitionNodeInfoBase CreateCopy() { DefinitionNodeInfoHypercube ret = new DefinitionNodeInfoHypercube(); ret.TargetRole = this.TargetRole; ret.isScenario = this.isScenario; ret.isClosed = this.isClosed; ret.isAllRelationShip = this.isAllRelationShip; return(ret); }
/// <summary> /// /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(object obj) { DefinitionNodeInfoHypercube other = obj as DefinitionNodeInfoHypercube; //check the properties as we want to assume default values if it is not specified... //for equality purposes.... if (this.IsClosed != other.IsClosed) { return(false); } if (this.IsAllRelationShip != other.IsAllRelationShip) { return(false); } if (this.IsScenario != other.IsScenario) { return(false); } return(base.Equals(obj)); }
/// <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> /// <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() { DefinitionNodeInfoHypercube ret = new DefinitionNodeInfoHypercube(); ret.TargetRole = this.TargetRole; ret.isScenario = this.isScenario; ret.isClosed = this.isClosed; ret.isAllRelationShip = this.isAllRelationShip; return ret; }