@Test public void shouldNotAllowDigitAsFirstCharacterInNcName() { assertThat(XmlCharacters.isValidNcNameStart('0'), is(false)); assertThat(XmlCharacters.isValidNcNameStart('1'), is(false)); assertThat(XmlCharacters.isValidNcNameStart('2'), is(false)); assertThat(XmlCharacters.isValidNcNameStart('3'), is(false)); assertThat(XmlCharacters.isValidNcNameStart('4'), is(false)); assertThat(XmlCharacters.isValidNcNameStart('5'), is(false)); assertThat(XmlCharacters.isValidNcNameStart('6'), is(false)); assertThat(XmlCharacters.isValidNcNameStart('7'), is(false)); assertThat(XmlCharacters.isValidNcNameStart('8'), is(false)); assertThat(XmlCharacters.isValidNcNameStart('9'), is(false)); }
public static boolean isValidNcNameStart( int c ) { return c < NUMBER_OF_CHARACTERS && (MASKS[c] & NCNAME_START_CHARACTER) != 0; }
XmlCharacters { public static boolean isValidNcNameStart( int c ) { return c < NUMBER_OF_CHARACTERS && (MASKS[c] & NCNAME_START_CHARACTER) != 0; } }
XmlCharacters { public static boolean isValidNcNameStart( int c ) { return c < NUMBER_OF_CHARACTERS && (MASKS[c] & NCNAME_START_CHARACTER) != 0; } private  XmlCharacters(); }
XmlCharacters { public static boolean isValidNcNameStart( int c ) { return c < NUMBER_OF_CHARACTERS && (MASKS[c] & NCNAME_START_CHARACTER) != 0; } private  XmlCharacters(); static boolean isValidNameStart( int c ); static boolean isValidNcNameStart( int c ); static boolean isValidName( int c ); static boolean isValidNcName( int c ); static boolean isValidPubid( int c ); static boolean isValid( int c ); static boolean isValidContent( int c ); static boolean isValidSpace( int c ); static boolean isValidName( String name ); static boolean isValidNcName( String name ); }
XmlCharacters { public static boolean isValidNcNameStart( int c ) { return c < NUMBER_OF_CHARACTERS && (MASKS[c] & NCNAME_START_CHARACTER) != 0; } private  XmlCharacters(); static boolean isValidNameStart( int c ); static boolean isValidNcNameStart( int c ); static boolean isValidName( int c ); static boolean isValidNcName( int c ); static boolean isValidPubid( int c ); static boolean isValid( int c ); static boolean isValidContent( int c ); static boolean isValidSpace( int c ); static boolean isValidName( String name ); static boolean isValidNcName( String name );  }