Пример #1
0
        /// <summary>
        /// Initializes a new instance of the SchemaZoneElement class.
        /// </summary>
        /// <param name="name">The name to consider.</param>
        /// <param name="items">The items to consider.</param>
        public SchemaZoneElement(
            String name,
            params object[] items)
            : base(name, "schemaZoneElement_")
        {
            Specification = new SchemaElementSpec();

            foreach (object item in items)
            {
                Add(item);
            }
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the SchemaElement class.
        /// </summary>
        /// <param name="name">The name to consider.</param>
        /// <param name="items">The items to consider.</param>
        public SchemaElement(
            String name = null,
            params object[] items)
            : base(name, "schemaElement_")
        {
            ValueType     = DataValueTypes.Schema;
            Specification = new SchemaElementSpec();

            foreach (object item in items)
            {
                Add(item);
            }
        }
Пример #3
0
        // --------------------------------------------------
        // CLONING
        // --------------------------------------------------

        #region Cloning

        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns>Returns a cloned instance.</returns>
        public override object Clone(params string[] areas)
        {
            SchemaElementSpec aSchemaElementSpec = base.Clone(areas) as SchemaElementSpec;

            if (SchemuniqueNameFilter != null)
            {
                aSchemaElementSpec.SchemuniqueNameFilter = SchemuniqueNameFilter.Clone() as DataValueFilter;
            }
            if (FormatUniqueNameFilter != null)
            {
                aSchemaElementSpec.FormatUniqueNameFilter = FormatUniqueNameFilter.Clone() as DataValueFilter;
            }
            return(aSchemaElementSpec);
        }
Пример #4
0
        // Specification ---------------------

        /// <summary>
        /// Creates a new specification.
        /// </summary>
        /// <returns>Returns the new specifcation.</returns>
        public override IDataElementSpec NewSpecification()
        {
            return(Specification = new SchemaElementSpec());
        }