Package org.apache.crimson.tree

Examples of org.apache.crimson.tree.XmlDocument


    protected void writeDatabindingSupporters(WSDLBinding axisBinding) throws Exception {
        Collection col = axisBinding.getBoundInterface().getOperations().values();
        for (Iterator iterator = col.iterator(); iterator.hasNext();) {
            //Note -  there will be a supporter generated per method and will contain the methods to serilize and
            //deserilize the relevant objects
            XmlDocument databindingSupporterModel = createDOMDocumentforSerialization((WSDLOperation)iterator.next());
            ClassWriter databindingSupportWriter = new DatabindingSupportClassWriter(this.configuration.getOutputLocation(),
                    this.configuration.getOutputLanguage(),this.configuration.getDatabindingType()
            );
            writeClass(databindingSupporterModel,databindingSupportWriter);
        }
View Full Code Here


    }

    protected void writeTestServiceXML(WSDLBinding axisBinding) throws Exception {
        if (this.configuration.isWriteTestCase()){
            //Note -  One can generate the service xml using the interface XML
            XmlDocument skeletonModel = createDOMDocuementForServiceXML(axisBinding, true);
            TestServiceXMLWriter testServiceXmlWriter = new TestServiceXMLWriter(this.configuration.getOutputLocation(),
                    this.configuration.getOutputLanguage()
            );
            writeClass(skeletonModel,testServiceXmlWriter);
        }
View Full Code Here

     * @param axisBinding
     * @throws Exception
     */
    protected void writeServiceXml(WSDLBinding axisBinding) throws Exception {
        if (this.configuration.isGenerateDeployementDescriptor()){
            XmlDocument skeletonModel = createDOMDocuementForServiceXML(axisBinding, false);
            ClassWriter serviceXmlWriter = new ServiceXMLWriter(this.configuration.getOutputLocation(),
                    this.configuration.getOutputLanguage()
            );
            writeClass(skeletonModel,serviceXmlWriter);
        }
View Full Code Here

     * Writes the implementations
     * @param axisBinding
     * @throws Exception
     */
    protected void writeInterfaceImplementation(WSDLBinding axisBinding,WSDLService service) throws Exception {
        XmlDocument interfaceImplModel = createDOMDocuementForInterfaceImplementation(axisBinding, service);       
        InterfaceImplementationWriter writer =
                new InterfaceImplementationWriter(this.configuration.getOutputLocation(),
                        this.configuration.getOutputLanguage()
                );
        writeClass(interfaceImplModel,writer);
View Full Code Here

        writeClass(interfaceImplModel,writer);
    }

    protected void writeMessageReceiver(WSDLBinding axisBinding)throws Exception{
        if (configuration.isWriteMessageReceiver()){
            XmlDocument classModel = createDocumentForMessageReceiver(axisBinding);
            MessageReceiverWriter writer =
                    new MessageReceiverWriter(this.configuration.getOutputLocation(),
                            this.configuration.getOutputLanguage()
                    );
            writeClass(classModel,writer);
View Full Code Here

     */
    protected void writeBeans(WSDLTypes wsdlType) throws Exception {
        Collection collection= wsdlType.getExtensibilityElements();
        if (collection != null){
            for (Iterator iterator = collection.iterator(); iterator.hasNext();) {
                XmlDocument interfaceModel = createDOMDocuementForBean();
                BeanWriter beanWriter =
                        new BeanWriter(this.configuration.getOutputLocation(),
                                this.configuration.getOutputLanguage()
                        );
                writeClass(interfaceModel,beanWriter);
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);
        fillSyncAttributes(doc, rootElement);
        loadOperations(boundInterface, doc, rootElement);
        doc.appendChild(rootElement);
        return doc;
    }
View Full Code Here

     * @param binding
     * @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
        this.loadOperations(boundInterface, doc, rootElement);
        //this.loadOperations(boundInterface, doc, rootElement, "on", "Complete");

        doc.appendChild(rootElement);
        return doc;
    }
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);
        }else{
            addAttribute(doc,"package",configuration.getPackageName(), rootElement);
            addAttribute(doc,"name",localPart+SERVICE_CLASS_SUFFIX,rootElement);
            addAttribute(doc,"servicename",localPart,rootElement);
        }
       
        addAttribute(doc,"messagereceiver",localPart+MESSAGE_RECEIVER_SUFFIX,rootElement);
        fillSyncAttributes(doc, rootElement);
        loadOperations(boundInterface, doc, rootElement);
        doc.appendChild(rootElement);

        return doc;
    }
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);
        addAttribute(doc,"dbsupportpackage",configuration.getPackageName()+DATABINDING_PACKAGE_NAME_SUFFIX,rootElement);
        fillSyncAttributes(doc, rootElement);
        loadOperations(boundInterface, doc, rootElement, binding);
        doc.appendChild(rootElement);


        return doc;
    }
View Full Code Here

TOP

Related Classes of org.apache.crimson.tree.XmlDocument

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.