private static boolean hasRestrictions(Element restrictionNode){
  for (int i=0; i < restrictionNode.getChildCount(); i++) {
    if (restrictionNode.isText(i))     continue;
    return true;
  }
  return false;
}

private static boolean hasRestrictions ( Element restrictionNode ) { for ( int i = 0 ; i < restrictionNode . getChildCount ( ) ; i ++ ) { if ( restrictionNode . isText ( i ) ) continue ; return true ; } return false ; }
checks if a restriction node has enumeration restrictions .
