示例#1
0
       public void AddExcludeToSlot(ARCHETYPE_SLOT slot, ASSERTION assert)
       {
           int i;

           if (slot.excludes == null)
           {
               slot.excludes = Array.CreateInstance(typeof(ASSERTION), 1) as ASSERTION[];
               i = 0;
           }
           else
           {
               ASSERTION[] assertions = slot.excludes;
               i = assertions.Length;
               Array.Resize(ref assertions, i + 1);
               slot.excludes = assertions;
           }
           slot.excludes[i] = assert;
       }
        protected virtual object Visit(openehr.openehr.am.archetype.constraint_model.Impl.ARCHETYPE_SLOT o, int depth)
        {
            ARCHETYPE_SLOT result = new ARCHETYPE_SLOT();
            CloneC_Object(result, o);

            if (o.has_includes())
                result.includes = CloneAssertion(o.includes());

            if (o.has_excludes())
                result.excludes = CloneAssertion(o.excludes());

            return result;
        }