Esempio n. 1
0
        public Object[] getOwnedElements()
        {
            List <object> allOwnedElements = new List <object>();
            OclConstraint constraint;

            constraint = owner.getInitConstraint(this.getName());
            if (constraint != null)
            {
                allOwnedElements.Add(constraint);
            }

            constraint = owner.getDeriveConstraint(this.getName());
            if (constraint != null)
            {
                allOwnedElements.Add(constraint);
            }

            return(allOwnedElements.ToArray());
        }