Package org.itsnat.impl.core.domimpl

Examples of org.itsnat.impl.core.domimpl.DocumentImpl


    }

    public void xmlDecl(String version, String encoding, String standalone,
                        Augmentations augs) throws XNIException
    {
        DocumentImpl batikDoc = (DocumentImpl)getDocument();
        batikDoc.setXMLDec(version,encoding,standalone);
    }
View Full Code Here


        batikDoc.setXMLDec(version,encoding,standalone);
    }

    public void doctypeDecl(String root,String publicId,String systemId,Augmentations augs) throws XNIException
    {
        DocumentImpl batikDoc = (DocumentImpl)getDocument();
        GenericDocumentType docType = (GenericDocumentType)batikDoc.getImplementation().createDocumentType(root, publicId, systemId);
        docType.setOwnerDocument(batikDoc);
        batikDoc.setDoctype(docType);
    }
View Full Code Here

    }

    public void xmlDecl(String version, String encoding, String standalone,
                        Augmentations augs) throws XNIException
    {
        DocumentImpl batikDoc = (DocumentImpl)getDocument();
        batikDoc.setXMLDec(version,encoding,standalone);
    }
View Full Code Here

        batikDoc.setXMLDec(version,encoding,standalone);
    }

    public void doctypeDecl(String root,String publicId,String systemId,Augmentations augs) throws XNIException
    {
        DocumentImpl batikDoc = (DocumentImpl)getDocument();
        GenericDocumentType docType = (GenericDocumentType)batikDoc.getImplementation().createDocumentType(root, publicId, systemId);
        docType.setOwnerDocument(batikDoc);
        batikDoc.setDoctype(docType);

        // Tambi�n podr�amos haber puesto este m�todo en NekoBatikDocumentFilterImpl
        // Empezando:
        //    DOMParser nekoParser = (DOMParser)fDocumentHandler;
        //    DocumentImpl batikDoc = (DocumentImpl)nekoParser.getDocument();
View Full Code Here

        DocumentType cloneDocType = null;
        DocumentType docType = doc.getDoctype();
        if (docType != null)
            cloneDocType = domImplClone.createDocumentType(docType.getNodeName(),docType.getPublicId(),docType.getSystemId());
        Element docElem = doc.getDocumentElement();
        DocumentImpl docClone = (DocumentImpl)domImplClone.createDocument(docElem.getNamespaceURI(),docElem.getTagName(),cloneDocType);
        XMLDecImpl xmlDec = ((DocumentImpl)doc).getXMLDec();
        if (xmlDec != null)
            docClone.setXMLDec(xmlDec.getVersion(),xmlDec.getEncoding(),xmlDec.getStandalone());
        return docClone;
    }
View Full Code Here

    public TestMutationEventsInternal(ItsNatDocument itsNatDoc)
    {
        // El m�todo renameNode de DOM 3 es interesante porque

        DocumentImpl doc = (DocumentImpl)itsNatDoc.getDocument(); // Necesitamos testear las tripas de ItsNat


        Element root = doc.getDocumentElement();
        root.setAttribute("prueba","hola");
        Attr attr = root.getAttributeNode("prueba");

        boolean old = ((ItsNatNode)doc).isInternalMode();
        ((ItsNatNode)doc).setInternalMode(false);
        try
        {
            doc.addEventListener("DOMAttrNameChanged", this, false);
        }
        finally
        {
            ((ItsNatNode)doc).setInternalMode(old);
        }
        // Este m�todo es interesante porque genera varios mutation events
        doc.renameNode(attr, null,"prueba2");

        old = ((ItsNatNode)doc).isInternalMode();
        ((ItsNatNode)doc).setInternalMode(false);
        try
        {
            doc.removeEventListener("DOMAttrNameChanged", this, false);
        }
        finally
        {
            ((ItsNatNode)doc).setInternalMode(old);
        }
View Full Code Here

TOP

Related Classes of org.itsnat.impl.core.domimpl.DocumentImpl

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.