All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.daisy.pipeline.cssinlining.W3CTextAdapter Maven / Gradle / Ivy

There is a newer version: 3.1.3
Show newest version
package org.daisy.pipeline.cssinlining;

import net.sf.saxon.dom.TextOverNodeInfo;
import net.sf.saxon.om.NodeInfo;

import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

public class W3CTextAdapter extends TextOverNodeInfo implements Adaptable {
    // OVERRIDING OF NodeOverNodeINFO //

    @Override
    public Node getParentNode() {
        return WrapperOverWrapper.wrap(super.getParentNode());
    }

    @Override
    public Node getPreviousSibling() {
        return WrapperOverWrapper.wrap(super.getPreviousSibling());
    }

    @Override
    public Node getNextSibling() {
        return WrapperOverWrapper.wrap(super.getNextSibling());
    }

    @Override
    public Node getFirstChild() {
        return WrapperOverWrapper.wrap(super.getFirstChild());
    }

    @Override
    public Node getLastChild() {
        return WrapperOverWrapper.wrap(super.getLastChild());
    }

    @Override
    public NodeList getChildNodes() {
        return WrapperOverWrapper.wrap(super.getChildNodes());
    }

    @Override
    public Document getOwnerDocument() {
        return (Document) WrapperOverWrapper.wrap(super.getOwnerDocument());
    }

    public void setUnderlyingNode(NodeInfo n) {
        this.node = n;
    }

    // ///////////////////////////////////////
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy