/* (non-Javadoc)
         * @see br.cos.ufrj.lens.odyssey.tools.psw.metamodels.core.interfaces.CoreClassifier#getInitOrDerivedConstraint(br.cos.ufrj.lens.odyssey.tools.psw.metamodels.core.interfaces.CoreModelElement)
         */
        public OclInitConstraint getInitConstraint(string elementName)
        {
            OclInitConstraint result = this.getLocalInitConstraint(elementName);

            if (result == null)
            {
                List <object> allSuperTypes = classifier.getAllAncestors();

                for (IEnumerator iter = allSuperTypes.GetEnumerator();
                     iter.MoveNext() && (result == null);)
                {
                    CoreClassifier superType = (CoreClassifier)iter.Current;
                    result = superType.getLocalInitConstraint(elementName);
                }
            }

            return(result);
        }