// -------------------------------------------------- // CLONING // -------------------------------------------------- #region Cloning /// <summary> /// Clones this instance. /// </summary> /// <returns>Returns a cloned instance.</returns> public override object Clone(params string[] areas) { ObjectElementSpec specification = base.Clone(areas) as ObjectElementSpec; if (ClassFilter != null) { specification.ClassFilter = ClassFilter.Clone() as DataValueFilter; } //if (FormatUniqueNameFilter != null) // entityElementSpec.FormatUniqueNameFilter = FormatUniqueNameFilter.Clone() as DataValueFilter; return(specification); }
// -------------------------------------------------- // ITEMS // -------------------------------------------------- #region Items // Specification --------------------- /// <summary> /// Creates a new specification. /// </summary> /// <returns>Returns the new specifcation.</returns> public override IDataElementSpec NewSpecification() { return(Specification = new ObjectElementSpec()); }