Package org.apache.schemas.yoko.bindings.corba

Examples of org.apache.schemas.yoko.bindings.corba.TypeMappingType


    private void getAllIdlTypes() throws Exception {

        try {
            Iterator types = def.getExtensibilityElements().iterator();
            TypeMappingType typeMappingType = null;           
            if (types != null) {
                while (types.hasNext()) {                   
                    typeMappingType = (TypeMappingType)types.next();
                }
            }
            if (typeMappingType != null) {
                Iterator i = typeMappingType.getStructOrExceptionOrUnion().iterator();
                while (i.hasNext()) {
                    CorbaTypeImpl corbaTypeImpl = (CorbaTypeImpl)i.next();                               
                    findCorbaIdlType(corbaTypeImpl);
                }
            }
View Full Code Here


        CorbaTypeImpl corbaTypeImpl = null;

        try {

            Iterator types = def.getExtensibilityElements().iterator();
            TypeMappingType typeMappingType = null;
            if (types != null) {
                while (types.hasNext()) {
                    typeMappingType = (TypeMappingType)types.next();
                }
            }
            Iterator i = typeMappingType.getStructOrExceptionOrUnion().iterator();
            while (i.hasNext()) {
                CorbaTypeImpl corbaType = (CorbaTypeImpl)i.next();               
                //if (corbaType.getType().getLocalPart().equals(qname.getLocalPart())) {               
                if (corbaType.getName().equals(qname.getLocalPart())) {                   
                    return corbaType;
View Full Code Here

        List extElements = wsdlDef.getExtensibilityElements();

        for (Iterator iter = extElements.iterator(); iter.hasNext();) {
            Object e = iter.next();
            if (e instanceof TypeMappingType) {
                TypeMappingType tmType = (TypeMappingType) e;

                CorbaTypeMap map = null;
                for (Iterator<CorbaTypeMap> it = typeMaps.iterator(); it.hasNext();) {
                    CorbaTypeMap tm = it.next();
                    if (tm.getTargetNamespace().equals(tmType.getTargetNamespace())) {
                        LOG.info("Found an existing typemap with the same namespace");
                        map = tm;
                        break;
                    }
                }
               
                if (map == null) {
                    map = new CorbaTypeMap(tmType.getTargetNamespace());
                    map.setPrefix(wsdlDef.getPrefix(tmType.getTargetNamespace()));
                    typeMaps.add(map);
                }
               
                LOG.info("Found typemap in WSDL (Namespace: " + tmType.getTargetNamespace()
                         + ", Prefix: " + wsdlDef.getPrefix(tmType.getTargetNamespace()));

                List<CorbaTypeImpl> types = tmType.getStructOrExceptionOrUnion();
                LOG.info("Found " + types.size() + " types defined in the typemap");
                for (Iterator<CorbaTypeImpl> it = types.iterator(); it.hasNext();) {
                    CorbaTypeImpl corbaType = it.next();
                    map.addType(corbaType.getName(), corbaType);
                    LOG.info("Adding type " + corbaType.getName());
View Full Code Here

TOP

Related Classes of org.apache.schemas.yoko.bindings.corba.TypeMappingType

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.