public static boolean isValidStateIdentifier(String id){
  if (id != null) {
    for (int i=0; i < id.length(); i++) {
      if (!isIdentifierChar(id.charAt(i))) {
        return false;
      }
    }
    if (!XMLChar.isValidName(id)) {
      return false;
    }
    return true;
  }
  return false;
}

public static boolean isValidStateIdentifier ( String id ) { if ( id != null ) { for ( int i = 0 ; i < id . length ( ) ; i ++ ) { if ( ! isIdentifierChar ( id . charAt ( i ) ) ) { return false ; } } if ( ! XMLChar . isValidName ( id ) ) { return false ; } return true ; } return false ; }
test if this is a valid state identifier , essentially must be a valid xml attribute name * without * : or . character within .
