daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SchemaNodeFactoryImpl schemaNF = new SchemaNodeFactoryImpl(PropDef.DB_SCHEMA);
  2. Node startNode = schemaNF.getSubRefernceNode();
  3. Traverser trav  = startNode.traverse(
  4.                 Traverser.Order.DEPTH_FIRST,
  5.                 StopEvaluator.DEPTH_ONE,
  6.                 ReturnableEvaluator.ALL_BUT_START_NODE,
  7.                 SeddexRelationshipTypes.CHILDOF,
  8.                 Direction.OUTGOING);   
  9.        
  10. for (Node schemaNode : trav){
  11.     SchemaNode sn = new SchemaNodeImpl(schemaNode);
  12.     System.out.println(sn.getName());
  13. }
RAW Paste Data
Top