|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.xatnode.XATDataSourceImp | +--edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATTableImp
The class defines the data model of the XAT, which is a table of XML fragments.
Field Summary | |
protected java.lang.String |
sTableName
The name of XATTable. |
protected java.util.Vector |
vColList
The content of columns within XATTable. |
protected java.util.Vector |
vColNames
The name of columns within XATTable. |
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp |
stats,
statsPresent |
Constructor Summary | |
XATTableImp()
The default XATTableImp Constructor. |
|
XATTableImp(java.lang.String sName,
java.lang.Object oValue)
The XATTableImp constructor. |
|
XATTableImp(XATTable xtabInit)
The XATTableImp Constructor. |
Method Summary | |
void |
accept(Visitor visitor)
This method is used to implement a visitor pattern. |
int |
appendColumn(java.lang.String sColumnName)
Append an empty column to the end of the table. |
int |
appendColumn(java.lang.String sName,
java.util.Vector new_column)
Append a new column to the end of the table. |
void |
appendTable(XATTable sour)
Append this table to given table. |
int |
appendTuple(java.util.Vector new_tuple)
Append a new tuple to the end of the table. |
XATTable |
cloneSchema()
Construct a new XATTable which has the same column names as this XATTable. |
static java.util.Vector |
collectionDistinct(java.util.Vector vecDis)
Remove duplicates from a collection. |
void |
deleteAllTuples()
Delete all the tuples in this XATTable. |
java.util.Vector |
deleteColumn(int position)
Delete a column from the specific position. |
java.util.Vector |
deleteTuple(int position)
Delete a tuple of the specified position. |
static java.lang.String |
elementToString(org.w3c.dom.Element o)
Convert the XML element with the cell of XAT into a String. |
java.util.Vector |
getColList()
Get the vector containing all the columns content within the XATTable. |
java.util.Vector |
getColNames()
Get the vector containing all the column names within the XATTable. |
java.util.Vector |
getColumn(int position)
Get one column content from the specified position. |
java.lang.String |
getColumnName(int position)
Get the column name for a specific column position. |
int |
getColumnPosition(java.lang.String column_name)
Get the Position of a column with the given Column Name. |
java.util.Vector |
getCommonColumnNames(XATTable tab2)
This method takes two XATTables, finds all matching columns. |
java.lang.String |
getName()
Get the Name of the XATTable. |
int |
getNumberOfColumns()
Get total number of columns in this table. |
int |
getNumberOfTuples()
Get total number of tuples in this table. |
java.util.Vector |
getRowList()
Get the vector containing the columns contents. |
java.util.Vector |
getTuple(int position)
Get a tuple in a specified position. |
java.util.Vector |
getUnCommonColumnNames(XATTable tab2)
This method takes two XATTables, and finds all un-matching columns. |
XATValue |
getValue(int column_position,
int tuple_position)
Get a cell by column and tuple positions. |
int |
insertColumn(int position,
java.lang.String sName,
java.util.Vector new_column)
Insert a new column to the table before specific position. |
int |
insertTuple(int position,
java.util.Vector ntuple)
Insert a new tuple to the table before specific position. |
static boolean |
isDebug()
Get the value of the propertity 'DEBUG_NavTaggerCancelout'. |
java.util.Vector |
mergeColumnNames(XATTable tab2)
Merge the column names of two XATTables. |
void |
moveColumn(int from_position,
int to_position)
Move a column to a specific position. |
void |
moveTuple(int from_position,
int to_position)
Move a tuple to a specific position. |
void |
print()
Prints the XATTable |
void |
setColumnName(java.lang.String newName,
int position)
Set Column Name in the specified position. |
java.lang.String |
setName(java.lang.String newName)
Set the Name of the Table. |
java.lang.String |
toString()
Convert the XATTable into a String for output. |
java.util.Vector |
updateColumn(int position,
java.util.Vector new_column)
Update a column in the specified position. |
java.util.Vector |
updateTuple(int position,
java.util.Vector new_tuple)
Update a tuple. |
XATValue |
updateValue(int column_position,
int tuple_position,
XATDataValue new_value)
Update a cell with a specific object. |
XATValue |
updateValue(int column_position,
int tuple_position,
XATValue new_value)
Update a cell with a specific object. |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATDataSourceImp |
deepCloneDataSource,
setDefaultProperties |
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,
setProperty |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.String sTableName
protected java.util.Vector vColNames
protected java.util.Vector vColList
Constructor Detail |
public XATTableImp()
public XATTableImp(XATTable xtabInit)
xtabInit
- The XATTable to initialize this XATTable.public XATTableImp(java.lang.String sName, java.lang.Object oValue)
sName
- The Table name.oValue
- The table content.Method Detail |
public void accept(Visitor visitor)
visitor
- public int appendColumn(java.lang.String sColumnName) throws XATTableTupleNoMatchException
new_column
- The new column going to be appended.public int appendColumn(java.lang.String sName, java.util.Vector new_column) throws XATTableTupleNoMatchException
sName
- The name of the new appended column.new_column
- The new column going to be appended.public void appendTable(XATTable sour)
sour
- The source table will be appended.public int appendTuple(java.util.Vector new_tuple) throws XATTableSchemaNoMatchException
new_tuple
- The new tuple going to be appended.public XATTable cloneSchema()
public static java.util.Vector collectionDistinct(java.util.Vector vecDis)
vecDis
- The Vector clearing for.public void deleteAllTuples()
public java.util.Vector deleteColumn(int position) throws XATTableOutOfRangeException, XATTableEmptyException
position
- The position of column going to be deleted.public java.util.Vector deleteTuple(int position) throws XATTableOutOfRangeException, XATTableEmptyException
position
- The position of the tuple going to be deleted.public static java.lang.String elementToString(org.w3c.dom.Element o)
o
- The element will be converted.public java.util.Vector getColList()
public java.util.Vector getColNames()
public java.util.Vector getColumn(int position) throws XATTableOutOfRangeException
The
- position of the column start from 1.public java.lang.String getColumnName(int position) throws XATTableOutOfRangeException
The
- column position.public int getColumnPosition(java.lang.String column_name) throws XATTableColumnNoExistException
column_name
- The column name searching for.public java.util.Vector getCommonColumnNames(XATTable tab2)
tab2
- The another source XATTable.public java.lang.String getName()
public int getNumberOfColumns()
public int getNumberOfTuples()
public java.util.Vector getRowList()
public java.util.Vector getTuple(int position) throws XATTableEmptyException, XATTableOutOfRangeException
position
- The position of the tuple start from 1.public java.util.Vector getUnCommonColumnNames(XATTable tab2)
tab2
- The another source XATTable.public XATValue getValue(int column_position, int tuple_position) throws XATTableEmptyException, XATTableOutOfRangeException
column_position
- The column position of the cell we are looking for.tuple_position
- The tuple position of the cell we are looking for.public int insertColumn(int position, java.lang.String sName, java.util.Vector new_column) throws XATTableOutOfRangeException, XATTableTupleNoMatchException
position
- The position for new inserted column.sName
- The new column name.new_column
- The new column content.public int insertTuple(int position, java.util.Vector ntuple) throws XATTableOutOfRangeException, XATTableSchemaNoMatchException
positoin
- The inserted tuple position.new_tuple
- The new tuple content.public static boolean isDebug()
public java.util.Vector mergeColumnNames(XATTable tab2)
tab2
- The another source XATTable.public void moveColumn(int from_position, int to_position) throws XATTableOutOfRangeException, XATTableEmptyException
from_position
- Specify the position of column to be moved.to_position
- Identfiy the dest position moved to.public void moveTuple(int from_position, int to_position) throws XATTableOutOfRangeException, XATTableEmptyException
from_position
- The position of tuple to be moved.to_position
- Identify the dest position moved to.public void print()
public void setColumnName(java.lang.String newName, int position) throws XATTableOutOfRangeException
newName
- The new name for column.position
- The position for this new column name.public java.lang.String setName(java.lang.String newName)
newName
- The new name of the XATTable.public java.lang.String toString()
public java.util.Vector updateColumn(int position, java.util.Vector new_column) throws XATTableOutOfRangeException, XATTableEmptyException, XATTableTupleNoMatchException
position
- The position of updated column.new_column
- The new column.public java.util.Vector updateTuple(int position, java.util.Vector new_tuple) throws XATTableOutOfRangeException, XATTableEmptyException, XATTableSchemaNoMatchException
position
- The position of tuple to be updated.new_tuple
- The new tuple.public XATValue updateValue(int column_position, int tuple_position, XATDataValue new_value) throws XATTableOutOfRangeException, XATTableEmptyException
column_position
- The Column position of the cell.tuple_position
- The Tuple position of the cell.new_value
- The new value of the cell.public XATValue updateValue(int column_position, int tuple_position, XATValue new_value) throws XATTableOutOfRangeException, XATTableEmptyException
column_position
- The Column position.tuple_position
- The Tuple position.new_value
- The new value of the cell.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |