Package org.apache.crimson.tree

Examples of org.apache.crimson.tree.XmlDocument


        builder.setIgnoreComments(dbf.isIgnoringComments());
        builder.setPutCDATAIntoText(dbf.isCoalescing());
    }

    public Document newDocument() {
        return new XmlDocument();
    }
View Full Code Here



    }

    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();
        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();
        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

                //out of it and add it to the schema.
                Map parts = wsdl4jMessage.getParts();
                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 void writeTestSkeletonImpl(WSDLBinding binding)throws Exception{
        if (configuration.isWriteTestCase()){
            XmlDocument classModel = createDocumentForTestSkeletonImpl(binding);
            TestSkeletonImplWriter callbackWriter =
                    new TestSkeletonImplWriter(this.configuration.getOutputLocation(),
                            this.configuration.getOutputLanguage()
                    );
            writeClass(classModel,callbackWriter);
View Full Code Here

     *
     */
    protected void writeCallBackHandlers(WSDLBinding binding) throws Exception{

        if (configuration.isAsyncOn()){
            XmlDocument interfaceModel = createDOMDocumentForCallbackHandler(binding);
            CallbackHandlerWriter callbackWriter =
                    new CallbackHandlerWriter(this.configuration.getOutputLocation(),
                            this.configuration.getOutputLanguage()
                    );
            writeClass(interfaceModel,callbackWriter);
View Full Code Here

     * @throws Exception
     */
    protected void writeLocalTestClasses(WSDLBinding binding) throws Exception{

        if (configuration.isWriteTestCase()){
            XmlDocument classModel = createDOMDocuementForLocalTestCase(binding);
            LocalTestClassWriter callbackWriter =
                    new LocalTestClassWriter(this.configuration.getOutputLocation(),
                            this.configuration.getOutputLanguage()
                    );
            writeClass(classModel,callbackWriter);
View Full Code Here

     *
     */
    protected void writeTestClasses(WSDLBinding binding) throws Exception{

        if (configuration.isWriteTestCase()){
            XmlDocument classModel = createDOMDocuementForTestCase(binding);
            TestClassWriter callbackWriter =
                    new TestClassWriter(this.configuration.getOutputLocation(),
                            this.configuration.getOutputLanguage()
                    );
            writeClass(classModel,callbackWriter);
View Full Code Here

     * Writes the interfaces
     * @param axisBinding
     * @throws Exception
     */
    protected void writeInterface(WSDLBinding axisBinding) throws Exception {
        XmlDocument interfaceModel = createDOMDocuementForInterface(axisBinding);
        InterfaceWriter interfaceWriter =
                new InterfaceWriter(this.configuration.getOutputLocation(),
                        this.configuration.getOutputLanguage()
                );
        writeClass(interfaceModel,interfaceWriter);
View Full Code Here

     * @throws Exception
     */
    protected void writeSkeleton(WSDLBinding axisBinding) throws Exception {

        //Note -  One can generate the skeleton using the interface XML
        XmlDocument skeletonModel = createDOMDocuementForSkeleton(axisBinding);
        ClassWriter skeletonWriter = new SkeletonWriter(this.configuration.getOutputLocation(),
                this.configuration.getOutputLanguage()
        );
        writeClass(skeletonModel,skeletonWriter);

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.