CommentImpl.java 881 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xfa.dom;

import com.adobe.xfa.Comment;
import com.adobe.xfa.Node;
import com.adobe.xfa.dom.CharacterDataImpl;
import com.adobe.xfa.dom.ParentNode;

class CommentImpl
extends CharacterDataImpl
implements org.w3c.dom.Comment {
    CommentImpl(ParentNode parent, Comment newComment) {
        super(parent, newComment, newComment.getData());
    }

    @Override
    public String getNodeName() {
        return "#comment";
    }

    @Override
    public short getNodeType() {
        return 8;
    }

    @Override
    public boolean isEqualNode(org.w3c.dom.Node other) {
        if (this == other) {
            return true;
        }
        if (!super.isEqualNode(other)) {
            return false;
        }
        if (!(other instanceof CommentImpl)) {
            return false;
        }
        return true;
    }
}