ch.hsr.bieridee.utils
Class NodeUtil

java.lang.Object
  extended by ch.hsr.bieridee.utils.NodeUtil

public final class NodeUtil
extends java.lang.Object

Node utilities.


Method Summary
static boolean checkNode(org.neo4j.graphdb.Node node, java.lang.String expectedType)
          Checks if a given node is valid in terms of type and availabiltiy.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkNode

public static boolean checkNode(org.neo4j.graphdb.Node node,
                                java.lang.String expectedType)
                         throws WrongNodeTypeException,
                                org.neo4j.graphdb.NotFoundException
Checks if a given node is valid in terms of type and availabiltiy.

Parameters:
node - The nodes to be checked
expectedType - The name of the expected node type
Returns:
true if the node is valid
Throws:
WrongNodeTypeException - Thrown if the node is of the wrong type
org.neo4j.graphdb.NotFoundException - Thrown if the node is not present/null