Beispiel #1
0
        /**
         * Creates a new UNION element as a blank node in a given Model.
         * @param model  the Model to create the Union in
         * @param elements  the elements
         * @return a new Union
         */
        public static IUnion createUnion(SpinProcessor model, IElementList elements)
        {
            IUnion union = (IUnion)model.CreateResource(SP.ClassUnion).As(typeof(UnionImpl));

            union.AddProperty(SP.PropertyElements, elements);
            return(union);
        }