예제 #1
0
 private EMOF.IParameter ConstructParameter(EnAr.Parameter enArParameter)
 {
     //TODO type
     EMOF.IParameter parameter = new EMOF.Parameter()
     {
         Name = enArParameter.Name,
     };
     return(parameter);
 }
예제 #2
0
 public EMOF.IType ConstructTypeOfParameter(EnAr.Parameter parameter)
 {
     if (parameter.Type == null)
     {
         return(null);
     }
     EnAr.Element returnType = explorer.repository.GetElementByGuid(parameter.Type);
     if (returnType != null)
     {
         return(ConstructType(returnType));
     }
     else
     {
         return(ConstructPrimitiveType(parameter.Type));
     }
 }
예제 #3
0
        private QVTBase.FunctionParameter ConstructParameter(QVTBase.Function function, EnAr.Parameter parameter)
        {
            QVTBase.FunctionParameter result = new QVTBase.FunctionParameter()
            {
                Operation            = function,
                Type                 = emofImporter.ConstructTypeOfParameter(parameter),
                Name                 = parameter.Name,
                IsOrdered            = null,
                IsUnique             = null,
                Lower                = null,
                Upper                = null,
                InitExpression       = null,
                RepresentedParameter = null,
                ReferencedElements   = { },
                OwnedComment         = { },
                LetExp               = null,
            };

            function.OwnedParameter.Add(result);
            return(result);
        }