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);  }
@Test public void shouldNotAllowColonInNcName() { assertThat(XmlCharacters.isValidNcNameStart(':')).isFalse(); }
@Test public void shouldNotAllowDigitAsFirstCharacterInNcName() { assertThat(XmlCharacters.isValidNcNameStart('0')).isFalse(); assertThat(XmlCharacters.isValidNcNameStart('1')).isFalse(); assertThat(XmlCharacters.isValidNcNameStart('2')).isFalse(); assertThat(XmlCharacters.isValidNcNameStart('3')).isFalse(); assertThat(XmlCharacters.isValidNcNameStart('4')).isFalse(); assertThat(XmlCharacters.isValidNcNameStart('5')).isFalse(); assertThat(XmlCharacters.isValidNcNameStart('6')).isFalse(); assertThat(XmlCharacters.isValidNcNameStart('7')).isFalse(); assertThat(XmlCharacters.isValidNcNameStart('8')).isFalse(); assertThat(XmlCharacters.isValidNcNameStart('9')).isFalse(); }