public static int uriType(String uri){
  if (uri.indexOf(':') != -1) {
    return ABS_URI;
  }
 else   if (uri.startsWith("/")) {
    return ROOT_REL_URI;
  }
 else {
    return NOROOT_REL_URI;
  }
}

public static int uriType ( String uri ) { if ( uri . indexOf ( ':' ) != - 1 ) { return ABS_URI ; } else if ( uri . startsWith ( "/" ) ) { return ROOT_REL_URI ; } else { return NOROOT_REL_URI ; } }
returns the type of a uri : abs_uri root_rel_uri noroot_rel_uri
