Java XML Node Value Check isSuppressJoinFailure(Node node)

Here you can find the source of isSuppressJoinFailure(Node node)

Description

Checks whether the Boolean attribute suppressJoinFailure is set at the BPEL activity represented by the node.

License

Open Source License

Parameter

Parameter Description
node a parameter

Declaration

public static boolean isSuppressJoinFailure(Node node) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Node;

public class Main {
    /**/*w  w w  .ja  v a  2  s  . com*/
     * Checks whether the Boolean attribute suppressJoinFailure is set 
     * at the BPEL activity represented by the node. If it is not set, the
     * value will be determined recursively from one of the parent nodes.
     * Default case: false (as in BPEL)
     * 
     * @param node
     * @return
     */
    public static boolean isSuppressJoinFailure(Node node) {
        boolean result = false;

        if (node.getAttributes() != null) {
            if (node.getAttributes().getNamedItem("suppressJoinFailure") != null) {
                if (node.getAttributes().getNamedItem("suppressJoinFailure").getNodeValue()
                        .equalsIgnoreCase("yes")) {
                    result = true;
                }
            } else {
                if (node.getParentNode() != null) {
                    result = isSuppressJoinFailure(node.getParentNode());
                }
            }
        }
        return result;
    }
}

Related

  1. isNullOrEmpty(Node node)
  2. isOrphanNode(Node node)
  3. isReturnTag(Node node)
  4. isSimpleValueProperty(Node node)
  5. isSubTagExist(Node node, String tagName)
  6. isSynchronousInvoke(Node invoke)
  7. isText(final Node n)
  8. isText(Node node)
  9. isText(Node node)