Ejemplo n.º 1
0
        /// <summary>
        /// Gets the number of dimensions.
        /// </summary>
        /// <param name="withoutLabels">if set to <c>true</c> [without labels].</param>
        /// <returns></returns>
        public Int32 GetNumberOfDimensions(Boolean withoutLabels = true)
        {
            Int32 c = 0;

            if (Properties.Any())
            {
                foreach (var p in Properties)
                {
                    c += p.GetNumberOfDimensions(withoutLabels);
                }
            }
            else
            {
                if (!withoutLabels)
                {
                    if (!LabelXPathRelative.isNullOrEmpty())
                    {
                        c++;
                    }
                }
                if (!DataXPathRelative.isNullOrEmpty())
                {
                    c++;
                }
            }

            return(c);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Deploys the DataPoint by graph leaf
        /// </summary>
        /// <param name="leaf">The leaf.</param>
        /// <param name="isDynamic">if set to <c>true</c> [is dynamic].</param>
        /// <returns></returns>
        public Boolean SetLeaf(LeafNodeDictionaryEntry leaf, Boolean isDynamic)
        {
            if (isDynamic)
            {
                if (DataXPathRelative.isNullOrEmpty())
                {
                    DataXPathRelative = leaf.XPath;

                    if (!LabelXPathRelative.isNullOrEmpty())
                    {
                        DataPointXPathRoot = new List <String>()
                        {
                            DataXPathRelative, LabelXPathRelative
                        }
                    }