Beispiel #1
0
        /* (non-Javadoc)
         * @see br.cos.ufrj.lens.odyssey.tools.psw.metamodels.ocl20.Factory#createSequenceType(br.cos.ufrj.lens.odyssey.tools.psw.metamodels.core.interfaces.CoreClassifier)
         */
        public SequenceType createSequenceType(CoreClassifier elementType)
        {
            SequenceType result = (SequenceType)getCollectionType("Sequence(" + elementType.getName() + ")");

            if (result == null)
            {
                result = oclPackage.getTypes().getSequenceType();
                result.setFactory(this);
                result.setElementType(elementType);
                allTypesCreated.Add(result.getName(), result);
            }

            return(result);
        }