edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator
Class SourceImp

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
        |
        +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
              |
              +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
                    |
                    +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.SourceImp

public class SourceImp
extends XATOperatorImp
implements Source

Implementation for interface Source.

Since:
1.0
See Also:
Serialized Form

Field Summary
protected  int iType
           
protected  java.lang.String sName
           
 
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
columnsFiltered, outputColumnName, xnodOwner, xtabOutput
 
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
stats, statsPresent
 
Fields inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.Source
TABLE, TEMP, TEXT, XML
 
Constructor Summary
SourceImp(XATNode xnodInit)
          Assigns a node to this operator, sets the source type to XML, and source name to "" .
SourceImp(XATNode xnodInit, java.lang.String sNameInit, int iTypeInit)
          Assigns a node to this operator, sets the source type and source name .
 
Method Summary
 void accept(Visitor visitor)
          It used to implement a visitor pattern.
 java.lang.String getName()
          get the current name of this source.
 int getType()
          Return the type of this source.
 java.lang.String setName(java.lang.String newName)
          Set the new name of this source.
 int setType(int newType)
          Set the type of this source.
 java.lang.String toString()
          returns a string representation
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
clone, getColumnsFiltered, getNode, getOutput, getOutputColumnName, getOutputDataSource, getOutputDataSources, getPrimaryDataSource, getPrimarySource, setDefaultProperties, setNode, setOutput, setOutputColumnName, setProperty
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
addStatistic, compareTo, getStatistics, isValidStatistic, setDefaultStatistics
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
addProperty, getProperties, getProperty, isValidPropertyName, setNewPropertyValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sName

protected java.lang.String sName

iType

protected int iType
Constructor Detail

SourceImp

public SourceImp(XATNode xnodInit)
Assigns a node to this operator, sets the source type to XML, and source name to "" .
Parameters:
node - edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNode
Since:
1.0

SourceImp

public SourceImp(XATNode xnodInit,
                 java.lang.String sNameInit,
                 int iTypeInit)
Assigns a node to this operator, sets the source type and source name .
Parameters:
node - edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNode
sNameInit - is source type
iTypeInit - is source name
Since:
1.0
Method Detail

accept

public void accept(Visitor visitor)
It used to implement a visitor pattern.
Parameters:
visitor - for the visitor pattern
Since:
1.0

getName

public java.lang.String getName()
get the current name of this source.
Specified by:
getName in interface Source
Returns:
the current name.
Since:
1.0

getType

public int getType()
Return the type of this source. It could be either XML or TABLE.
Specified by:
getType in interface Source
Returns:
the type of this source.
Since:
1.0

setName

public java.lang.String setName(java.lang.String newName)
Set the new name of this source.
Specified by:
setName in interface Source
Parameters:
The - new name.
Returns:
original name.
Since:
1.0

setType

public int setType(int newType)
Set the type of this source.
Specified by:
setType in interface Source
Parameters:
newType - the new type of this source, could be either Source.XML or Source.TABLE.
Returns:
original type.
Since:
1.0

toString

public java.lang.String toString()
returns a string representation
Overrides:
toString in class XATOperatorImp
Returns:
java.lang.String
Since:
1.0