Package org.apache.crimson.tree

Examples of org.apache.crimson.tree.XmlDocument.createElement()


    }

    private XmlDocument getServiceModel(String serviceName,String className,ArrayList methods){
        XmlDocument doc = new XmlDocument();
        Element rootElement = doc.createElement("interface");
        addAttribute(doc,"classpackage","", rootElement);
        addAttribute(doc,"name",className,rootElement);
        addAttribute(doc,"servicename",serviceName,rootElement);
        Element methodElement = null;
        int size = methods.size();
View Full Code Here


        addAttribute(doc,"name",className,rootElement);
        addAttribute(doc,"servicename",serviceName,rootElement);
        Element methodElement = null;
        int size = methods.size();
        for(int i=0;i<size;i++){
            methodElement = doc.createElement("method");
            addAttribute(doc,"name",methods.get(i).toString(),methodElement);
            rootElement.appendChild(methodElement);
        }
        doc.appendChild(rootElement);
        return doc;
View Full Code Here

    }
    //todo Fix this!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    private XmlDocument getServiceModel(String serviceName,String className,ArrayList methods){
        XmlDocument doc = new XmlDocument();
        Element rootElement = doc.createElement("interface");
        addAttribute(doc,"classpackage","", rootElement);
        addAttribute(doc,"name",className,rootElement);
        addAttribute(doc,"servicename",serviceName,rootElement);
        Element methodElement = null;
        int size = methods.size();
View Full Code Here

        addAttribute(doc,"name",className,rootElement);
        addAttribute(doc,"servicename",serviceName,rootElement);
        Element methodElement = null;
        int size = methods.size();
        for(int i=0;i<size;i++){
            methodElement = doc.createElement("method");
            addAttribute(doc,"name",methods.get(i).toString(),methodElement);
            rootElement.appendChild(methodElement);
        }
        doc.appendChild(rootElement);
        return doc;
View Full Code Here

                Element element = null;
                WSDLTypes types = womDefinition.getTypes();
                if(null == types){
                    XmlDocument newDoc = new XmlDocument();

                    Element schemaElement = newDoc.createElement("schema");//http://www.w3.org/2001/XMLSchema
                    types =wsdlComponenetFactory.createTypes();
                    ExtensionFactory extensionFactory = wsdlComponenetFactory.createExtensionFactory();
                    org.apache.wsdl.extensions.Schema typesElement = (org.apache.wsdl.extensions.Schema)extensionFactory.getExtensionElement(ExtensionConstants.SCHEMA);
                    typesElement.setElelment(schemaElement);
                    types.addExtensibilityElement(typesElement);
View Full Code Here

    protected XmlDocument createDocumentForTestSkeletonImpl(WSDLBinding binding){
        WSDLInterface boundInterface = binding.getBoundInterface();

        XmlDocument doc = new XmlDocument();
        Element rootElement = doc.createElement("class");
        addAttribute(doc,"package",configuration.getPackageName()+TEST_PACKAGE_NAME_SUFFIX, rootElement);
        addAttribute(doc,"servicename",boundInterface.getName().getLocalPart()+SERVICE_CLASS_SUFFIX,rootElement);
        addAttribute(doc, "implpackage", configuration.getPackageName(), rootElement);
        addAttribute(doc,"name",boundInterface.getName().getLocalPart()+TEST_SERVICE_CLASS_NAME_SUFFIX,rootElement);
        addAttribute(doc, "namespace", boundInterface.getName().getNamespaceURI(), rootElement);
View Full Code Here

     * @return
     */
    protected XmlDocument createDOMDocumentForCallbackHandler(WSDLBinding binding){
        WSDLInterface boundInterface = binding.getBoundInterface();
        XmlDocument doc = new XmlDocument();
        Element rootElement = doc.createElement("callback");
        addAttribute(doc,"package",configuration.getPackageName(),rootElement);
        addAttribute(doc,"name",boundInterface.getName().getLocalPart()+CALL_BACK_HANDLER_SUFFIX,rootElement);
        addAttribute(doc,"namespace",boundInterface.getName().getNamespaceURI(),rootElement);

        //TODO JAXRPC mapping support should be considered
View Full Code Here

    protected XmlDocument createDOMDocuementForServiceXML(WSDLBinding binding, boolean forTesting) {
        WSDLInterface boundInterface = binding.getBoundInterface();

        XmlDocument doc = new XmlDocument();
        Element rootElement = doc.createElement("interface");
        String localPart = boundInterface.getName().getLocalPart();
        if(forTesting){
            addAttribute(doc,"package",configuration.getPackageName()+TEST_PACKAGE_NAME_SUFFIX, rootElement);
            addAttribute(doc,"name",localPart+TEST_SERVICE_CLASS_NAME_SUFFIX,rootElement);
            addAttribute(doc,"servicename",localPart+TEST_SERVICE_CLASS_NAME_SUFFIX,rootElement);
View Full Code Here

    protected XmlDocument createDocumentForMessageReceiver(WSDLBinding binding){
        WSDLInterface boundInterface = binding.getBoundInterface();

        XmlDocument doc = new XmlDocument();
        Element rootElement = doc.createElement("interface");
        addAttribute(doc,"package",configuration.getPackageName(), rootElement);
        String localPart = boundInterface.getName().getLocalPart();
        addAttribute(doc,"name",localPart+MESSAGE_RECEIVER_SUFFIX,rootElement);
        addAttribute(doc,"skeletonname",localPart + SERVICE_CLASS_SUFFIX,rootElement);
        addAttribute(doc, "basereceiver", "org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver", rootElement);
View Full Code Here

     */
    protected XmlDocument createDOMDocuementForInterface(WSDLBinding binding){
        WSDLInterface boundInterface = binding.getBoundInterface();

        XmlDocument doc = new XmlDocument();
        Element rootElement = doc.createElement("interface");
        addAttribute(doc,"package",configuration.getPackageName(), rootElement);
        addAttribute(doc,"name",boundInterface.getName().getLocalPart(),rootElement);
        addAttribute(doc,"callbackname",boundInterface.getName().getLocalPart() + CALL_BACK_HANDLER_SUFFIX,rootElement);
        fillSyncAttributes(doc, rootElement);
        loadOperations(boundInterface, doc, rootElement);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.