Package org.apache.cxf.binding.corba.wsdl

Examples of org.apache.cxf.binding.corba.wsdl.MemberType


            }
            if (basetype == null) {
                return null;
            }
            // process  ext types ????
            MemberType basemember = new MemberType();
            basemember.setName("_simpleTypeValue");
            QName baseTypeName = checkPrefix(basetype.getQName());
            basemember.setIdltype(baseTypeName);
            corbaStruct.getMember().add(basemember);
            if (!isDuplicate(basetype)) {
                typeMappingType.getStructOrExceptionOrUnion().add(basetype);
            }
            attrMembers = processAttributesAsMembers(ext.getAttributes(), uri);
        } else if (simpleContent.getContent() instanceof XmlSchemaSimpleContentRestriction) {
            XmlSchemaSimpleContentRestriction restrict
                = (XmlSchemaSimpleContentRestriction)simpleContent.getContent();

            base = restrict.getBaseType();

            if (restrict.getBaseTypeName() != null) {
                basetype = processPrimitiveType(restrict.getBaseTypeName());
            }

            if (basetype == null) {
                base = getSchemaType(restrict.getBaseTypeName());
                basetype = convertSchemaToCorbaType(base, base.getQName(), base, null, false);
            }

            MemberType basemember = new MemberType();
            basemember.setName("_simpleTypeValue");
            QName baseTypeName = checkPrefix(basetype.getQName());
            basemember.setIdltype(baseTypeName);
            corbaStruct.getMember().add(basemember);
            if (!isDuplicate(basetype)) {
                typeMappingType.getStructOrExceptionOrUnion().add(basetype);
            }
            attrMembers = processAttributesAsMembers(restrict.getAttributes(), uri);
        }

        //Deal with Attributes defined in Extension
        for (int i = 0; i < attrMembers.size(); i++) {
            MemberType member = (MemberType)attrMembers.get(i);
            corbaStruct.getMember().add(member);
        }

        return corbaStruct;
    }
View Full Code Here


        } else {
            uri = defaultName.getNamespaceURI();
        }

        // Add base as a member of this struct
        MemberType memberType = new MemberType();
        memberType.setName(extName.getLocalPart() + "_f");
        if (extName.getLocalPart().equals("anyType")) {
            memberType.setIdltype(processPrimitiveType(extName).getQName());
        } else {
            memberType.setIdltype(createQNameCorbaNamespace(extName.getLocalPart()));
        }
        corbaStruct.getMember().add(memberType);

        // process attributes at complexContent level
        List attlist1 = processAttributesAsMembers(list, uri);
        for (int i = 0; i < attlist1.size(); i++) {
            MemberType member = (MemberType)attlist1.get(i);
            corbaStruct.getMember().add(member);
        }

        // Process members of Current Type
        if (extype instanceof XmlSchemaChoice) {
            XmlSchemaChoice choice = (XmlSchemaChoice)extype;
            MemberType choicemem = processComplexContentStructChoice(choice, schematypeName, defaultName);
            choicemem.setAnonschematype(true);
            corbaStruct.getMember().add(choicemem);
        } else if (extype instanceof  XmlSchemaSequence) {
            XmlSchemaSequence seq = (XmlSchemaSequence)extype;
            corbaStruct = processComplexContentStructSequence(corbaStruct, seq, defaultName, schematypeName);
        } else if (extype instanceof  XmlSchemaAll) {
View Full Code Here

        CorbaTypeImpl seqtype =
            processSequenceType(seq, defaultName, schematypeName);

        if  (seqtype != null) {
            MemberType seqmem = new MemberType();
            seqmem.setName(seqtype.getQName().getLocalPart() + "_f");
            QName type = createQNameCorbaNamespace(seqtype.getQName().getLocalPart());
            seqmem.setIdltype(type);
            seqmem.setAnonschematype(true);
            if (seqtype.isSetQualified() && seqtype.isQualified()) {
                seqmem.setQualified(true);
            }
            corbaStruct.getMember().add(seqmem);
            if (!isDuplicate(seqtype)) {
                typeMappingType.getStructOrExceptionOrUnion().add(seqtype);
            }
View Full Code Here

                                                  QName defaultName, QName schematypeName)
        throws Exception {

        CorbaTypeImpl alltype = processAllType(all, defaultName, schematypeName);
        if (alltype != null) {
            MemberType allmem = new MemberType();
            allmem.setName(alltype.getQName().getLocalPart() + "_f");
            allmem.setIdltype(alltype.getQName());
            allmem.setAnonschematype(true);
            if (alltype.isSetQualified() && alltype.isQualified()) {
                allmem.setQualified(true);
            }
            corbaStruct.getMember().add(allmem);
            if (!isDuplicate(alltype)) {
                typeMappingType.getStructOrExceptionOrUnion().add(alltype);
            }
View Full Code Here

        String repoId = REPO_STRING + choiceunion.getQName().getLocalPart().replace('.', '/')
            + IDL_VERSION;
        choiceunion.setRepositoryID(repoId);

        MemberType choicemem = new MemberType();
        choicemem.setName(choiceunion.getQName().getLocalPart() + "_f");
        choicemem.setIdltype(createQNameCorbaNamespace(choiceunion.getQName().getLocalPart()));

        if ((choiceunion != null) && (!isDuplicate(choiceunion))) {
            typeMappingType.getStructOrExceptionOrUnion().add(choiceunion);
        }
View Full Code Here

    public static Union processUnionBranches(Union corbaUnion, List fields, List<String> caselist) {
        int caseIndex = 0;

        for (int i = 0; i < fields.size(); i++) {
            MemberType field = (MemberType)fields.get(i);
            Unionbranch branch = new Unionbranch();
            branch.setName(field.getName());
            branch.setIdltype(field.getIdltype());
            if (field.isSetQualified() && field.isQualified()) {
                branch.setQualified(true);
            }
            branch.setDefault(false);

            CaseType c = new CaseType();
View Full Code Here

        } else {
            uri = defaultName.getNamespaceURI();
        }
       
        // Add base as a member of this struct
        MemberType memberType = new MemberType();    
        memberType.setName(extName.getLocalPart() + "_f");
        if (extName.getLocalPart().equals("anyType")) {
            memberType.setIdltype(processPrimitiveType(extName).getQName());               
        } else {
            memberType.setIdltype(createQNameCorbaNamespace(extName.getLocalPart()));
        }           
        corbaStruct.getMember().add(memberType);
           
        // process attributes at complexContent level
        List attlist1 = processAttributesAsMembers(attrs, uri);
        for (int i = 0; i < attlist1.size(); i++) {
            MemberType member = (MemberType)attlist1.get(i);
            corbaStruct.getMember().add(member);
        }
           
        // Process members of Current Type               
        if (extype instanceof XmlSchemaChoice) {
            XmlSchemaChoice choice = (XmlSchemaChoice)extype;
            MemberType choicemem = processComplexContentStructChoice(choice, schematypeName, defaultName);
            choicemem.setAnonschematype(true);
            corbaStruct.getMember().add(choicemem);                               
        } else if (extype instanceof  XmlSchemaSequence) {
            XmlSchemaSequence seq = (XmlSchemaSequence)extype;
            corbaStruct = processComplexContentStructSequence(corbaStruct, seq, defaultName, schematypeName);
        } else if (extype instanceof  XmlSchemaAll) {
View Full Code Here

       
        CorbaTypeImpl seqtype =
            processSequenceType(seq, defaultName, schematypeName);                              

        if  (seqtype != null) {                   
            MemberType seqmem = new MemberType();
            seqmem.setName(seqtype.getQName().getLocalPart() + "_f");
            QName type = createQNameCorbaNamespace(seqtype.getQName().getLocalPart());
            seqmem.setIdltype(type);
            seqmem.setAnonschematype(true);
            if (seqtype.isSetQualified() && seqtype.isQualified()) {
                seqmem.setQualified(true);
            }
            corbaStruct.getMember().add(seqmem);
            if (!isDuplicate(seqtype)) {
                typeMappingType.getStructOrExceptionOrUnion().add(seqtype);
            }
View Full Code Here

                                                  QName defaultName, QName schematypeName)
        throws Exception {
       
        CorbaTypeImpl alltype = processAllType(all, defaultName, schematypeName);
        if (alltype != null) {
            MemberType allmem = new MemberType();
            allmem.setName(alltype.getQName().getLocalPart() + "_f");
            allmem.setIdltype(alltype.getQName());
            allmem.setAnonschematype(true);
            if (alltype.isSetQualified() && alltype.isQualified()) {
                allmem.setQualified(true);
            }
            corbaStruct.getMember().add(allmem);
            if (!isDuplicate(alltype)) {
                typeMappingType.getStructOrExceptionOrUnion().add(alltype);
            }
View Full Code Here

        String repoId = REPO_STRING + choiceunion.getQName().getLocalPart().replace('.', '/')
            + IDL_VERSION;
        choiceunion.setRepositoryID(repoId);                               
       
        MemberType choicemem = new MemberType();
        choicemem.setName(choiceunion.getQName().getLocalPart() + "_f");
        choicemem.setIdltype(createQNameCorbaNamespace(choiceunion.getQName().getLocalPart()));         
       
        if ((choiceunion != null) && (!isDuplicate(choiceunion))) {
            typeMappingType.getStructOrExceptionOrUnion().add(choiceunion);
        }
       
View Full Code Here

TOP

Related Classes of org.apache.cxf.binding.corba.wsdl.MemberType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.