org.jcoderz.phoenix.sqlparser
Class NumericAttribute

java.lang.Object
  extended by org.jcoderz.phoenix.sqlparser.ColumnAttribute
      extended by org.jcoderz.phoenix.sqlparser.NumericAttribute

public final class NumericAttribute
extends ColumnAttribute

Author:
Albrecht Messner

Constructor Summary
NumericAttribute(int number)
          Create a new numeric attribute.
NumericAttribute(String numberAsStr)
          Create a new numeric attribute.
 
Method Summary
 int getNumber()
          Returns the number of this attribute.
 String getValue()
          Returns the value of this attribute.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericAttribute

public NumericAttribute(int number)
Create a new numeric attribute.

Parameters:
number - the number represented by this attribute

NumericAttribute

public NumericAttribute(String numberAsStr)
Create a new numeric attribute.

Parameters:
numberAsStr - the number represented by this attribute, as string
Method Detail

getNumber

public final int getNumber()
Returns the number of this attribute.

Returns:
the number of this attribute

toString

public final String toString()

Overrides:
toString in class Object

getValue

public final String getValue()
Returns the value of this attribute.

Specified by:
getValue in class ColumnAttribute
Returns:
the value of this attribute


Copyright 2007 The jCoderZ Project.