Пример #1
0
        private static HashSet <tPortType> toEasyPorts(schemas.tPortType[] items)
        {
            HashSet <tPortType> ret = new HashSet <tPortType>();

            if (items == null)
            {
                return(ret);
            }
            for (int i = 0; i < items.Length; i++)
            {
                tPortType x = new tPortType();
                x.documentation = ConvertTo.toEasyDocumentation(items[i].documentation);
                x.operation     = ConvertTo.toEasyOperation(items[i].operation);
                x.name          = items[i].name;
                ret.Add(x);
            }
            return(ret);
        }
Пример #2
0
        private static HashSet <tBindingOperationFault> toOperationBindingFault(schemas.tBindingOperationFault[] items)
        {
            HashSet <tBindingOperationFault> ret = new HashSet <tBindingOperationFault>();

            if (items != null)
            {
                for (int i = 0; i < items.Length; i++)
                {
                    tBindingOperationFault x = new tBindingOperationFault();
                    x.Any           = ConvertTo.toEasyAny(items[i].Any);
                    x.documentation = ConvertTo.toEasyDocumentation(items[i].documentation);
                    x.name          = items[i].name;
                    ret.Add(x);
                }
            }

            return(ret);
        }
Пример #3
0
        private static HashSet <tService> toEasyServices(schemas.tService[] items)
        {
            HashSet <tService> ret = new HashSet <tService>();

            if (items == null)
            {
                return(ret);
            }
            for (int i = 0; i < items.Length; i++)
            {
                tService x = new tService();
                x.Any           = ConvertTo.toEasyAny(items[i].Any);
                x.documentation = ConvertTo.toEasyDocumentation(items[i].documentation);
                x.name          = items[i].name;
                x.port          = ConvertTo.toEasyPort(items[i].port);
                ret.Add(x);
            }
            return(ret);
        }
Пример #4
0
        private static HashSet <tOperation> toEasyOperation(schemas.tOperation[] items)
        {
            HashSet <tOperation> ret = new HashSet <tOperation>();

            if (items == null)
            {
                return(ret);
            }
            for (int i = 0; i < items.Length; i++)
            {
                tOperation x = new tOperation();
                x.documentation  = ConvertTo.toEasyDocumentation(items[i].documentation);
                x.Any            = ConvertTo.toEasyAny(items[i].Any);
                x.parameterOrder = items[i].parameterOrder;
                x.name           = items[i].name;
                ret.Add(x);
            }
            return(ret);
        }
Пример #5
0
        private static HashSet <tImport> toEasyImport(schemas.tImport[] items)
        {
            HashSet <tImport> ret = new HashSet <tImport>();

            if (items == null)
            {
                return(ret);
            }
            for (int i = 0; i < items.Length; i++)
            {
                tImport x = new tImport();
                x.AnyAttr       = ConvertTo.toEasyAnyAttr(items[i].AnyAttr);
                x.documentation = ConvertTo.toEasyDocumentation(items[i].documentation);
                x.location      = items[i].location;
                x.@namespace    = items[i].@namespace;
                ret.Add(x);
            }
            return(ret);
        }
Пример #6
0
        private static HashSet <tBinding> toEasyBinding(schemas.tBinding[] items)
        {
            HashSet <tBinding> ret = new HashSet <tBinding>();

            if (items != null)
            {
                for (int i = 0; i < items.Length; i++)
                {
                    tBinding x = new tBinding();
                    x.Any           = ConvertTo.toEasyAny(items[i].Any);
                    x.documentation = ConvertTo.toEasyDocumentation(items[i].documentation);
                    x.name          = items[i].name;
                    x.operation     = ConvertTo.toBindingOperation(items[i].operation);
                    x.type          = ConvertTo.toBindingType(items[i].type);
                    ret.Add(x);
                }
            }

            return(ret);
        }
Пример #7
0
        private static HashSet <tPort> toEasyPort(schemas.tPort[] items)
        {
            HashSet <tPort> ret = new HashSet <tPort>();

            if (items == null)
            {
                return(ret);
            }
            for (int i = 0; i < items.Length; i++)
            {
                tPort x = new tPort();
                x.Any           = ConvertTo.toEasyAny(items[i].Any);
                x.documentation = ConvertTo.toEasyDocumentation(items[i].documentation);
                x.name          = items[i].name;
                x.binding       = ConvertTo.toBindingType(items[i].binding);

                ret.Add(x);
            }
            return(ret);
        }
Пример #8
0
        private static HashSet <tBindingOperation> toBindingOperation(schemas.tBindingOperation[] items)
        {
            HashSet <tBindingOperation> ret = new HashSet <tBindingOperation>();

            if (items != null)
            {
                for (int i = 0; i < items.Length; i++)
                {
                    tBindingOperation x = new tBindingOperation();
                    x.Any           = ConvertTo.toEasyAny(items[i].Any);
                    x.documentation = ConvertTo.toEasyDocumentation(items[i].documentation);
                    x.name          = items[i].name;
                    x.fault         = ConvertTo.toOperationBindingFault(items[i].fault);
                    x.input         = ConvertTo.toOperationBindingMethod(items[i].input);
                    x.output        = ConvertTo.toOperationBindingMethod(items[i].output);

                    ret.Add(x);
                }
            }

            return(ret);
        }