Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/*
 * Copyright (c) 2000-2002 INSciTE.  All rights reserved
 * INSciTE is on the web at: http://www.hightechkids.org
 * This code is released under GPL; see LICENSE.txt for details.
 */

import org.w3c.dom.Element;

public class Main {
    /**
     * Check if an element describes a computed goal or not.
     * 
     * @param element the goal element
     * @return if the element represents a computed goal
     */
    public static boolean isComputedGoal(final Element element) {
        return "computedGoal".equals(element.getNodeName());
    }
}