org.teiid.query.sql.symbol
Class SingleElementSymbol

java.lang.Object
  extended by org.teiid.query.sql.symbol.Symbol
      extended by org.teiid.query.sql.symbol.SelectSymbol
          extended by org.teiid.query.sql.symbol.SingleElementSymbol
All Implemented Interfaces:
java.lang.Cloneable, LanguageObject, Expression
Direct Known Subclasses:
AliasSymbol, ElementSymbol, ExpressionSymbol

public abstract class SingleElementSymbol
extends SelectSymbol
implements Expression

This is a subclass of Symbol representing a single output column.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject
LanguageObject.Util
 
Field Summary
static java.lang.String SEPARATOR
          Character used to delimit name components in a symbol
 
Constructor Summary
  SingleElementSymbol(java.lang.String name)
          Construct a symbol with a name
protected SingleElementSymbol(java.lang.String name, java.lang.String canonicalName)
          Passthrough constructor used for cloning
 
Method Summary
 java.lang.String getShortCanonicalName()
          Get the short name of the element
 java.lang.String getShortName()
          Get the short name of the element
static java.lang.String getShortName(java.lang.String name)
           
 
Methods inherited from class org.teiid.query.sql.symbol.Symbol
clone, equals, getCanonical, getCanonicalName, getName, getOutputName, hashCode, isResolved, setName, setOutputName, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.teiid.query.sql.symbol.Expression
getType, isResolved
 
Methods inherited from interface org.teiid.query.sql.LanguageObject
acceptVisitor, clone
 

Field Detail

SEPARATOR

public static final java.lang.String SEPARATOR
Character used to delimit name components in a symbol

See Also:
Constant Field Values
Constructor Detail

SingleElementSymbol

protected SingleElementSymbol(java.lang.String name,
                              java.lang.String canonicalName)
Passthrough constructor used for cloning

Parameters:
name -
canonicalName -
hashcode -
Since:
4.3

SingleElementSymbol

public SingleElementSymbol(java.lang.String name)
Construct a symbol with a name

Parameters:
name - Name of symbol
Method Detail

getShortName

public java.lang.String getShortName()
Get the short name of the element

Returns:
Short name of the symbol (un-dotted)

getShortName

public static java.lang.String getShortName(java.lang.String name)

getShortCanonicalName

public java.lang.String getShortCanonicalName()
Get the short name of the element

Returns:
Short name of the symbol (un-dotted)


Copyright © 2010. All Rights Reserved.