/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  java.lang.Object
 *  java.lang.String
 *  java.util.Enumeration
 *  javax.swing.tree.TreeNode
 */
package org.dom4j.swing;

import java.util.Enumeration;
import javax.swing.tree.TreeNode;
import org.dom4j.Node;
import org.dom4j.swing.LeafTreeNode$1;

public class LeafTreeNode
implements TreeNode {
    protected static final Enumeration EMPTY_ENUMERATION = new LeafTreeNode$1();
    private TreeNode parent;
    protected Node xmlNode;

    public LeafTreeNode() {
    }

    public LeafTreeNode(TreeNode treeNode, Node node) {
        this.parent = treeNode;
        this.xmlNode = node;
    }

    public LeafTreeNode(Node node) {
        this.xmlNode = node;
    }

    public Enumeration children() {
        return EMPTY_ENUMERATION;
    }

    public boolean getAllowsChildren() {
        return false;
    }

    public TreeNode getChildAt(int n) {
        return null;
    }

    public int getChildCount() {
        return 0;
    }

    public int getIndex(TreeNode treeNode) {
        return -1;
    }

    public TreeNode getParent() {
        return this.parent;
    }

    public Node getXmlNode() {
        return this.xmlNode;
    }

    public boolean isLeaf() {
        return true;
    }

    public void setParent(LeafTreeNode leafTreeNode) {
        this.parent = leafTreeNode;
    }

    public String toString() {
        String string2 = this.xmlNode.getText();
        if (string2 != null) {
            return string2.trim();
        }
        return "";
    }
}

