Beispiel #1
0
        /// <summary>
        /// Sets an aggregate element as the source of the pattern element.
        /// </summary>
        /// <param name="element">Element to set as the source.</param>
        public void Aggregate(AggregateElement element)
        {
            AssertSingleSource();
            var builder = BuilderAdapter.Create(element);

            _sourceBuilder = builder;
        }
Beispiel #2
0
        /// <summary>
        /// Sets a group as the source of the negative existential element.
        /// </summary>
        /// <param name="element">Element to set as the source.</param>
        public void Group(GroupElement element)
        {
            AssertSingleSource();
            var builder = BuilderAdapter.Create(element);

            _sourceBuilder = builder;
        }
Beispiel #3
0
        /// <summary>
        /// Sets a binding element as the source of the pattern element.
        /// </summary>
        /// <param name="element">Element to set as the source.</param>
        public void Binding(BindingElement element)
        {
            AssertSingleSource();
            var builder = BuilderAdapter.Create(element);

            _sourceBuilder = builder;
        }
Beispiel #4
0
 /// <summary>
 /// Sets a pattern as the source of the negative existential element.
 /// </summary>
 /// <param name="element">Element to set as the source.</param>
 public void Pattern(PatternElement element)
 {
     AssertSingleSource();
     _sourceBuilder = BuilderAdapter.Create(element);
 }
Beispiel #5
0
        /// <summary>
        /// Adds a nested group to this group element.
        /// </summary>
        /// <param name="element">Element to add.</param>
        public void Group(GroupElement element)
        {
            var builder = BuilderAdapter.Create(element);

            _nestedBuilders.Add(builder);
        }
Beispiel #6
0
        /// <summary>
        /// Adds a pattern to the group element.
        /// </summary>
        /// <param name="element">Element to add.</param>
        public void Pattern(PatternElement element)
        {
            var builder = BuilderAdapter.Create(element);

            _nestedBuilders.Add(builder);
        }
Beispiel #7
0
        /// <summary>
        /// Adds a forall element to the group element.
        /// </summary>
        /// <param name="element">Element to add.</param>
        public void ForAll(ForAllElement element)
        {
            var builder = BuilderAdapter.Create(element);

            _nestedBuilders.Add(builder);
        }
Beispiel #8
0
        /// <summary>
        /// Adds a negative existential element to the group element.
        /// </summary>
        /// <param name="element">Element to add.</param>
        public void Not(NotElement element)
        {
            var builder = BuilderAdapter.Create(element);

            _nestedBuilders.Add(builder);
        }
Beispiel #9
0
        /// <summary>
        /// Adds an existential element to the group element.
        /// </summary>
        /// <param name="element">Element to add.</param>
        public void Exists(ExistsElement element)
        {
            var builder = BuilderAdapter.Create(element);

            _nestedBuilders.Add(builder);
        }