}
private QName prepareQName() {
- checkValid(IDENTIFIER_FIRST_CHAR.matches(currentChar()),
- "Identifier must start with character from set 'a-zA-Z_'");
+ checkValidIdentifierStart();
final String preparedPrefix = nextIdentifierFromNextSequence(IDENTIFIER);
final String prefix;
final String localName;
case COLON:
prefix = preparedPrefix;
skipCurrentChar();
- checkValid(IDENTIFIER_FIRST_CHAR.matches(currentChar()),
- "Identifier must start with character from set 'a-zA-Z_'");
+ checkValidIdentifierStart();
localName = nextIdentifierFromNextSequence(IDENTIFIER);
if (!allCharsConsumed() && currentChar() == EQUAL) {
errorMsg);
}
+ private void checkValidIdentifierStart() {
+ checkValid(IDENTIFIER_FIRST_CHAR.matches(currentChar()),
+ "Identifier must start with character from set 'a-zA-Z_'");
+ }
+
private char currentChar() {
return data.charAt(offset);
}