Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import javax.swing.JTree;

import org.w3c.dom.Node;

public class Main {
    /**
     * Determines whether the given JTree represents a TsSapInvoiceExternal from the COAST system
     * 
     * @return True, if tree is a TsSapInvoiceExternal (converted from the corresponding XML file). False, if it is not.
     */
    public static boolean isTsSapInvoiceListExternal(JTree tree) {
        Node root = (Node) tree.getModel().getRoot();
        return root.getNodeName().equals("com.scandlines.coast.common.payment.TsSapInvoiceListExternal");
    }
}