Here you can find the source of hasHeirarchy(String xpath)
static boolean hasHeirarchy(String xpath)
//package com.java2s; //License from project: Apache License public class Main { static boolean hasHeirarchy(String xpath) { return xpath.contains("/"); }//from ww w. j a v a 2s.co m }