Package ru.curs.celesta.score.validator
Class IdentifierParser
- java.lang.Object
-
- ru.curs.celesta.score.validator.IdentifierParser
-
- Direct Known Subclasses:
AnsiQuotedIdentifierParser
,PlainIdentifierParser
public abstract class IdentifierParser extends Object
Identifier parser and validator.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PLAIN_NAME_PATTERN_STR
Plain name regular expression.
-
Constructor Summary
Constructors Constructor Description IdentifierParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
parse(String name)
Parses the passed in identifier checking it for validity and returns a normalized version of it (e.g. strips down the quotes).
-
-
-
Field Detail
-
PLAIN_NAME_PATTERN_STR
public static final String PLAIN_NAME_PATTERN_STR
Plain name regular expression.- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public final String parse(String name) throws ParseException
Parses the passed in identifier checking it for validity and returns a normalized version of it (e.g. strips down the quotes).- Parameters:
name
- identifier- Throws:
ParseException
- thrown on validation error.
-
-