org.eigenbase.sql.validate
Class SqlIdentifierMoniker

java.lang.Object
  extended by org.eigenbase.sql.validate.SqlIdentifierMoniker
All Implemented Interfaces:
SqlMoniker

public class SqlIdentifierMoniker
extends Object
implements SqlMoniker

An implementation of SqlMoniker that encapsulates the normalized name information of a SqlIdentifier.

Since:
May 24, 2005
Version:
$Id: //open/dev/farrago/src/org/eigenbase/sql/validate/SqlIdentifierMoniker.java#7 $
Author:
tleung

Field Summary
private  SqlIdentifier id
           
 
Constructor Summary
SqlIdentifierMoniker(SqlIdentifier id)
          Creates an SqlIdentifierMoniker.
 
Method Summary
 String[] getFullyQualifiedNames()
          Returns the array of component names.
 SqlMonikerType getType()
          Returns the type of object referred to by this moniker.
 String id()
           
 SqlIdentifier toIdentifier()
          Creates a SqlIdentifier containing the fully-qualified name.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private final SqlIdentifier id
Constructor Detail

SqlIdentifierMoniker

public SqlIdentifierMoniker(SqlIdentifier id)
Creates an SqlIdentifierMoniker.

Method Detail

getType

public SqlMonikerType getType()
Description copied from interface: SqlMoniker
Returns the type of object referred to by this moniker. Never null.

Specified by:
getType in interface SqlMoniker

getFullyQualifiedNames

public String[] getFullyQualifiedNames()
Description copied from interface: SqlMoniker
Returns the array of component names.

Specified by:
getFullyQualifiedNames in interface SqlMoniker

toIdentifier

public SqlIdentifier toIdentifier()
Description copied from interface: SqlMoniker
Creates a SqlIdentifier containing the fully-qualified name.

Specified by:
toIdentifier in interface SqlMoniker

toString

public String toString()
Overrides:
toString in class Object

id

public String id()
Specified by:
id in interface SqlMoniker