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

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


        visitor.visit(constTypeNode);               
        XmlSchemaType constSchemaType = visitor.getSchemaType();
        CorbaTypeImpl constCorbaType = visitor.getCorbaType();       
       
        // corba:const       
        Const corbaConst = new Const();
        corbaConst.setQName(constQName);
        corbaConst.setValue(constValue);       
        corbaConst.setType(constSchemaType.getQName());
        corbaConst.setIdltype(constCorbaType.getQName());       
       
        typeMap.getStructOrExceptionOrUnion().add(corbaConst);
    }
View Full Code Here


    public static String getConstValueByName(AST node, TypeMappingType typeMap) {
        List<CorbaTypeImpl> types = typeMap.getStructOrExceptionOrUnion();
        for (Iterator<CorbaTypeImpl> it = types.iterator(); it.hasNext();) {
            CorbaTypeImpl corbaType = it.next();
            if (corbaType instanceof Const) {
                Const corbaConst = (Const) corbaType;
                String name = corbaConst.getQName().getLocalPart();
                if (name.equals(node.getText())) {
                    return corbaConst.getValue();
                }
            }            
        }
        return null;
    }
View Full Code Here

    }
   
    private IdlType createConst(CorbaTypeImpl ctype, IdlScopeBase scope,
                                String local) throws Exception {
        IdlType idlType = null;
        Const c = (Const)ctype;
        IdlType base = findType(c.getIdltype());
        String value = c.getValue();
        idlType = IdlConst.create(scope, local, base, value);
        scope.addToScope(idlType);
        return idlType;
    }
View Full Code Here

        visitor.visit(constTypeNode);               
        XmlSchemaType constSchemaType = visitor.getSchemaType();
        CorbaTypeImpl constCorbaType = visitor.getCorbaType();       
       
        // corba:const       
        Const corbaConst = new Const();
        corbaConst.setQName(constQName);
        corbaConst.setValue(constValue.toString());       
        corbaConst.setType(constSchemaType.getQName());
        corbaConst.setIdltype(constCorbaType.getQName());       
       
        typeMap.getStructOrExceptionOrUnion().add(corbaConst);
    }
View Full Code Here

    public static String getConstValueByName(AST node, TypeMappingType typeMap) {
        List<CorbaType> types = typeMap.getStructOrExceptionOrUnion();
        for (Iterator<CorbaType> it = types.iterator(); it.hasNext();) {
            CorbaType corbaType = it.next();
            if (corbaType instanceof Const) {
                Const corbaConst = (Const) corbaType;
                String name = corbaConst.getQName().getLocalPart();
                if (name.endsWith(node.getText())) {
                    return corbaConst.getValue();
                }
            }            
        }
        return null;
    }
View Full Code Here

    }
   
    private IdlType createConst(CorbaTypeImpl ctype, IdlScopeBase scope,
                                String local) throws Exception {
        IdlType idlType = null;
        Const c = (Const)ctype;
        IdlType base = findType(c.getIdltype());
        String value = c.getValue();
        idlType = IdlConst.create(scope, local, base, value);
        scope.addToScope(idlType);
        return idlType;
    }
View Full Code Here

        visitor.visit(constTypeNode);               
        XmlSchemaType constSchemaType = visitor.getSchemaType();
        CorbaTypeImpl constCorbaType = visitor.getCorbaType();       
       
        // corba:const       
        Const corbaConst = new Const();
        corbaConst.setQName(constQName);
        corbaConst.setValue(constValue);       
        corbaConst.setType(constSchemaType.getQName());
        corbaConst.setIdltype(constCorbaType.getQName());       
       
        typeMap.getStructOrExceptionOrUnion().add(corbaConst);
    }
View Full Code Here

    public static String getConstValueByName(AST node, TypeMappingType typeMap) {
        List<CorbaTypeImpl> types = typeMap.getStructOrExceptionOrUnion();
        for (Iterator<CorbaTypeImpl> it = types.iterator(); it.hasNext();) {
            CorbaTypeImpl corbaType = it.next();
            if (corbaType instanceof Const) {
                Const corbaConst = (Const) corbaType;
                String name = corbaConst.getQName().getLocalPart();
                if (name.endsWith(node.getText())) {
                    return corbaConst.getValue();
                }
            }            
        }
        return null;
    }
View Full Code Here

    }
   
    private IdlType createConst(CorbaTypeImpl ctype, IdlScopeBase scope,
                                String local) throws Exception {
        IdlType idlType = null;
        Const c = (Const)ctype;
        IdlType base = findType(c.getIdltype());
        String value = c.getValue();
        idlType = IdlConst.create(scope, local, base, value);
        scope.addToScope(idlType);
        return idlType;
    }
View Full Code Here

        visitor.visit(constTypeNode);               
        XmlSchemaType constSchemaType = visitor.getSchemaType();
        CorbaTypeImpl constCorbaType = visitor.getCorbaType();       
       
        // corba:const       
        Const corbaConst = new Const();
        corbaConst.setQName(constQName);
        corbaConst.setValue(constValue);       
        corbaConst.setType(constSchemaType.getQName());
        corbaConst.setIdltype(constCorbaType.getQName());       
       
        typeMap.getStructOrExceptionOrUnion().add(corbaConst);
    }
View Full Code Here

TOP

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

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.