Java XML Element Check isComputedGoal(final Element element)

Here you can find the source of isComputedGoal(final Element element)

Description

Check if an element describes a computed goal or not.

License

Open Source License

Parameter

Parameter Description
element the goal element

Return

if the element represents a computed goal

Declaration

public static boolean isComputedGoal(final Element element) 

Method Source Code

//package com.java2s;
/*/*w w  w .j a  v a 2  s . co m*/
 * 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());
    }
}

Related

  1. is(final Element e, final String tag)
  2. isAncestor(Element candAnc, Node cand)
  3. isAppearanceTag(Element e)
  4. isAsyncEventQueue(Element element)
  5. isElement(XMLStreamReader xmlRdr, int eventType, String tagName)
  6. isElementExistsByTagName(final Element element, final String tagName)
  7. isElementNamed(Element e, String ns, String localName)
  8. isEmpty(final Element el)