org.d2rq.db.vendor
Class SQL92.IdentifierParser

java.lang.Object
  extended by org.d2rq.db.vendor.SQL92.IdentifierParser
Direct Known Subclasses:
MySQL.MySQLIdentifierParser
Enclosing class:
SQL92

public static class SQL92.IdentifierParser
extends Object

Parser for standard SQL92 identifiers.


Constructor Summary
SQL92.IdentifierParser(String s, int minParts, int maxParts)
           
 
Method Summary
 Identifier.ViolationType error()
           
protected  boolean isClosingQuoteChar(char c)
           
protected  boolean isIdentifierBodyChar(char c)
          Subsequent characters may be any of these, or a nonspacing mark, spacing combining mark, decimal number, connector punctuation, and formatting code.
protected  boolean isIdentifierStartChar(char c)
          Regular identifiers must start with a Unicode character from any of the following character classes: upper-case letter, lower-case letter, title-case letter, modifier letter, other letter, or letter number.
protected  boolean isOpeningQuoteChar(char c)
           
protected  boolean isValidIdentifier(String identifier, boolean delimited)
           
 String message()
           
 Identifier[] result()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQL92.IdentifierParser

public SQL92.IdentifierParser(String s,
                              int minParts,
                              int maxParts)
Method Detail

result

public Identifier[] result()

error

public Identifier.ViolationType error()

message

public String message()

isValidIdentifier

protected boolean isValidIdentifier(String identifier,
                                    boolean delimited)

isOpeningQuoteChar

protected boolean isOpeningQuoteChar(char c)

isClosingQuoteChar

protected boolean isClosingQuoteChar(char c)

isIdentifierStartChar

protected boolean isIdentifierStartChar(char c)
Regular identifiers must start with a Unicode character from any of the following character classes: upper-case letter, lower-case letter, title-case letter, modifier letter, other letter, or letter number.

See Also:
R2RML: SQL identifier

isIdentifierBodyChar

protected boolean isIdentifierBodyChar(char c)
Subsequent characters may be any of these, or a nonspacing mark, spacing combining mark, decimal number, connector punctuation, and formatting code.

See Also:
R2RML: SQL identifier