Example #1
0
        private static void Collect(HashSet<XNamespace> result, ScoredProperty element)
        {
            result.AddXNamespaceOfXName(element.Name);

            Collect(result, element.Value);
            Collect(result, element.ParameterRef);

            foreach (var p in element.Properties)
            {
                Collect(result, p);
            }

            foreach (var sp in element.ScoredProperties)
            {
                Collect(result, sp);
            }
        }
Example #2
0
        private static void Collect(HashSet<XNamespace> result, Value value)
        {
            if (value == null) return;

            var valueType = value.ValueType;
            result.AddXNamespaceOfXName(valueType);

            if (value.ValueType == Xsd.QName)
            {
                result.AddXNamespaceOfXName(value.AsXName());
            }
        }
Example #3
0
        private static void Collect(HashSet<XNamespace> result, ParameterRef element)
        {
            if (element == null) return;

            result.AddXNamespaceOfXName(element.Name);
        }
Example #4
0
        private static void Collect(HashSet<XNamespace> result, ParameterInit element)
        {
            result.AddXNamespaceOfXName(element.Name);

            Collect(result, element.Value);
        }
Example #5
0
        private static void Collect(HashSet<XNamespace> result, ParameterDef element)
        {
            result.AddXNamespaceOfXName(element.Name);

            foreach (var p in element.Properties)
            {
                Collect(result, p);
            }
        }
Example #6
0
        private static void Collect(HashSet<XNamespace> result, Option option)
        {
            result.AddXNamespaceOfXName(option.Name);
            result.AddXNamespaceOfXName(option.Constrained);

            foreach (var p in option.Properties)
            {
                Collect(result, p);
            }

            foreach (var sp in option.ScoredProperties)
            {
                Collect(result, sp);
            }
        }
Example #7
0
        private static void Collect(HashSet<XNamespace> result, Feature feature)
        {
            result.AddXNamespaceOfXName(feature.Name);

            foreach (var o in feature.Options())
            {
                Collect(result, o);
            }
        }