org.d2rq.r2rml
Class TableOrViewName

java.lang.Object
  extended by org.d2rq.r2rml.MappingTerm
      extended by org.d2rq.r2rml.TableOrViewName

public class TableOrViewName
extends MappingTerm

A SQL table or view name. May be qualified with a catalog name and schema name.

Author:
Richard Cyganiak (richard@cyganiak.de)
See Also:
R2RML: Table or view name

Method Summary
 void accept(MappingVisitor visitor)
           
 TableName asQualifiedTableName()
           
static TableOrViewName create(String tableName)
          Always succeeds.
 boolean equals(Object otherObject)
           
 Identifier.Parser.ViolationType getSyntaxError()
           
 String getSyntaxErrorMessage()
           
 int hashCode()
           
 boolean isValid()
          Determines validity.
 String toString()
          A form appropriate for use in SQL queries, if valid.
 
Methods inherited from class org.d2rq.r2rml.MappingTerm
isValid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static TableOrViewName create(String tableName)
Always succeeds. Check isValid() to see if syntax is ok.

Returns:
null if arg is null

asQualifiedTableName

public TableName asQualifiedTableName()

toString

public String toString()
A form appropriate for use in SQL queries, if valid.

Overrides:
toString in class Object

getSyntaxError

public Identifier.Parser.ViolationType getSyntaxError()

getSyntaxErrorMessage

public String getSyntaxErrorMessage()

accept

public void accept(MappingVisitor visitor)
Specified by:
accept in class MappingTerm

isValid

public boolean isValid()
Description copied from class: MappingTerm
Determines validity. For components that require a SQL connection, this is a best-effort attempt that may not catch certain kinds of errors.

Overrides:
isValid in class MappingTerm

equals

public boolean equals(Object otherObject)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object